Bug 273078 - audio/mumble: QWidget: Cannot create a QWidget without QApplication
Summary: audio/mumble: QWidget: Cannot create a QWidget without QApplication
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Vladimir Druzenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-11 22:49 UTC by Romain Tartière
Modified: 2023-08-28 19:09 UTC (History)
4 users (show)

See Also:
vvd: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Romain Tartière freebsd_committer freebsd_triage 2023-08-11 22:49:44 UTC
Hey!

After updating: 

mumble: 1.3.3_9 -> 1.5.517

mumble does not start:

romain@zappy ~ % mumble 
<X>2023-08-11 12:41:13.274 Loading settings from legacy settings file "/home/romain/.config/Mumble/Mumble.conf"
<F>2023-08-11 12:41:13.282 QWidget: Cannot create a QWidget without QApplication
romain@zappy ~ %

I tried to move my configuration away in case it helps but no success:

romain@zappy ~ % mv ~/.config/Mumble{,.orig}
romain@zappy ~ % mumble
<F>2023-08-11 12:41:41.685 QWidget: Cannot create a QWidget without QApplication
romain@zappy ~ %
Comment 1 Romain Tartière freebsd_committer freebsd_triage 2023-08-11 22:51:36 UTC
I forgot to tell: this is using the "latest" packages on FreeBSD 13.2-RELEASE-p1 amd64.
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2023-08-12 11:33:04 UTC
Do you have plasma installed?
Comment 3 Vladimir Druzenko freebsd_committer freebsd_triage 2023-08-12 11:45:02 UTC
It worked when I committed it 2 weeks ago.

Create upstream issue: https://github.com/mumble-voip/mumble/issues/6189
Comment 4 Romain Tartière freebsd_committer freebsd_triage 2023-08-14 17:29:26 UTC
Hey!

> Do you have plasma installed?

No, I have no packages matching "plasma".
In your PR (I guess you could reproduce the failure?) you list your qt5 packages, so here are mine in case something can be found there:

```
romain@zappy ~ % pkg info -q | grep qt5 
qt5-assistant-5.15.8p1
qt5-concurrent-5.15.8p157
qt5-core-5.15.8p157_1
qt5-dbus-5.15.8p157
qt5-declarative-5.15.8p21
qt5-gui-5.15.8p157_2
qt5-help-5.15.8p1
qt5-l10n-5.15.8p0
qt5-linguist-5.15.8p1
qt5-linguisttools-5.15.8p1
qt5-multimedia-5.15.8p1
qt5-network-5.15.8p157
qt5-opengl-5.15.8p157
qt5-printsupport-5.15.8p157
qt5-quickcontrols2-5.15.8p7
qt5-sql-5.15.8p157
qt5-sqldrivers-sqlite3-5.15.8p157
qt5-svg-5.15.8p8
qt5-websockets-5.15.8p2
qt5-widgets-5.15.8p157
qt5-x11extras-5.15.8p0
qt5-xml-5.15.8p157
```

I subscribed to the GitHub issue, the code looks to do the right thing at first glance, but I am not used to C++/QT and might be missing something.  Maybe someone will be able to help us there.  Thank you!
Comment 5 Vladimir Druzenko freebsd_committer freebsd_triage 2023-08-14 18:04:36 UTC
(In reply to Romain Tartière from comment #4)
Yes, I got the same error.
But it work fine several weeks ago. :-(
Comment 6 Jason E. Hale freebsd_committer freebsd_triage 2023-08-14 20:43:49 UTC
As a quick workaround, disabling the LTO option allows the application to run for me on CURRENT-amd64. I didn’t look into it much further than that, though.
Comment 7 Vladimir Druzenko freebsd_committer freebsd_triage 2023-08-14 22:12:48 UTC
(In reply to Jason E. Hale from comment #6)
Good catch!
Same here - without LTO work fine.
Comment 8 Vladimir Druzenko freebsd_committer freebsd_triage 2023-08-14 22:40:58 UTC
Tried build with devel/llvm15 - same error.

I think better to turn off option LTO by default and mark it as broken.
Check patch: https://reviews.freebsd.org/D41458
Comment 9 commit-hook freebsd_committer freebsd_triage 2023-08-15 12:46:18 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=029a21588c8ff721a607c4d9ca159b8574a73513

commit 029a21588c8ff721a607c4d9ca159b8574a73513
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2023-08-15 12:40:56 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2023-08-15 12:40:56 +0000

    audio/mumble: with LTO on "QWidget: Cannot create a QWidget without QApplication"

    With option LTO on mumble print "QWidget: Cannot create a QWidget without QApplication"
    in console and exit.
    Mark LTO as broken and turn off by default.
    Upstream issue: https://github.com/mumble-voip/mumble/issues/6189

    PR:                     273078
    Approved by:            arrowd (mentor)
    Differential Revision:  https://reviews.freebsd.org/D41458

 audio/mumble/Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Comment 10 Vladimir Druzenko freebsd_committer freebsd_triage 2023-08-15 12:47:47 UTC
Committed workaround.
Thanks!
Comment 11 commit-hook freebsd_committer freebsd_triage 2023-08-28 19:09:41 UTC
A commit in branch 2023Q3 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=43c36a072a0b6371a3b6471fadb10cc782107b7c

commit 43c36a072a0b6371a3b6471fadb10cc782107b7c
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2023-08-15 12:40:56 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2023-08-28 19:08:48 +0000

    audio/mumble: with LTO on "QWidget: Cannot create a QWidget without QApplication"

    With option LTO on mumble print "QWidget: Cannot create a QWidget without QApplication"
    in console and exit.
    Mark LTO as broken and turn off by default.
    Upstream issue: https://github.com/mumble-voip/mumble/issues/6189

    PR:                     273078
    Approved by:            arrowd (mentor)
    Differential Revision:  https://reviews.freebsd.org/D41458

    (cherry picked from commit 029a21588c8ff721a607c4d9ca159b8574a73513)

 audio/mumble/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)