Closed Bug 1940341 Opened 1 year ago Closed 4 months ago

Firefox (Flatpak) randomly fails to launch [Wayland: Resource temporarily unavailable]

Categories

(Core :: Widget: Gtk, defect, P2)

Firefox 134
defect

Tracking

()

RESOLVED FIXED
150 Branch
Tracking Status
firefox150 --- fixed

People

(Reporter: fernandommuniz, Assigned: stransky)

References

(Blocks 1 open bug)

Details

Attachments

(6 files)

Attached video 2025-01-04 05-01-26.mp4

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0

Steps to reproduce:

Repeatedly open and close Firefox successfully (or just had bad luck on the first launching attempt)... Until

Actual results:

A massive compositor error happened.
https://bugs.kde.org/show_bug.cgi?id=495767

jan 04 05:24:13 archlinux systemd[752]: Started Firefox - Navegador web.
jan 04 05:24:13 archlinux systemd[752]: Started app-flatpak-org.mozilla.firefox-2213.scope.
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Warning: ConnectToCompositor() try again : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Error: ConnectToCompositor() connect() failed repeatedly : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Error: ProxiedConnection::Process(): Failed to connect to compositor
jan 04 05:24:13 archlinux flatpak[2224]: : Recurso temporariamente indisponível
jan 04 05:24:13 archlinux flatpak[2224]: Error: we don't have any display, WAYLAND_DISPLAY='wayland-0' DISPLAY='(null)'
jan 04 05:24:13 archlinux systemd[752]: app-org.mozilla.firefox@869d1978373842438fd31d4a99e60355.service: Main process exited, code=exited, status=1/FAILURE
jan 04 05:24:13 archlinux systemd[752]: app-org.mozilla.firefox@869d1978373842438fd31d4a99e60355.service: Failed with result 'exit-code'.
jan 04 05:24:14 archlinux systemd[1]: systemd-localed.service: Deactivated successfully.

Expected results:

It should just launch normally.

The Bugbug bot thinks this bug should belong to the 'Firefox Build System::Third Party Packaging' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Third Party Packaging
Product: Firefox → Firefox Build System

The severity field is not set for this bug.
:gerard-majax, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(lissyx+mozillians)

Martin, this may be indicative of a leak in the wayland proxy?

Flags: needinfo?(lissyx+mozillians) → needinfo?(stransky)

Repeatedly open and close Firefox successfully (or just had bad luck on the first launching attempt)... Until

Can you document more here? Is it random and it may happens at first launch, or is it after several (how many) successful runs ?

Can you share more details about the system ? OS ? about:support ? I see you use KDE, it may also be a leak on their side

Flags: needinfo?(fernandommuniz)

(In reply to :gerard-majax from comment #4)

Repeatedly open and close Firefox successfully (or just had bad luck on the first launching attempt)... Until

Can you document more here? Is it random and it may happens at first launch, or is it after several (how many) successful runs ?

Can you share more details about the system ? OS ? about:support ? I see you use KDE, it may also be a leak on their side

It's random and can happen at first launch. And private windows can fail to launch while having a normal window opened.

What part of about:support do I have to copy? It's a massive text.

Operating System: Arch Linux
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1
Kernel Version: 6.12.10-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i5-11300H @ 3.10GHz
Memory: 8.1 GB of RAM
Graphics Processor: Mesa Intel® Iris® Xe Graphics
Manufacturer: LENOVO
Product Name: 82MG
System Version: IdeaPad Gaming 3 15IHU6

GPU 1: NVIDIA GeForce GTX 1650 Mobile / Max-Q [Discrete]
GPU 2: Intel Iris Xe Graphics @ 1.30 GHz [Integrated]

Flags: needinfo?(fernandommuniz)

From https://github.com/Floorp-Projects/Floorp/issues/1452 it's not a new thing. Have you ever experience it or could you identify a range of versions it started ? The error shared suggest it's on the flatpak side. I think martin may have more ideas.

Flags: needinfo?(fernandommuniz)

Please try to run flatpak on terminal with

--env MOZ_DISABLE_WAYLAND_PROXY=1

argument and check output. That disables wayland proxy. Also please try to run with proxy enabled and logging, i.e.:

--env WAYLAND_PROXY_LOG=1

and attach output here. You may run it on terminal as:

flatpak run org.mozilla.Firefox --env WAYLAND_PROXY_LOG=1 

where org.mozilla.Firefox is name of Firefox/flatpak. You can get list of all flatpak apps by

flatpak list

terminal command if org.mozilla.Firefox is not a correct name.

Flags: needinfo?(stransky)
Flags: needinfo?(fernandommuniz)

Should I keep trying both until it fails to launch?

Looks like org.mozilla.Firefox is not installed. What does print flatpak list ?

The severity field is not set for this bug.
:gerard-majax, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(lissyx+mozillians)

org.mozilla.firefox is there, it's Fedora one right?

Flags: needinfo?(lissyx+mozillians) → needinfo?(stransky)

Okay, please run as:

flatpak run org.mozilla.firefox --env WAYLAND_PROXY_LOG=1 

Thanks.

Flags: needinfo?(stransky) → needinfo?(fernandommuniz)

Couldn't manage to get it to fail to launch with that command, but I could get it to say the same error, the quantity of lines regarding that error varies, which makes me think this command keeps trying to launch Firefox until it succeeds.

Flags: needinfo?(fernandommuniz)

I find this crash only happens when firefox is launched through krunner, has anyone been able to reproduce the crash when running it from the terminal?

I'm not sure how related this is but I am experiencing something quite similar.
Launching with "flatpak run org.mozilla.firefox" in terminal works fine, however, if I try to launch from desktop/KDE Start menu entry it created upon installation, it sometimes does nothing and I need to try it a few more times (like 2-6x).
Another problem that could be related to this, is that opening links from other flatpak apps in flatpak Firefox also sometimes fails (regardless of whether Firefox was already open or not) and I need to try it a few more times. Links from non-flatpak apps -> flatpak Firefox open without a problem.

Operating System: Fedora Linux 41 (Kinoite)
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.12.13-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ i5-10600K CPU @ 4.10GHz
Memory: 15.5 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3070/PCIe/SSE2
Manufacturer: ASUS

Not sure about flatpak but for system-wide installed Firefox you can add logging to system launch script directly (on Fedora it's /usr/bin/firefox).

With MOZ_DISABLE_WAYLAND_PROXY=1, I no longer have any problems launching Firefox.
Without it, WAYLAND_PROXY_LOG=1 outputs this: https://gist.githubusercontent.com/lostdharma/a3e511cc3ee0ff7ebbc6dabb7e6bea41/raw/500c97324b3a240202f4ae5f2c82f987bb09f8c4/firefoxlauncherror.txt

(In reply to lostdharmai from comment #19)

With MOZ_DISABLE_WAYLAND_PROXY=1, I no longer have any problems launching Firefox.
Without it, WAYLAND_PROXY_LOG=1 outputs this: https://gist.githubusercontent.com/lostdharma/a3e511cc3ee0ff7ebbc6dabb7e6bea41/raw/500c97324b3a240202f4ae5f2c82f987bb09f8c4/firefoxlauncherror.txt

Is that flatpak or plain Firefox binary?
Thanks.

Flags: needinfo?(lostdharma)

I wonder if we may extend the proxy timeout to wait a bit longer - Resource temporarily unavailable is not a fatal error and we may wait for it.

Component: Third Party Packaging → Widget: Gtk
Priority: -- → P2
Product: Firefox Build System → Core
Summary: Firefox (Flatpak) randomly fails to launch. "journalctl -f" shows multiple compositor errors. → Firefox (Flatpak) randomly fails to launch [Wayland: Resource temporarily unavailable]
Flags: needinfo?(stransky)

If you run with MOZ_DISABLE_WAYLAND_PROXY=1 how long does it take Firefox to start?
Thanks.

That was on flatpak Firefox and from my limited testing, I don't think I had any of this happen on non-flatpak Firefox.

About the startup time... It's like half a second and I can't really see any difference between having that env variable on or off - when it launches, that is.

Flags: needinfo?(lostdharma)
Flags: needinfo?(stransky)

(In reply to Martin Stránský [:stransky] (ni? me) from comment #21)

I wonder if we may extend the proxy timeout to wait a bit longer - Resource temporarily unavailable is not a fatal error and we may wait for it.

I also think that would probably work.

(Coming here because I reproduce this with the fedora package ( firefox-146.0-3.fc43.x86_64 ) being run in firejail (didn't try without firejail); sometimes it works, sometimes it prints the try again message a couple of times)
To me it looks like a simple synchronization issue (the client tries to connect to the proxy before the proxy is ready) and waiting a bit longer ought to do the trick.
I'd go as far as saying the try again message debug level should be lowered, or rate limited, unless proper synchronization is in place.

I'm experiencing this issue on Bazzite 43.

I have to disable Wayland on Flatseal for Firefox to open.

Is there anyway I can help to fix this?

(In reply to eliaspoveda from comment #25)

I'm experiencing this issue on Bazzite 43.

I have to disable Wayland on Flatseal for Firefox to open.

Is there anyway I can help to fix this?

Can you run with WAYLAND_PROXY_LOG=1 env variable and attach the log here?
Thanks.

Flags: needinfo?(eliaspoveda)

I am now using Fedora KDE and I have the same issue.

(In reply to Martin Stránský [:stransky] (ni? me) from comment #26)

(In reply to eliaspoveda from comment #25)

I'm experiencing this issue on Bazzite 43.

I have to disable Wayland on Flatseal for Firefox to open.

Is there anyway I can help to fix this?

Can you run with WAYLAND_PROXY_LOG=1 env variable and attach the log here?
Thanks.

Could you tell me how to add that variable and generate the log, please?

Flags: needinfo?(eliaspoveda)

flatpak run org.mozilla.Firefox --env WAYLAND_PROXY_LOG=1

I am using the Zen flatpak now (based on Firefox), but I said I still have the same issue.

I hope the log helps.

Sometimes it opens sometimes it doesn't. It's random.

Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Error: ConnectToCompositor() connect() failed repeatedly : Resource temporarily unavailable
Error: ProxiedConnection::Process(): Failed to connect to compositor
 : Resource temporarily unavailable
Error: we don't have any display, WAYLAND_DISPLAY='wayland-0' DISPLAY='(null)'

I wonder why we see it. We'd need to use strace but I' not sure how it integrates with flatpak.

Flags: needinfo?(stransky)

FWIW I ran with strace a while back and you won't get much more info (at least with a basic strace) -- firefox repeatedly calls connect() on the proxy socket and gets EAGAIN until it gives up.
This happens even when firefox successfully launches, there's just no synchronization so if it's a bit slower it'll timeout.
I assume the proper solution would be to add some synchronization between starting the proxy and trying to connect to it, but a stopgap increasing the timeout would probably be enough for most use cases...

(I was just getting annoyed and cloned the firefox repo to look into it, but I upgraded to fedora 44 beta and it's not been happening since so I won't be of any more help here :/)

I think we just can threat 'try again' as non-fatal error and just try again and don't fail. Or use a bigger timeout or so.

Checked how Gtk3 works and it calls just wl_display_connect() which calls connect() to wayland socket only once and returns nullptr on any failure.

Let's create the compositor socket blocking - there's no point to start the proxy without wayland compositor anyway.

Flags: needinfo?(stransky)
Assignee: nobody → stransky
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch
QA Whiteboard: [qa-triage-done-c151/b150]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: