-
Notifications
You must be signed in to change notification settings - Fork 5
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
Trouble showing gtk UIs in Ubuntu 20.04 (Qt 5 host) #16
Comments
Apologies for the late reply. I'm not sure. IIRC the expectation here is that a Qt app shouldn't have called What host is this happening in, and why does it initialize Gtk itself? |
No worries !
Qt on e.g. Ubuntus is configured to use the qgtk3 platform plug-in which makes the Qt apps fit with the GTK look and feel of the system (and thus needs to call GTK functions, thus the gtk_init call) - this is outside of the host's control.
|
Ah. Fuunn. I vaguely remember trying to find a way to conditionally call gtk_init but coming up dry. I guess, worst case scenario, there must be some kludge that will tell if it's been called. Anyway, good to know what the source of the issue is. Thanks for the report, I'll try to look into it. |
I'm seeing potentially the same issue in Ardour 6.9 on Debian bookworm. See thread here: https://discourse.ardour.org/t/lv2-plugins-causing-gui-freeze-debian-testing/107552/2 |
That's not this issue. As described above, this issue is specific to Qt5 hosts embedding Gtk plugin UIs when the user is using a Qt theme that uses a Gtk engine internally. |
I have removed the wrappers which caused this issue: ad39b43 Sorry if this case is important to you, but Gtk plugin UIs will no longer work in Qt hosts at all, or at least not magically via suil. Gtk2 is EOL, has always been discouraged for plugin UIs (for good reasons we can't do anything about), and in practice this doesn't affect much except Calf (which is unmaintained) in Qt hosts. |
fair enough, thanks ! |
Hi,
I'm having some issue with the following case:
On Ubuntu 20.04, by default, Qt uses the qgtk3 platform theme which calls gtk_init.
But when I try to show a calf UI:
with the following stack trace:
what is the correct thing to do in that case ?
The text was updated successfully, but these errors were encountered: