Some applications takes ages to start

I have just installed OpenSUSE TW a few days ago and whenever I start some programs they take atleast 30 seconds to start. Firefox, thunar, and flameshot are the applications I’ve experienced this issue with. Alaritty, xterm, and emacs does not seem to have the same issue.

What could be the reason?

Some technical info:
TW version: 20221215
WM: dwm

How much memory and what CPU

When you start “firefox”, it has a lot more code to load. And then it looks through cache, probably builds a cache directory, before it can get started. Simpler applications such as “xterm” don’t have to do that much work.

I haven’t timed “firefox” here, but it does take a while when first loaded. For me, the slowest is “virt-manager” which takes several minutes.

32 GB RAM
i7-10750H 6 cores

If I strace firefox it stops and polls for ~20 seconds before continuing.

Can you share the log (with timestamps) via SUSE paste?

With this hardware I see no reason for any delays . Maybe a DSN Issue???

What log are you referring to?

@malba I suspect @gogalthorp is referring to the strace output.

In firefox settings, check the proxy setting and disable.

Are you using you ISP DNS servers, or a third party one (google, openDNS etc).

Firefox is the only application from the ones you are mentioning which I use as well and on one of my machines I sometimes (usually after a Tumbleweed update) see a similar delay on Firefox start up as you do.

Searching the internet for quite a while I found

zypper in -f gsettings-desktop-schemas

should help (some GTK3 problem?).

I tested it and it did indeed remove the startup delay.

Maybe it’s worth trying …

I think the problem might have something to do with the display manager. If I try changing from “console” (where i started X11 with startx) to SDDM described in this guide, I get put straight into DWM and all applications seems to start with no delay.

Now how do I resolve this issue where the display manager does not start?

What log are you referring to?

The strace log you mentioned in the reply above.

Timing Firefox is straight forward. It runs in the app slice. Startup takes some five cpu seconds :

erlangen:~ # systemd-cgtop --depth=1 --cpu=time user.slice/user-1000.slice/user@1000.service/app.slice|cat
user.slice/user-1000.slice/user@1000.service/app.slice                                                                             568 51min 49.010982s     3.2G        -        -
user.slice/user-1000.slice/user@1000.service/app.slice/app-\x2fusr\x2fbin\x2fkalendarac-ba6981c42fcd42b1a3ad1ce184a9fa19.scope     173   1min 7.558663s   798.2M        -        -
user.slice/user-1000.slice/user@1000.service/app.slice/app-konsolesu-850dd560a0a546babf0128b23a4f2358.scope                         16       41.028180s   486.0M        -        -
user.slice/user-1000.slice/user@1000.service/app.slice/app-org.kde.kmail2-355b7d0ce4b64b17b420f1a90815afdb.scope                    51       12.391232s   431.5M        -        -
user.slice/user-1000.slice/user@1000.service/app.slice/app-firefox-118ad35a89f341069f9fc984f1021e8b.scope                          305        5.873954s   696.1M        -        -
user.slice/user-1000.slice/user@1000.service/app.slice/app-kaccess@autostart.service                                                 7        1.237631s    16.9M        -        -
user.slice/user-1000.slice/user@1000.service/app.slice/save-jalbum-settings.service                                                  2        1.068512s     1.5M        -        -
user.slice/user-1000.slice/user@1000.service/app.slice/xdg-desktop-portal-gtk.service                                                8        337.779ms    31.8M        -        -
user.slice/user-1000.slice/user@1000.service/app.slice/app-geoclue\x2ddemo\x2dagent@autostart.service                                3          6.258ms  1000.0K        -        -
user.slice/user-1000.slice/user@1000.service/app.slice/dconf.service                                                                 3          3.687ms   948.0K        -        -
erlangen:~ # 

One second real time:

karl@erlangen:~> journalctl --user -b -u app-firefox-118ad35a89f341069f9fc984f1021e8b.scope --output short-monotonic 
[22487.798053] erlangen systemd[4007]: Started Firefox - Web Browser.
[22488.003205] erlangen plasmashell[23823]: [GFX1-]: glxtest: VA-API test failed: failed to initialise VAAPI connection.
[22488.014420] erlangen plasmashell[23823]: ATTENTION: default value of option mesa_glthread overridden by environment.
[22488.022485] erlangen plasmashell[23823]: ATTENTION: default value of option mesa_glthread overridden by environment.
[22488.036938] erlangen plasmashell[23823]: ATTENTION: default value of option mesa_glthread overridden by environment.
[22488.055597] erlangen plasmashell[23823]: ATTENTION: default value of option mesa_glthread overridden by environment.
[22488.478152] erlangen plasmashell[23977]: ATTENTION: default value of option mesa_glthread overridden by environment.
[22488.500130] erlangen kmozillahelper[23977]: kf.i18n: KLocalizedString: Using an empty domain, fix the code. msgid: "Mozilla Firefox" msgid_plural: "" msgctxt: ""
[22488.730040] erlangen plasmashell[23823]: [2022-12-19T18:13:40Z ERROR glean_core::metrics::ping] Invalid reason code startup for ping background-update
karl@erlangen:~> 

Consider this thread closed, I moved to another distrobution.