Closed Bug 1882998 Opened 11 months ago Closed 11 months ago

[Wayland Proxy] Fail if we can't connect to compositor for some time

Categories

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

defect

Tracking

()

RESOLVED FIXED
125 Branch
Tracking Status
firefox125 --- fixed

People

(Reporter: stransky, Assigned: stransky)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

Fail if we can't connect to compositor for some time.

Assignee: nobody → stransky
Status: NEW → ASSIGNED

I see this bug from the Wayland metabug, got a question: what would be the result of this in the case of a system under heavy load and temporarily unresponsive?

(Wondering, as I've a bug regarding some Firefox crashes on rare occasions, and that might be one of the causes)

(In reply to Clément Lefèvre from comment #2)

I see this bug from the Wayland metabug, got a question: what would be the result of this in the case of a system under heavy load and temporarily unresponsive?

(Wondering, as I've a bug regarding some Firefox crashes on rare occasions, and that might be one of the causes)

If we fail to connect to compositor for some time it usually means the connection is already dead as Gtk display init doesn't wait so long.
If Gtk display init fails at _gdk_wayland_display_open() (wl_display_roundtrip() returns -1) Gtk silently switches to X11 and proxy us not used at all.
I think in such case we should remove the proxy actually.

If Gtk switched from Wayland to X11 during display open phase, do that change on browser side too.
It may happen if WAYLAND_DISPLAY is wrongly set or compositor is slow or so.

Depends on D203249

Priority: -- → P3
Pushed by stransky@redhat.com: https://hg.mozilla.org/integration/autoland/rev/2c65e9ed99a1 [Wayland Proxy] Fail if we can't connect to compositor for some time r=emilio https://hg.mozilla.org/integration/autoland/rev/3645593a0f45 [Wayland] Fallback correctly to X11 if Gtk already switched from Wayland to X11 r=emilio https://hg.mozilla.org/integration/autoland/rev/8a586af3529e [Wayland Proxy] Minor logging tweak r=emilio
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: