Closed Bug 1775002 Opened 2 years ago Closed 9 months ago

Crash error 2: Buffer size (1x1) is not divisible by scale (2)

Categories

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

Firefox 103
x86_64
Linux
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: kyle.cowden, Unassigned)

References

(Blocks 1 open bug)

Details

Crash Data

Attachments

(1 file)

Crash report: https://crash-stats.mozilla.org/report/index/f01d8f25-ef46-4c74-8a58-042030220620

MOZ_CRASH Reason: wl_surface@163: error 2: Buffer size (1x1) is not divisible by scale (2)

Top 10 frames of crashing thread:

0 libxul.so mozilla::widget::WlCrashHandler widget/gtk/nsWaylandDisplay.cpp:336
1 libwayland-client.so.0 <.text ELF section in libwayland-client.so.0.20.0> 
2 libwayland-client.so.0 <.text ELF section in libwayland-client.so.0.20.0> 
3 libffi.so.8 ffi_prep_go_closure 
4 libffi.so.8 <.text ELF section in libffi.so.8.1.0> 
5 libwayland-client.so.0 <.text ELF section in libwayland-client.so.0.20.0> 
6 libwayland-client.so.0 wl_list_remove 
7 libwayland-client.so.0 wl_display_dispatch_queue_pending 
8 libgdk-3.so.0 gdk_wayland_device_get_wl_keyboard 
9 libgdk-3.so.0 gdk_display_get_event 

Firefox nightly (and also probably stable) (using MOZ_WEBRENDER=1) crashes when dragging a tab to a new window with the cursor on sway. output with WAYLAND_DEBUG=1 attached
display resolution is: 2256x1504
and scaling factor is: 2.000000

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

Jan, is that a mutter bug you solved recently?

Flags: needinfo?(jhorak)

Most likely, it depends on the mutter version the Arch has, the

MOZ_CRASH Reason: wl_surface@163: error 2: Buffer size (1x1) is not divisible by scale (2)

is very familiar to bug 1769268.

Flags: needinfo?(jhorak)

The bug has a crash signature, thus the bug will be considered confirmed.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Blocks: wayland
Priority: -- → P3

(In reply to Jan Horak [:jhorak] from comment #3)

Most likely, it depends on the mutter version the Arch has, the

MOZ_CRASH Reason: wl_surface@163: error 2: Buffer size (1x1) is not divisible by scale (2)

is very familiar to bug 1769268.

The bug occurs using sway, which doesn't use (or involve) mutter as far as I am aware

Although, it goes away when I set the scaling from 2 to 1, so it probably is something similarly scaling related.

This is a bug in compositor, fixed some time ago in Mutter. If you see that please report it at Sway bug tracker.
Thanks.

Blocks: wayland-sway
No longer blocks: wayland
Summary: Crash in [@ <.text ELF section in libwayland-client.so.0.20.0>] → [Sway] Crash error 2: Buffer size (1x1) is not divisible by scale (2)

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

This is a bug in compositor, fixed some time ago in Mutter. If you see that please report it at Sway bug tracker.
Thanks.

In fact this is not a bug in Sway. The Wayland spec clearly demands to treat this as an error, but most compositors until recently only threw a warning in the logs. In Gnome 42 we shortly started enforcing the rule, but crashes became so common that we backtracked[1]. Mutter will at some point start again to enforce it, so this needs to get fixed.

Note that GTK3 could also trigger the crash until recently under certain circumstances[2]

1: https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2335
2: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4381

Blocks: wayland
No longer blocks: wayland-sway
Summary: [Sway] Crash error 2: Buffer size (1x1) is not divisible by scale (2) → Crash error 2: Buffer size (1x1) is not divisible by scale (2)

Brief update: I can not reproduce on 102.0, but the bug still occurs on the latest 103 nightly release.

(In reply to ky from comment #10)

Brief update: I can not reproduce on 102.0, but the bug still occurs on the latest 103 nightly release.

Ah, looks like you have gfx.webrender.compositor.force-enabled:true. This is now disabled in release/beta, only works in nightly.

Note that this feature is highly experimental and currently on hold due to the reason outlined in bug 1617498 comment 28

Blocks: WR-linux-wayland-compositing
No longer blocks: wayland

(In reply to kode54 from comment #12)

This is now occurring in 112.0.1:

https://crash-stats.mozilla.org/report/index/29dbd31a-0aa3-45ab-9c3b-6182b0230426

wl_surface@91: error 2: Buffer size (1067x120) is not divisible by scale (2)

Thanks for the report! That's a different bug:
bug 1813407 landed in 112 and caused bug 1820293 (= bug 1822520 = your crash), which has been closed as duplicate of bug 1803016, which has been fixed in 113, but not backported to 112.
Which desktop environment are you using? (Gnome, KDE, sway?)
Please consider testing https://aur.archlinux.org/packages/firefox-nightly. Thanks!

Closing because no crashes reported for 12 weeks.

Status: NEW → RESOLVED
Closed: 9 months ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: