There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

(Almost Solved?) Firefox flatpak started taking 3+ minutes to start?

Edit:

I turned off my wifi card, and now it launches immediately. Of course, what is a browser with no internet. But I guess there’s something about the network I moved to thats causing the delay. I’ll try a different network tomorrow and update for science

OG post: This applies to librewolf and firefox flatpaks. Just to preface, I’ve been using these flatpaks for years and never experienced anything like this.

This morning I did my business as normal with no issues. I usually open and close firefox alot and it takes maybe 10-30 seconds to start.

Then I shutdown for awhile. Came back and fired up firefox… nothing happened. The process is not using any cpu, it just sits. I kill the process and try again nothing changes. After 3-5 minutes, the window finally pops up.

My system installation of firefox works fine. So does the flatpaks for qutebrowser and tor browser. I ran flatpak repair and reinstalled them. Nothing has changed.

I didn’t make any changes to my system. There were no significant updates. I have no idea why this started.

If anybody has any tips on troubleshooting this, I would appreciate it.

Btw I’m on fedora39, and I’ve tested this on sway, gnome, hyprland, and gnome on xorg.

wingsfortheirsmiles ,

I’m also having this issue on my desktop with Firefox flatpak connected via Ethernet and Librewolf deb on my Surface Pro 8 via WiFi. On the SP8 it opens immediately on disabling WiFi or switching off my VPN which seems bizarre but at least partially lines up with your experience.

I’m an uninformed casual on Linux but if I can help diagnose/resolve this lmk

somethingsomethingidk OP ,

You could try dmesg -w in a terminal before you start firfox and see if any messages come through.

Can you still access the internet with another program?

This could be a firefox issue, and not a flatoak issue as I assumed. Do you have another version of firefox on the system? If so what version?

wingsfortheirsmiles ,

They all look to be 123.0, though bizarrely the version advertised as flatpak in About Firefox doesn’t pause/delay before opening but the other version does. No messages come through on dmesg -w unfortunately, I’m pretty stumped. The only clue I have is that the version of Librewolf I have on my desktop installed through the Pop Shop doesn’t delay opening but the same version on my SP8 installed through deb does.

Ultimately it does point towards FF in show way?

possiblylinux127 ,

I noticed that as well. I don’t know why and it seems very random. It happened on my virtual computer with a AMD GPU but my laptop seems unaffected.

Atemu ,
@Atemu@lemmy.ml avatar

Could you leave journalctl -f running while Firefox is starting? Anything interesting happening right after initiating the start and/or before it actually starts?

somethingsomethingidk OP ,

The only thing that came up was some memory allocation/cgroup/.slice stuff for the container.

I’m not on that network anymore, and the problem is gone. So I cant reproduce.

Maybe I should have run wireshark?

Atemu ,
@Atemu@lemmy.ml avatar

I mean, you could, sure.

As a next sensible step though, I’d start firefox from the CLI with more verbose logs enabled.

Churbleyimyam ,

Good old flatpak. Based on this you can expect it to take roughly thirty thousand years next time you need to restore a system backup.

lemmyvore ,

What version of xdg-desktop-portal-* package do you have installed? If it’s -gnome try replacing it with -gtk, see if that helps.

somethingsomethingidk OP ,

The gnome portal is not running. The gtk and wlr portals are, as they have been for months with no issue.

xdg-desktop-portal-wlr.x86_64 0.7.1-1.fc39
xdg-desktop-portal-gtk.x86_64 1.15.1-1.fc39

lemmyvore ,

But is the gnome portal installed? Firefox may still try to use it if it’s there.

You don’t lose anything by uninstalling the gnome portal, the gtk portal takes over.

somethingsomethingidk OP ,

I uninstalled, it didn’t change anything :(

Pantherina ,

Install perf and use the app hotspot or just perf itself to run the command and see what happens

Suspiciousbrowsing , (edited )

I've been considering switching to Linux, but did you say Firefox takes 30 seconds to start? Is that standard?
Edit: what a strange bunch you are to downvote a random question.

walden ,

No, it opens without delay.

Suspiciousbrowsing ,

Excellent, thank you.

somethingsomethingidk OP , (edited )

Yeah I am on a potato, i just gave that as a reference. Its really probably more like 10 the first time it opens. After that its faster.

yianiris ,
@yianiris@kafeneio.social avatar

Non-sense, any linux, even the most wasteful in resources, ubuntu, mint, manjaro, debian, fedora, gnome plasma DE, uses a fraction of resources to start and execute whatever. I have 2-3 friends running daily on early/mid 2core intel/amd machines where w10/11 wouldn't even boot!

@Suspiciousbrowsing @somethingsomethingidk

miwel ,

We warned you before jumping onto every new buzzword and new shiny thing pushed by red hat. You should have listened to us.

ezchili ,

Sometimes some programs and some downloads have weird slowdowns like this when my VPN is on, even though others remain completely unaffected

somethingsomethingidk OP ,

All vpn things are off (i.e. wireguard and tailscale)

jbloggs777 ,

Also a dbus notification daemon (whichever you use) may be having problems. Things hang inexplicably if it’s not running.

somethingsomethingidk OP ,

I’m using dunst and it’s running. I dont get notifications often, so I opened element to get some. Element isn’t working either lol

rtxn ,

It usually does that for me when the XDG Desktop Portal borks. Run it from a terminal (flatpak run) and see if it complains about not being able to find a “settings” portal. You can also try to restart the xdg-desktop-portal.service user unit.

No joke, XDP has been so fucky on Hyprland, I have a keybinding to restart it.

somethingsomethingidk OP ,

I tried restarting portal, didn’t work. systemctl status for xdp did show an error for hyprland about a config file. But I’m running on sway mainly. I just tried out different DE’s to see if anything changed.

Here’s flatpak output


<span style="color:#323232;">flatpak run --verbose io.gitlab.librewolf-community
</span><span style="color:#323232;">F: No installations directory in /etc/flatpak/installations.d. Skipping
</span><span style="color:#323232;">F: Opening system flatpak installation at path /var/lib/flatpak
</span><span style="color:#323232;">F: Opening user flatpak installation at path /home/auser/.local/share/flatpak
</span><span style="color:#323232;">F: Opening user flatpak installation at path /home/auser/.local/share/flatpak
</span><span style="color:#323232;">F: Opening user flatpak installation at path /home/auser/.local/share/flatpak
</span><span style="color:#323232;">F: /home/auser/.local/share/flatpak/runtime/org.freedesktop.Platform/x86_64/23.08/329ad0f04e21dc3234accff013641299e13a9eb2f1b2908129692b4755393789/files/lib32 does not exist
</span><span style="color:#323232;">F: Cleaning up unused container id 75319174
</span><span style="color:#323232;">F: Cleaning up per-app-ID state for io.gitlab.librewolf-community
</span><span style="color:#323232;">F: Allocated instance id 821024549
</span><span style="color:#323232;">F: Add defaults in dir /io/gitlab/librewolf-community/
</span><span style="color:#323232;">F: Add locks in dir /io/gitlab/librewolf-community/
</span><span style="color:#323232;">F: Allowing dri access
</span><span style="color:#323232;">F: Allowing wayland access
</span><span style="color:#323232;">F: Allowing pulseaudio access
</span><span style="color:#323232;">F: Pulseaudio user configuration file '/home/auser/.config/pulse/client.conf': Error opening file /home/auser/.config/pulse/client.conf: No such file or directory
</span><span style="color:#323232;">F: CUPS configuration file '/home/auser/.cups/client.conf': Error opening file /home/auser/.cups/client.conf: No such file or directory
</span><span style="color:#323232;">F: Running '/usr/bin/bwrap --args 43 /usr/bin/xdg-dbus-proxy --args=45'
</span><span style="color:#323232;">F: Running '/usr/bin/bwrap --args 43 librewolf'
</span>
rtxn ,

That’s more or less what mine says. What about journalctl, does it print anything in red?

somethingsomethingidk OP ,

Nope it’s all green.

Idk if you saw my update but turning of the wifi fixes this problem.

I did move to a new network yesterday, I just didn’t think that could impact the flatpak launch, while not affecting the systems binary launch.

It’s a real head scratcher

rtxn ,

What brand and model is your wifi card? Linux has always had issues with Broadcom modules, but I don’t know why or how that would affect flatpak. Maybe you can find a relevant permission in Flatseal (like allowing the browser to control the wifi card) and turn it off for Firefox.

somethingsomethingidk OP ,

The card is Realtek. I found an askubuntu thread where all flatpak commands were hanging, and their solution was to disable the nic.

This has only happened on this network. I didnt mention at first because I didnt think it mattered, but I’m visiting someone and moved networks.

The instant I take the dev down, the browsers pop up. I would bet money that when I go to my home net everything will work.

The flatseal angle didnt work either. The only reference is names on system bus.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines