Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.5.517: "QWidget: Cannot create a QWidget without QApplication" #6189

Closed
VVD opened this issue Aug 12, 2023 · 9 comments
Closed

1.5.517: "QWidget: Cannot create a QWidget without QApplication" #6189

VVD opened this issue Aug 12, 2023 · 9 comments
Labels
bug A bug (error) in the software build Everything related to compiling/building the code client

Comments

@VVD
Copy link

VVD commented Aug 12, 2023

Description

During run print in console and exit:

<X>2023-08-12 12:49:06.486 Loading settings from "/home/USER/.config/Mumble/Mumble/mumble_settings.json"
<F>2023-08-12 12:49:06.488 QWidget: Cannot create a QWidget without QApplication

Steps to reproduce

  1. Build with options:
    bundled-gsl client oss overlay overlay-xcompile plugins translations xinput2 dbus lto
    or
    bundled-gsl client oss overlay overlay-xcompile plugins translations xinput2 lto rnnoise speechd
  2. Run.

Mumble version

1.5.517

Mumble component

Client

OS

FreeBSD

Reproducible?

Yes

Additional information

Downstream bug report: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273078

# pkg info -q | grep ^qt5
qt5-3d-5.15.8p0
qt5-assistant-5.15.8p1
qt5-buildtools-5.15.8p157
qt5-charts-5.15.8p0
qt5-concurrent-5.15.8p157
qt5-connectivity-5.15.8p5
qt5-core-5.15.8p157_1
qt5-dbus-5.15.8p157
qt5-declarative-5.15.8p21
qt5-declarative-test-5.15.8p21
qt5-designer-5.15.8p1
qt5-graphicaleffects-5.15.8p0
qt5-gui-5.15.8p157_2
qt5-help-5.15.8p1
qt5-imageformats-5.15.8p6_2
qt5-l10n-5.15.8p0
qt5-linguist-5.15.8p1
qt5-linguisttools-5.15.8p1
qt5-location-5.15.8p3
qt5-multimedia-5.15.8p1_1
qt5-network-5.15.8p157
qt5-networkauth-5.15.8p0
qt5-opengl-5.15.8p157
qt5-printsupport-5.15.8p157
qt5-qdbus-5.15.8p1
qt5-qdoc-5.15.8p1
qt5-qdoc-data-5.15.8
qt5-qmake-5.15.8p157_2
qt5-qtpaths-5.15.8p1
qt5-quick3d-5.15.8p1
qt5-quickcontrols-5.15.8p0
qt5-quickcontrols2-5.15.8p7
qt5-remoteobjects-5.15.8p0
qt5-script-5.15.11p0
qt5-scripttools-5.15.11p0
qt5-sensors-5.15.8p0
qt5-serialport-5.15.8p0
qt5-speech-5.15.8p1_1
qt5-sql-5.15.8p157
qt5-sqldrivers-sqlite3-5.15.8p157
qt5-svg-5.15.8p8
qt5-testlib-5.15.8p157
qt5-uiplugin-5.15.8p1
qt5-uitools-5.15.8p1
qt5-virtualkeyboard-5.15.8p0
qt5-wayland-5.15.8p57
qt5-webchannel-5.15.8p3
qt5-webengine-5.15.8_5
qt5-webkit-5.212.0.a4_14
qt5-websockets-5.15.8p2
qt5-webview-5.15.8p0_1
qt5-widgets-5.15.8p157
qt5-x11extras-5.15.8p0
qt5-xml-5.15.8p157
qt5-xmlpatterns-5.15.8p0
# pkg info -q | grep ^plasma
plasma-wayland-protocols-1.10.0
plasma5-breeze-5.27.7
plasma5-breeze-gtk-5.27.7
plasma5-discover-5.27.7
plasma5-drkonqi-5.27.7
plasma5-kactivitymanagerd-5.27.7
plasma5-kde-cli-tools-5.27.7
plasma5-kde-gtk-config-5.27.7
plasma5-kdecoration-5.27.7
plasma5-kdeplasma-addons-5.27.7
plasma5-kgamma5-5.27.7
plasma5-khotkeys-5.27.7
plasma5-kinfocenter-5.27.7
plasma5-kmenuedit-5.27.7
plasma5-kscreen-5.27.7
plasma5-kscreenlocker-5.27.7
plasma5-ksshaskpass-5.27.7
plasma5-ksysguard-5.22.0_4
plasma5-ksystemstats-5.27.7
plasma5-kwallet-pam-5.27.7
plasma5-kwayland-integration-5.27.7
plasma5-kwin-5.27.7
plasma5-kwrited-5.27.7
plasma5-layer-shell-qt-5.27.7
plasma5-libkscreen-5.27.7
plasma5-libksysguard-5.27.7
plasma5-milou-5.27.7
plasma5-oxygen-5.27.7
plasma5-plasma-5.27.7
plasma5-plasma-browser-integration-5.27.7
plasma5-plasma-desktop-5.27.7.1
plasma5-plasma-disks-5.27.7
plasma5-plasma-integration-5.27.7
plasma5-plasma-sdk-5.27.7.1
plasma5-plasma-workspace-5.27.7
plasma5-plasma-workspace-wallpapers-5.27.7
plasma5-polkit-kde-agent-1-5.27.7
plasma5-powerdevil-5.27.7
plasma5-sddm-kcm-5.27.7
plasma5-systemsettings-5.27.7
plasma5-xdg-desktop-portal-kde-5.27.7

Relevant log output

No response

Screenshots

No response

@VVD VVD added bug A bug (error) in the software triage This issue is waiting to be triaged by one of the project members labels Aug 12, 2023
@VVD
Copy link
Author

VVD commented Aug 12, 2023

This line in main.cpp "fails": ApplicationPalette applicationPalette;

@VVD
Copy link
Author

VVD commented Aug 14, 2023

With option lto off work fine.

@davidebeatrici
Copy link
Member

Thank you for investigating.

MumbleApplication is our QApplication and is instantiated quite early in main() (before ApplicationPalette anyway).

We should try to reproduce the issue with a basic program.

@Krzmbrzl
Copy link
Member

With option lto off work fine.

Ouch. That most likely means we have some undefined behavior somewhere 👀

@Krzmbrzl Krzmbrzl added client build Everything related to compiling/building the code and removed triage This issue is waiting to be triaged by one of the project members labels Aug 15, 2023
@VVD
Copy link
Author

VVD commented Aug 15, 2023

Tried to build with llvm13 from base FreeBSD 13.2 and devel/llvm15 from ports - same result.
Maybe some sort of optimization breaks this…

freebsd-git pushed a commit to freebsd/freebsd-ports that referenced this issue Aug 15, 2023
…Application"

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: mumble-voip/mumble#6189

PR:			273078
Approved by:		arrowd (mentor)
Differential Revision:	https://reviews.freebsd.org/D41458
freebsd-git pushed a commit to freebsd/freebsd-ports that referenced this issue Aug 28, 2023
…Application"

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: mumble-voip/mumble#6189

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

(cherry picked from commit 029a215)
@VVD
Copy link
Author

VVD commented Aug 28, 2023

@Krzmbrzl
Copy link
Member

Oh that's interesting.
@VVD if I understood the linked issues correctly, tbough it seems like it should be fixed in Clang 12+. However, that doesn't seem to be what you observed, right?

@VVD
Copy link
Author

VVD commented Sep 11, 2023

Look like it's still issue for Qt5 applications with LTO.

@Krzmbrzl
Copy link
Member

I'll close this as there doesn't seem to be much we can do to work around what seemingly is a compiler bug 👀

@Krzmbrzl Krzmbrzl closed this as not planned Won't fix, can't repro, duplicate, stale Dec 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug (error) in the software build Everything related to compiling/building the code client
Projects
None yet
Development

No branches or pull requests

3 participants