Closed Bug 2025982 Opened 8 months ago Closed 17 days ago

[Wayland] Crash: wp_fractional_scale_manager_v1 "fractional_scale_exists" fatal error when extension permission popup is shown/hidden/reshown on Crostini (ChromeOS sommelier)

Categories

(Core :: Widget: Gtk, defect)

Firefox 149
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: Damien, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(2 files)

Attached file firefox-wayland.log —

User Agent: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36

Steps to reproduce:

Environment:

  • Firefox Developer Edition 149.0b10~build1
  • ChromeOS Crostini (Linux VM, Debian bookworm)
  • Compositor: sommelier (Wayland proxy for ChromeOS)
  • Display: 2820×1880 @60Hz, preferred fractional scale 192 (1.5×)
  • MOZ_ENABLE_WAYLAND=1 (default)

Steps:

  1. Launch firefox-devedition (Wayland mode, default)
  2. Open any webpage
  3. Trigger an extension permission popup (e.g. install or re-authorize an extension)
  4. Dismiss the popup
  5. Trigger the same extension permission popup again

Actual results:

Firefox crashes immediately on step 5 with "Exiting due to channel error." (×5,
all child processes killed). A minidump is generated.

Root cause identified via WAYLAND_DEBUG=1:

On first popup (step 3), Firefox creates wl_surface@59 and correctly calls:
wpfractionalscalemanagerv1@28.get_fractional_scale → wpfractionalscalev1@56, wl_surface@59

On second popup (step 5), Firefox reuses wl_surface@59 WITHOUT first destroying
wpfractionalscalev1@56, then calls get_fractional_scale again:
wpfractionalscalemanagerv1@28.get_fractional_scale → wpfractionalscalev1@76, wl_surface@59

The fractional-scale-v1 protocol defines error 0 (fractional_scale_exists) for exactly
this case. sommelier raises a fatal protocol error, terminating the Wayland connection
and killing all Firefox processes.

Workaround: MOZ_ENABLE_WAYLAND=0 prevents the crash.

Expected results:

No crash :P

Okay, will look at it. I don't see any protocol error in the log.
Can you please run with MOZ_LOG="WidgetWayland:5" WAYLAND_DEBUG=1 env variables, reproduce the crash and attach the log here?
Thanks.

Blocks: wayland
Severity: -- → S3
Flags: needinfo?(Damien)
Flags: needinfo?(Damien)

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

Okay, will look at it. I don't see any protocol error in the log.
Can you please run with MOZ_LOG="WidgetWayland:5" WAYLAND_DEBUG=1 env variables, reproduce the crash and attach the log here?
Thanks.

Here it is : $ MOZ_LOG="WidgetWayland:5" WAYLAND_DEBUG=1 firefox-devedition 2> firefox.log

Thanks. From the log it looks like Firefox creates the new fractional scale object but destroys the previous one:

[3809723.076] {Default Queue}  -> wp_fractional_scale_manager_v1#28.get_fractional_scale(new id wp_fractional_scale_v1#68, wl_surface#52)
[3809725.154] {Default Queue} wp_fractional_scale_v1#68.preferred_scale(192)
[3809725.163] {Default Queue} wp_fractional_scale_v1#68.preferred_scale(192)
[3810748.307] {Default Queue}  -> wp_fractional_scale_v1#68.destroy()
[3820451.805] {Default Queue}  -> wp_fractional_scale_manager_v1#28.get_fractional_scale(new id wp_fractional_scale_v1#48, wl_surface#52)

Please look at about:crashes and submit them here:
https://fedoraproject.org/wiki/Debugging_guidelines_for_Mozilla_products#Using_Mozilla_crash_reporter

Maybe the crash reason / protocol error is different?

Flags: needinfo?(Damien)

Can you reproduce the crash reliably? If so, Can you run it on terminal with WAYLAND_DEBUG=1 MOZ_LOG="WidgetWayland:5" env variables, reproduce the crash and attach it here?
Thanks.

Flags: needinfo?(AngelOfDarkness)

I wonder how it can happen as we delete it before we create a new one. Also I don't see such reports from any other compositor than the Chrome one.

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

Please report that at ChromeOS Crostini - it's a bug there.
Thanks.

Flags: needinfo?(stransky)

A needinfo is requested from the reporter, however, the reporter is inactive on Bugzilla. Given that the bug is still UNCONFIRMED, closing the bug as incomplete.

For more information, please visit BugBot documentation.

Status: UNCONFIRMED → RESOLVED
Closed: 17 days ago
Flags: needinfo?(Damien)
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: