Open Bug 1832499 Opened 2 years ago Updated 8 months ago

[Wayland] Gnome fractional scaling: Firefox crashes when dragging tabs: "cursor image size (64x64) not an integermultiple of scale (3)" + "Buffer size (340x228) must be an integer multiple of the buffer_scale (3)"

Categories

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

Firefox 113
Desktop
Linux
defect

Tracking

()

Tracking Status
firefox113 --- affected

People

(Reporter: graham_alton, Unassigned)

References

(Blocks 3 open bugs)

Details

(Keywords: crash)

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

Steps to reproduce:

Attempt to drag a tab to re-arrange the order of tabs or break a tab out into a separate window.
Firefox version 113.0-1.fc38.x86_64
Fedora Linux 38 with all latest updates as of 11th May 2023 (e.g. mutter-44.1-1, Wayland 1.22.0-1, NVidia proprietary drivers version 530.41.03, gnome-shell-44.1-1)

Actual results:

Firefox crashes immediately.

Expected results:

Tabs should be re-arranged or opened in a new window after the drag event finishes.

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

Argh, it's no longer crashing for me. I've started following the guide, however. Let me add more info in here if it starts happening again. Not sure if you prefer to close this and re-open or leave it open for a few days?

No problem, let's keep it open.
Thanks.

I just started a new firefox window, went to re-arrange some tabs and got the crash again. Following the debugging guide, I run coredumpctl but I don't see any dumps from Firefox. Are there any other settings I might need to enable to have coredumps captured?

Giving up with coredumpctl and running firefox through gdb seems to be a bit more fruitful.

I have several of these messages in GDB after the crash (I'm using Wayland with fractional scaling turned on)...

(firefox:82062): Gdk-WARNING **: 15:17:57.126: ../gdk/wayland/gdkcursor-wayland.c:242 cursor image size (64x64) not an integermultiple of scale (3)

I get one of these messages...

Crash Annotation GraphicsCriticalError: |[0][GFX1-]: Wayland protocol error: wl_surface@77: error 2: Buffer size (340x228) must be an integer multiple of the buffer_scale (3).
 (t=40.1344) [GFX1-]: Wayland protocol error: wl_surface@77: error 2: Buffer size (340x228) must be an integer multiple of the buffer_scale (3).

Gdk-Message: 15:18:29.683: Error 71 (Protocol error) dispatching to Wayland display.

I also get these...

Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: CompositorBridgeChild receives IPC close with reason=AbnormalShutdown (t=2Exiting due to channel error.
Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: CompositorBridgeChild receives IPC close with reason=AbnormalShutdown (t=29.786) Exiting due to channel error.
Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: CompositorBridgeChild receives IPC close with reason=AbnormalShutdown (t=1.9663) Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: CompositorBridgeChild receives IPC close with reason=AbnormalShutdown (t=32.4875) [GFX1-]: CompositorBridgeChild receives IPC close with reason=AbnormalShutdown

If the stack trace dump finishes, I'll upload that as well.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: crash
OS: Unspecified → Linux
Hardware: Unspecified → Desktop
See Also: → 1832158
Summary: [Wayland] Firefox crashes when dragging tabs → [Wayland] Gnome fractional scaling: Firefox crashes when dragging tabs: "cursor image size (64x64) not an integermultiple of scale (3)" + "Buffer size (340x228) must be an integer multiple of the buffer_scale (3)"
See Also: → 1834589

Redirect a needinfo that is pending on an inactive user to the triage owner.
:stransky, since the bug doesn't have a severity set, could you please set the severity or close the bug?

For more information, please visit BugBot documentation.

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

Apologies, I hadn't realised this was waiting for more information from me... I'm happy to help but I might need some guidance on what information you're looking for.

It's known bug in Gtk cursor handling. No further info needed now. Thanks.

Flags: needinfo?(stransky)

Do you have a reference to a bug report for the Gtk cursor handling issue?

I can confirm this bug, crash report from my reproduction if needed : https://crash-stats.mozilla.org/report/index/6a159373-7be0-4935-be89-2daaf0240923#tab-details

We may implement our own cursor handling to fix various Gtk3/Wayland cursor bugs.

Blocks: gtk4
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.