Open Bug 1783705 Opened 6 months ago Updated 23 hours ago

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)

Thunderbird 102
Unspecified
Linux

Tracking

(Not tracked)

People

(Reporter: mozilla, Unassigned, NeedInfo)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Attached video Example of the failure

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

Probably a toolkit/platform issue on Linux

Severity: -- → S2
Component: Untriaged → OS Integration
OS: Unspecified → Linux
Priority: -- → P3
Blocks: tb102found

Robert, can you try unchecking this pref: ≡ > Settings > General > [ ] Use hardware acceleration when available?

Flags: needinfo?(mozilla)
Summary: Context menu not shown if it would end outside the screen (crash on multiple attempts) → Context menu not shown if it would end outside the screen (on Linux, crash on multiple attempts)

@thomas8, this option is already dissabled.

Flags: needinfo?(mozilla)
Attached image scrolling context menu

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.

Summary: Context menu not shown if it would end outside the screen (on Linux, crash on multiple attempts) → Context menu not shown if it would end outside the screen (on Linux with sway window manager, crash on multiple attempts)

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.

(In reply to Wayne Mery (:wsmwk) from comment #6)

Bug 1793922 ?

Flags: needinfo?(mozilla)

Claudia,
Does Firefox still fail for you, without the workaround?

Flags: needinfo?(mozilla) → needinfo?(clauzilla)
You need to log in before you can comment on or make changes to this bug.