Context menu not shown if it would end outside the screen (on Linux with sway window manager, crash on multiple attempts)
Categories
(Thunderbird :: OS Integration, defect, P3)
Tracking
(Not tracked)
People
(Reporter: mozilla, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: crash, Whiteboard: [closeme 2024-04-10])
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:103.0) Gecko/20100101 Firefox/103.0
Steps to reproduce:
Right-click on the lowest mail in the mailbox under Wayland. In particular sway 1.7 (tested with and without multiple screens attached).
Actual results:
No context menu is shown. (see attached video)
On repeated attempts, thunderbird crashes with:
[GFX1-]: Invalid mBounds in PopupCallback Rect(x=481, y=444, w=261, h=18529) size state 0
(thunderbird:226546): Gdk-CRITICAL **: 18:59:56.465: ../gdk/wayland/gdkdisplay-wayland.c:1399: Unable to create Cairo image surface: invalid value (typically too big) for the size of the input (surface, pattern, etc.)
ExceptionHandler::GenerateDump cloned child 227003
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal...
Expected results:
A context menu should have been shown
Comment 1•3 years ago
|
||
Probably a toolkit/platform issue on Linux
Updated•3 years ago
|
Comment 2•3 years ago
|
||
Robert, can you try unchecking this pref: ≡ > Settings > General > [ ] Use hardware acceleration when available
?
Updated•3 years ago
|
Reporter | ||
Comment 3•3 years ago
|
||
@thomas8, this option is already dissabled.
Comment 4•3 years ago
|
||
Might just be an issue with the sway window manager. I can't reproduce with GNOME 42 using the default Wayland manager on Daily.
On my system if I click an item closer to the bottom but with a bit of space I get a scrolling context menu (see the attached image). Maybe this is the point at which it is struggling.
Updated•3 years ago
|
Comment 5•2 years ago
|
||
Same issue here. The crash also happens when I try to open a drop-down list if it’s taller than the screen, e.g. the list of fonts.
Steps to reproduce:
- Open Settings.
- In the Language & Appearance » Fonts & Colors section, click the drop-down list labeled Default font.
I’m on Thunderbird 102.3.2, Sway 1.7, wlroots 0.15.1.
Log excerpt:
Crash Annotation GraphicsCriticalError: |[0][GFX1-]: Invalid mBounds in PopupCallback Rect(x=898, y=-98, w=584, h=30968) size state 0 (t=29.377) [GFX1-]: Invalid mBounds in PopupCallback Rect(x=898, y=-98, w=584, h=30968) size state 0
(thunderbird:1436027): Gdk-CRITICAL **: 18:09:08.226: ../gtk/gdk/wayland/gdkdisplay-wayland.c:1399: Unable to create Cairo image surface: invalid value (typically too big) for the size of the input (surface, pattern, etc.)
Note the absurdly large popup height (h=30968) requested.
By the way, I’ve had the same issue in Firefox. See https://bugzilla.mozilla.org/show_bug.cgi?id=1780508, which also offers a workaround: setting widget.wayland.use-move-to-rect
to false
.
I’ve found that the same configuration key also exists in Thunderbird. But setting it to false
in Thunderbird doesn’t do anything for me. Particularly, clicking the font list (which is, presumably, still taller than the whole screen) still causes Thunderbird to crash.
Comment 6•2 years ago
|
||
Comment 8•2 years ago
|
||
Claudia,
Does Firefox still fail for you, without the workaround?
Comment 9•2 years ago
|
||
Hi Wayne, turns out that as of version 110.0b6, Firefox no longer fails for me.
See my latest comment in Bug 1780508 for details.
Comment 10•1 year ago
|
||
Robert do you still crash?
Reporter | ||
Comment 11•1 year ago
|
||
The popup now seems to nicely render 😀 and it no longer crashes
Comment 12•1 year ago
|
||
We use worksforme when no known patch resolved the issue.
Reporter | ||
Comment 13•1 year ago
|
||
Thanks Magnus Melin [:mkmelin]
Description
•