[Bug 1852935] Re: In Ubuntu Budgie, QT apps take a long time to open
*** This bug is a duplicate of bug 1851160 *** https://bugs.launchpad.net/bugs/1851160 Same problem on fresh Ubuntu 20.04. It seems the dbus is a problem. Launching applications wth the command: dbus-launch vls, starts apps intermediately. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1852935 Title: In Ubuntu Budgie, QT apps take a long time to open To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qtstyleplugins-src/+bug/1852935/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1852935] Re: In Ubuntu Budgie, QT apps take a long time to open
*** This bug is a duplicate of bug 1851160 *** https://bugs.launchpad.net/bugs/1851160 Same thing happening for me on Android studio, takes ~30 seconds to start: 2020-01-21 00:05:31,671 [49-5587405] INFO -#com.intellij.idea.Main - JVM Args: -Xms256m -Xmx1280m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -XX:CICompilerCount=2 -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Djdk.http.auth.tunneling.disabledSchemes="" -Djna.nosys=true -Djna.boot.library.path= -da -Dawt.useSystemAAFontSettings=lcd -Dsun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine -Dsun.tools.attach.tmp.only=true -Xmx2048m -XX:ErrorFile=/home/user/java_error_in_STUDIO_%p.log -XX:HeapDumpPath=/home/user/java_error_in_STUDIO.hprof -Didea.paths.selector=AndroidStudio3.5 -Djb.vmOptionsFile=/snap/android-studio/81/android-studio/bin/studio64.vmoptions,/home/user/.AndroidStudio3.5/config/studio64.vmoptions -Didea.platform.prefix=AndroidStudio -Didea.jre.check=true 2020-01-21 00:05:31,671 [49-5587405] INFO -#com.intellij.idea.Main - ext: /snap/android-studio/81/android-studio/jre/jre/lib/ext: [cldrdata.jar, dnsns.jar, jaccess.jar, localedata.jar, meta-index, nashorn.jar, sunec.jar, sunjce_provider.jar, sunpkcs11.jar, zipfs.jar] 2020-01-21 00:05:31,671 [49-5587405] INFO -#com.intellij.idea.Main - charsets: JNU=UTF-8 file=UTF-8 2020-01-21 00:05:31,686 [49-5587405] INFO -#com.intellij.idea.Main - JNA library (64-bit) loaded in 14 ms 2020-01-21 00:05:56,931 [49-5587405] INFO - #com.intellij.util.ui.JBUI - System scale factor: 1.0 (IDE-managed HiDPI) Is there any solution to this? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1852935 Title: In Ubuntu Budgie, QT apps take a long time to open To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qtstyleplugins-src/+bug/1852935/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1852935] Re: In Ubuntu Budgie, QT apps take a long time to open
*** This bug is a duplicate of bug 1851160 *** https://bugs.launchpad.net/bugs/1851160 Sure. I am a bit busy, but when I have a free cycle, I will. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1852935 Title: In Ubuntu Budgie, QT apps take a long time to open To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qtstyleplugins-src/+bug/1852935/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1852935] Re: In Ubuntu Budgie, QT apps take a long time to open
*** This bug is a duplicate of bug 1851160 *** https://bugs.launchpad.net/bugs/1851160 I think I will also try your scenario: Budgie in VirtualBox. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1852935 Title: In Ubuntu Budgie, QT apps take a long time to open To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qtstyleplugins-src/+bug/1852935/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1852935] Re: In Ubuntu Budgie, QT apps take a long time to open
*** This bug is a duplicate of bug 1851160 *** https://bugs.launchpad.net/bugs/1851160 Cleanlooks is a style, not a platformtheme. Can you try with QT_QPA_PLATFORMTHEME=gtk3 QT_STYLE_OVERRIDE=cleanlooks? Or, even better, check if it is reproducible when qt5-gtk2-platformtheme is not installed. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1852935 Title: In Ubuntu Budgie, QT apps take a long time to open To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qtstyleplugins-src/+bug/1852935/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1852935] Re: In Ubuntu Budgie, QT apps take a long time to open
*** This bug is a duplicate of bug 1851160 *** https://bugs.launchpad.net/bugs/1851160 Actually... I noticed that the first time I start kate with QT_QPA_PLATFORMTHEME=cleanlooks (which is not supposed to use GTK2) it also takes 30 seconds. The consequent times are instant. So I wouldn't be so sure that GTK2 is the culprit. I'll continue the investigation in my idle cycles. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1852935 Title: In Ubuntu Budgie, QT apps take a long time to open To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qtstyleplugins-src/+bug/1852935/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1852935] Re: In Ubuntu Budgie, QT apps take a long time to open
*** This bug is a duplicate of bug 1851160 *** https://bugs.launchpad.net/bugs/1851160 Thanks for the analysis. I still cannot reproduce this, even on an installed system (Ubuntu Budgie 19.10 in Virtualbox). For me the relevant functions are called, but there is no delay. I guess there is some race condition here that is hard to catch. The code on top of your stacktrace just tries to register with the D-Bus, i.e. send a hello message. I don’t see why this may fail — maybe because the code was called while ibus has been doing its own D-Bus stuff? Code that sets the timeout is in g_dbus_connection_send_message_with_reply_unlocked function: https://gitlab.gnome.org/GNOME/glib/blob/2.62.1/gio/gdbusconnection.c#L1909 (check lines 1926 and 1959-1960). That is a mature code so I don’t think it may be buggy. However I see that there is a glib 2.62.2-2~ubuntu19.10.1 upload in eoan-proposed that has some fixes related to ibus authentication. Can you please check if it fixes the issue? See this page for instructions how to enable proposed: https://wiki.ubuntu.com/Testing/EnableProposed. Anyway, as I said earlier, GTK 2 is deprecated and I do not want to spend much time on bugs related to it. Patches are welcome however I still think it is an issue deeper in the stack, in GTK 2 itself or in ibus. As a workaround I think you can remove ibus-gtk package or qt5-gtk2-platformtheme. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1852935 Title: In Ubuntu Budgie, QT apps take a long time to open To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qtstyleplugins-src/+bug/1852935/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1852935] Re: In Ubuntu Budgie, QT apps take a long time to open
*** This bug is a duplicate of bug 1851160 *** https://bugs.launchpad.net/bugs/1851160 Also Krusader, kate, and qmmp. I tried to strace kate, it hangs here: poll([{fd=15, events=POLLIN}], 1, 25000) = 0 (Timeout) Note that the timeout is set to 25s, this is the time people report it takes to start, so I am pretty sure this is the culprit. Here is more details of what is going on with this FD: [pid 6237] 01:13:47.869630 eventfd2(0, EFD_CLOEXEC|EFD_NONBLOCK) = 15 [pid 6237] 01:13:47.869644 write(15, "\1\0\0\0\0\0\0\0", 8) = 8 [pid 6237] 01:13:47.869672 write(16, "\1\0\0\0\0\0\0\0", 8) = 8 [pid 6237] 01:13:47.869686 poll([{fd=15, events=POLLIN}], 1, 25000) = 1 ([{fd=15, revents=POLLIN}]) [pid 6237] 01:13:47.869701 read(15, "\1\0\0\0\0\0\0\0", 16) = 8 [pid 6237] 01:13:47.869715 poll([{fd=15, events=POLLIN}], 1, 25000) = 0 (Timeout) [pid 6237] 01:14:12.874665 write(15, "\1\0\0\0\0\0\0\0", 8) = 8 You can see that the FD in question (i.e. 15) was created by eventfd2. It's a synchronization object that looks like a file descriptor. It has an associated integer maintained by the kernel. Writing an integer to this file adds this integer to the kernel value. If the value is not zero, reading from this file descriptor returns the value and resets it to zero. If it is zero, then reading is blocked. poll([{fd=15, events=POLLIN}],...) will be blocked if the kernel value is zero or will return POLLIN if it is not zero. If you take a look at the log above, you will see that the application calls read(15,...) and resets the associated counter to 0 by doing that. Then it immediately calls poll([{fd=15, events=POLLIN}],...), which blocks the execution, because the counter is zero. Here is the stack trace of the offending call: > /usr/lib/x86_64-linux-gnu/libc-2.30.so(__poll+0x4f) [0x115c2f] > /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.1(g_main_context_dispatch+0x46e) > [0x51a3e] > /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6200.1(g_main_loop_run+0x83) > [0x51dc3] > /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.6200.1(g_dbus_connection_send_message_with_reply_sync+0x195) > [0x10cc85] > /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.6200.1(g_dbus_connection_send_message_with_reply_sync+0x58f) > [0x10d07f] > /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.6200.1(g_dbus_connection_call_sync+0x27) > [0x10f0f7] > /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.6200.1(g_dbus_connection_call_sync+0x2c6) > [0x10f396] > /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.6200.1(g_bus_get_sync+0x84) > [0x10fae4] > /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so(g_vfs_encode_uri+0xe8af) > [0x1e07f] > /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.6200.1(g_type_create_instance+0x30d) > [0x3814d] > /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.6200.1(g_object_unref+0x8c5) > [0x1a345] > /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.6200.1(g_object_new_with_properties+0x275) > [0x1ba45] > /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.6200.1(g_object_new+0xc1) > [0x1c5f1] > /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.6200.1(g_io_extension_get_name+0xb4) > [0x7f5c4] > /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.6200.1(g_io_extension_get_priority+0x46e) > [0x7face] > /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.6200.1(g_file_new_for_path+0x12) > [0x695b2] > /usr/lib/x86_64-linux-gnu/libibus-1.0.so.5.0.521(ibus_bus_hello+0x54d) > [0x19d8d] > /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.6200.1(g_object_unref+0x6ec) > [0x1a16c] > /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.6200.1(g_object_new_valist+0x418) > [0x1c278] > /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.6200.1(g_object_new+0x9d) > [0x1c5cd] > /usr/lib/x86_64-linux-gnu/libibus-1.0.so.5.0.521(ibus_bus_new_async_client+0x38) > [0x17858] > /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so(im_module_list+0x17e2) > [0x5722] > /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.6200.1(g_type_class_ref+0x471) > [0x36201] > /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.6200.1(g_object_new_with_properties+0x368) > [0x1bb38] > /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.6200.1(g_object_new+0xc1) > [0x1c5f1] > /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so(ibus_im_context_new+0x16) > [0x6346] > /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.32(gtk_im_context_simple_add_table+0x9ef) > [0x12518f] > /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.32(gtk_im_context_simple_add_table+0x13d6) > [0x125b76] > /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.32(gtk_im_context_simple_add_table+0x15b9) > [0x125d59] > /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.32(gtk_entry_set_buffer+0x20fc) > [0xcb5dc] > /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.6200.1(g_closure_invoke+0x1b2) > [0x146e2] > /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.6200.1(g_signal_handler_disconnect+0x1352) > [0x28692] > /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.6200.1(g_signal_emit_valist+0xee7) > [0
[Bug 1852935] Re: In Ubuntu Budgie, QT apps take a long time to open
*** This bug is a duplicate of bug 1851160 *** https://bugs.launchpad.net/bugs/1851160 Additional affected applications: * SMPlayer * qBittorrent Slow start not just happening on cold start, but each file opening (e.g. *.mkv) from file handler (nemo) despite SMPlayer has been opened already. When I drag and drop media files directly to player, playing file starts instantly. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1852935 Title: In Ubuntu Budgie, QT apps take a long time to open To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qtstyleplugins-src/+bug/1852935/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1852935] Re: In Ubuntu Budgie, QT apps take a long time to open
*** This bug is a duplicate of bug 1851160 *** https://bugs.launchpad.net/bugs/1851160 > I cannot reproduce this with Ubuntu Budgie 19.10 or daily ISO (tried VLC and some examples from qtbase5-examples). How did you try to reproduce? Note that this issue does not affect the live systems. I tried both live and installed. While the live system runs fine, the installation has this issue. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1852935 Title: In Ubuntu Budgie, QT apps take a long time to open To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qtstyleplugins-src/+bug/1852935/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1852935] Re: In Ubuntu Budgie, QT apps take a long time to open
*** This bug is a duplicate of bug 1851160 *** https://bugs.launchpad.net/bugs/1851160 > Also Filezilla is affected by this issue. For Filezilla removing qt5-gtk2-platformtheme does NOT solve the issue. Filezilla uses GTK 2 directly, not Qt. This indicates it's a bug/regression in GTK 2. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1852935 Title: In Ubuntu Budgie, QT apps take a long time to open To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qtstyleplugins-src/+bug/1852935/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1852935] Re: In Ubuntu Budgie, QT apps take a long time to open
*** This bug is a duplicate of bug 1851160 *** https://bugs.launchpad.net/bugs/1851160 One more thing to note: Also Filezilla is affected by this issue. For Filezilla removing qt5-gtk2-platformtheme does NOT solve the issue. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1852935 Title: In Ubuntu Budgie, QT apps take a long time to open To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qtstyleplugins-src/+bug/1852935/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1852935] Re: In Ubuntu Budgie, QT apps take a long time to open
*** This bug is a duplicate of bug 1851160 *** https://bugs.launchpad.net/bugs/1851160 I spent quite some time today trying various things to get rid of this issue. Below is what I figured out: * I did a fresh install of Budgie 19.10 and faced the issue described. * Installing Budgie 19.04 and performing an in-place update rather than a fresh install seems to avoid the problem. * I tried the 20.04 daily from today (2019-11-22) and faced the same problem. Hence I cannot confirm that 20.04 does not have this issue. * I compared qt5 packages installed in Budgie 19.04 and 19.10. qt5-gtk2-platformtheme is present in 19.10 but not in 19.04. As written in the beginning of this thread removing this package makes the problem disappear but also theming of the affected apps is gone. On the other hand theming in 19.04 is perfectly fine even without the mentioned package. Furthermore 19.04 has the packages qt5-style-platform-gtk2 and qt5-style-plugin-gtk2 without a dependency to qt-gtk2-platformtheme. I tried installing the same set of packages on 19.10 which was not possible without breaking dependencies since those packages depend on qt-gtk2-platformtheme in 19.10. * Forcing the same set of packages directly using dpkg also did not bring back proper theming. * Version of all those *gtk2* packages are the same in 19.04 and 19.10 so that I suspect that the problem lies somewhere else. * I can also confirm that using dbus-launch makes the applications start fast. However, integration into Budgie desktop is lost and it has the penalty of additional dbus processes. Hope this helps finding the root cause of this issue. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1852935 Title: In Ubuntu Budgie, QT apps take a long time to open To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qtstyleplugins-src/+bug/1852935/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1852935] Re: In Ubuntu Budgie, QT apps take a long time to open
*** This bug is a duplicate of bug 1851160 *** https://bugs.launchpad.net/bugs/1851160 I cannot reproduce this with Ubuntu Budgie 19.10 or daily ISO (tried VLC and some examples from qtbase5-examples). Anyway, qt-gtk2-platformtheme (just like GTK2 itself) is deprecated and no longer developed, so it’s better to remove that package. ** This bug has been marked a duplicate of bug 1851160 applications that uses qt5-gtk2-platformtheme starts slowly -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1852935 Title: In Ubuntu Budgie, QT apps take a long time to open To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qtstyleplugins-src/+bug/1852935/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1852935] Re: In Ubuntu Budgie, QT apps take a long time to open
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: qtstyleplugins-src (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1852935 Title: In Ubuntu Budgie, QT apps take a long time to open To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qtstyleplugins-src/+bug/1852935/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs