[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)
Tracking
()
People
(Reporter: Damien, Unassigned)
References
(Blocks 2 open bugs)
Details
Attachments
(2 files)
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:
- Launch firefox-devedition (Wayland mode, default)
- Open any webpage
- Trigger an extension permission popup (e.g. install or re-authorize an extension)
- Dismiss the popup
- 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
Comment 1•8 months ago
|
||
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.
| Reporter | ||
Comment 2•8 months ago
|
||
| Reporter | ||
Comment 3•8 months ago
|
||
(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
Comment 4•7 months ago
|
||
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?
Comment 5•6 months ago
|
||
For the past few months, I have also been experiencing nothing but crashes on my Chromebook. Here are a few of my crash reports.
https://crash-stats.mozilla.org/report/index/4aead3b4-0245-4120-a747-4be500260501
https://crash-stats.mozilla.org/report/index/cec3cec8-cb65-4b66-b126-bc4130260406
https://crash-stats.mozilla.org/report/index/32d13659-e7c5-450a-9dd3-b0c180260227
Comment 6•6 months ago
|
||
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.
Comment 7•6 months ago
|
||
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.
Comment 8•6 months ago
|
||
I set the env variables, via export cmd at the terminal.
But it's the same. Firefox crashes again.
nightly: https://crash-stats.mozilla.org/report/index/2957641f-7b07-4179-85f0-303810260517
stable: https://crash-stats.mozilla.org/report/index/70adb033-d13e-49e2-8aa7-046680260517
stable: https://crash-stats.mozilla.org/report/index/a6f7fbb7-f02f-4afb-8acf-e33150260517
Comment 9•6 months ago
|
||
Please report that at ChromeOS Crostini - it's a bug there.
Thanks.
Updated•21 days ago
|
Comment 10•17 days ago
|
||
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.
Description
•