Hello: This occurs in openSUSE Leap 15.3 (64 bit). Gtk2 applications start with a 25 seconds delay. That is, it takes exactly 25 seconds the application window to appear. This behavior has been reported previously in other distros, eg: In 20.04.1 all gtk2 apps starts 25 seconds https://bugs.launchpad.net/ubuntu/+bug/1891245 I installed appmenu-gtk2-module and libcanberra-gtk-module but it did not solve the problem. How can I fix this in Leap 15.3? Thanks, Istvan
Hello, In the Message; Subject : gtk2 application start delays 25 seconds Message-ID : <feff7d44d161d36049378706c34a0b91@gmail.hu> Date & Time: Thu, 18 Nov 2021 16:12:36 +0100 [IG] == Istvan Gabor <suseuser04@gmail.hu> has written: IG> Hello: IG> This occurs in openSUSE Leap 15.3 (64 bit). IG> Gtk2 applications start with a 25 seconds delay. IG> That is, it takes exactly 25 seconds the application window to appear. IG> This behavior has been reported previously in other distros, eg: IG> In 20.04.1 all gtk2 apps starts 25 seconds IG> https://bugs.launchpad.net/ubuntu/+bug/1891245 IG> I installed appmenu-gtk2-module and libcanberra-gtk-module but it did IG> not solve the problem. IG> How can I fix this in Leap 15.3? Maybe, this is the GNOME software's performance issue. Installation of libxmlb might serve to speed up. Thanks. --- ┏━━┓彡 Masaru Nomiya mail-to: nomiya @ galaxy.dti.ne.jp ┃\/彡 ┗━━┛ "Tim Cook, the C.E.O. of Apple, said earlier this year that he would not let his nephew join social networks. Bill Gates banned cellphone until his children were teenagers, and Melinda Gates wrote that she wished they had waited even longer. Steve Jobs would not let his young children near iPads." -- The New York Times --
On 11/18/21 9:12 AM, Istvan Gabor wrote:
Hello:
This occurs in openSUSE Leap 15.3 (64 bit).
Gtk2 applications start with a 25 seconds delay. That is, it takes exactly 25 seconds the application window to appear.
This behavior has been reported previously in other distros, eg:
In 20.04.1 all gtk2 apps starts 25 seconds https://bugs.launchpad.net/ubuntu/+bug/1891245
I installed appmenu-gtk2-module and libcanberra-gtk-module but it did not solve the problem.
How can I fix this in Leap 15.3?
Thanks,
Istvan
Likely related to parts of Gtk+2 being removed from distros. This is a horrible thing as there is nothing wrong with Gtk+2, Gtk+3 never matured to the point the theme model quick breaking with every version update and now Gtk+3 has been tossed (kde4 anyone?) for Gtk+4 which is something so bastardized compared to Gtk+2 it is unrecognizable and unfit for writing anything but Gnome desktop itself. Not to mention continued CSS theme model breaks will continue to occur at least through 4.14 (oh joy) But I digress. There is no reason a Gtk+2 app shouldn't present a main window almost immediately. Even where the program builds the entire interface before the show-window call that should never take more than 2 secs, even populating complicated list-boxes like the documents window in kate. If there is a 20 sec slowdown, then there is likely a gtk+2 library that belongs to a gtk+2_somelib that has been removed and your app attempts to load it with a 20/25 second timeout. What app? You can run ldd against the executable to check the library dependency and see if anything was missing. -- David C. Rankin, J.D.,P.E.
From: "David C. Rankin" <drankinatty@suddenlinkmail.com> Date: Sun, 21 Nov 2021 02:57:49 -0600 On 11/18/21 9:12 AM, Istvan Gabor wrote:
Hello:
This occurs in openSUSE Leap 15.3 (64 bit).
Gtk2 applications start with a 25 seconds delay. That is, it takes exactly 25 seconds the application window to appear.
. . .
Thanks,
Istvan
. . . If there is a 20 sec slowdown, then there is likely a gtk+2 library that belongs to a gtk+2_somelib that has been removed and your app attempts to load it with a 20/25 second timeout. What app? You can run ldd against the executable to check the library dependency and see if anything was missing. -- David C. Rankin, J.D.,P.E. Another approach would be to use bpftrace to try to discover what system call is hanging; that ought to tell you exactly what it's trying to do. But I'm afraid you're on your own there; I've used truss and strace in previous releases, but bpftrace is new to me -- and looks significantly more powerful/complicated. -- Bob Rogers http://www.rgrjr.com/
Mon, 22 Nov 2021 11:37:39 -0500 időpontban Bob Rogers írta:
From: "David C. Rankin" <drankinatty@suddenlinkmail.com> Date: Sun, 21 Nov 2021 02:57:49 -0600
On 11/18/21 9:12 AM, Istvan Gabor wrote:
Hello:
This occurs in openSUSE Leap 15.3 (64 bit).
Gtk2 applications start with a 25 seconds delay. That is, it takes exactly 25 seconds the application window to appear.
. . .
Thanks,
Istvan
. . .
If there is a 20 sec slowdown, then there is likely a gtk+2 library that belongs to a gtk+2_somelib that has been removed and your app attempts to load it with a 20/25 second timeout.
What app? You can run ldd against the executable to check the library dependency and see if anything was missing.
-- David C. Rankin, J.D.,P.E.
Another approach would be to use bpftrace to try to discover what system call is hanging; that ought to tell you exactly what it's trying to do. But I'm afraid you're on your own there; I've used truss and strace in previous releases, but bpftrace is new to me -- and looks significantly more powerful/complicated.
-- Bob Rogers http://www.rgrjr.com/
OK, finally I solved this, but I think it should not require such solution. The cause of the delay, indeed was a 25 seconds timeout, which I knew before from the bug report I linked in my original post. Then what made me stuck was that I could not find gsd-xsettings in openSUSE. Finally by using export GTK_MODULES=appmenu-gtk-module fixed the problem. I added it to my .bashrc file. Thanks again, Istvan
Hello, In the Message; Subject : Re: gtk2 application start delays 25 seconds Message-ID : <bd4f71a1a339fd943dc4c6ba81b5818f@gmail.hu> Date & Time: Fri, 26 Nov 2021 18:36:00 +0100 [IG] == Istvan Gabor <suseuser04@gmail.hu> has written: [...] IG> OK, finally I solved this, but I think it should not require such IG> solution. IG> The cause of the delay, indeed was a 25 seconds timeout, which I IG> knew before from the bug report I linked in my original post. IG> Then what made me stuck was that I could not find gsd-xsettings IG> in openSUSE. IG> Finally by using export GTK_MODULES=appmenu-gtk-module fixed the IG> problem. IG> I added it to my .bashrc file. Sorry, but I can't agree your conclusion. As you alredy know, appmenu-gtl-module watches for the old types menu (ie., GtkMenuShells and GtkMenuItems) and exports the GMenuModel implementation. Why does this function serve to speed up of app's start, I wonder? With what app did you get the above conclusion? libxmlb does serve to speed up of app's start, I confirmed again. This requires caching, though. Thanks. --- ┏━━┓彡 Masaru Nomiya mail-to: nomiya @ galaxy.dti.ne.jp ┃\/彡 ┗━━┛ Think. -- The IBM slogan --
Sun, 28 Nov 2021 10:31:36 +0900 időpontban Masaru Nomiya írta:
Hello,
In the Message;
Subject : Re: gtk2 application start delays 25 seconds Message-ID : <bd4f71a1a339fd943dc4c6ba81b5818f@gmail.hu> Date & Time: Fri, 26 Nov 2021 18:36:00 +0100
[IG] == Istvan Gabor <suseuser04@gmail.hu> has written:
[...] IG> OK, finally I solved this, but I think it should not require such IG> solution.
IG> The cause of the delay, indeed was a 25 seconds timeout, which I IG> knew before from the bug report I linked in my original post.
IG> Then what made me stuck was that I could not find gsd-xsettings IG> in openSUSE.
IG> Finally by using export GTK_MODULES=appmenu-gtk-module fixed the IG> problem. IG> I added it to my .bashrc file.
Sorry, but I can't agree your conclusion.
As you alredy know, appmenu-gtl-module watches for the old types menu (ie., GtkMenuShells and GtkMenuItems) and exports the GMenuModel implementation.
I don't know. I found this solution in the bug report linked above, and it worked for me.
Why does this function serve to speed up of app's start, I wonder?
I have no idea why it is working.
With what app did you get the above conclusion?
The applicatioin I use is Pale Moon (palemoon) web browser, 29.4.2.1 gtk2 version. Available here: http://linux.palemoon.org/download/mainline/ I would try other gtk2 applications as well, but I could not find any in the repos.
libxmlb does serve to speed up of app's start, I confirmed again. This requires caching, though.
I have these two libxmlb pacakages installed: rpm -qa | grep -i libxmlb libxmlb2-0.2.1-1.34.x86_64 libxmlb1-0.1.11-3.2.1.x86_64 Still without setting $GTK_MODULES=appmenu-gtk-module the application starts only after a 25 seconds timeout passed. (More accurately, the gtk2 window appears after 25 seconds.) There is no such problem with gtk3 applications, their window appears immediately. Any explanation? Thanks, Istvan
On 06.12.2021 19:55, Istvan Gabor wrote:
Sun, 28 Nov 2021 10:31:36 +0900 időpontban Masaru Nomiya írta:
Hello,
In the Message;
Subject : Re: gtk2 application start delays 25 seconds Message-ID : <bd4f71a1a339fd943dc4c6ba81b5818f@gmail.hu> Date & Time: Fri, 26 Nov 2021 18:36:00 +0100
[IG] == Istvan Gabor <suseuser04@gmail.hu> has written:
[...] IG> OK, finally I solved this, but I think it should not require such IG> solution.
IG> The cause of the delay, indeed was a 25 seconds timeout, which I IG> knew before from the bug report I linked in my original post.
IG> Then what made me stuck was that I could not find gsd-xsettings IG> in openSUSE.
IG> Finally by using export GTK_MODULES=appmenu-gtk-module fixed the IG> problem. IG> I added it to my .bashrc file.
Sorry, but I can't agree your conclusion.
As you alredy know, appmenu-gtl-module watches for the old types menu (ie., GtkMenuShells and GtkMenuItems) and exports the GMenuModel implementation.
I don't know. I found this solution in the bug report linked above, and it worked for me.
Why does this function serve to speed up of app's start, I wonder?
I have no idea why it is working.
With what app did you get the above conclusion?
The applicatioin I use is Pale Moon (palemoon) web browser, 29.4.2.1 gtk2 version. Available here:
http://linux.palemoon.org/download/mainline/
I would try other gtk2 applications as well, but I could not find any in the repos.
libxmlb does serve to speed up of app's start, I confirmed again. This requires caching, though.
I have these two libxmlb pacakages installed:
rpm -qa | grep -i libxmlb libxmlb2-0.2.1-1.34.x86_64 libxmlb1-0.1.11-3.2.1.x86_64
Still without setting $GTK_MODULES=appmenu-gtk-module the application starts only after a 25 seconds timeout passed. (More accurately, the gtk2 window appears after 25 seconds.)
There is no such problem with gtk3 applications, their window appears immediately.
Any explanation?
AFAIU ultimate issue is https://gitlab.gnome.org/GNOME/glib/-/issues/541.
Thanks,
Istvan
participants (5)
-
Andrei Borzenkov
-
Bob Rogers
-
David C. Rankin
-
Istvan Gabor
-
Masaru Nomiya