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, NeedInfo)
References
(Blocks 1 open bug)
Details
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•6 months ago
|
||
Probably a toolkit/platform issue on Linux
Updated•6 months ago
|
Comment 2•6 months ago
|
||
Robert, can you try unchecking this pref: ≡ > Settings > General > [ ] Use hardware acceleration when available
?
Updated•6 months ago
|
Reporter | ||
Comment 3•6 months ago
|
||
@thomas8, this option is already dissabled.
Comment 4•6 months 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•6 months ago
|
Comment 5•4 months 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•3 months ago
|
||
Comment 7•2 months ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #6)
Comment 8•23 hours ago
|
||
Claudia,
Does Firefox still fail for you, without the workaround?
Description
•