Showing context menu makes the application freeze then crash (1.10.0 via snap on Kubuntu)

Description

Hello,

Whenever I right-click a folder, I’m getting an entirely grey context menu with no text, the application freeze entirely and after a couple of seconds the OS asks to force close Mailspring. I also get the same results, showing the help menu in the top bar. Other menus seem to be fine.

To Reproduce…

Steps to reproduce the behavior:

  1. Open mailspring
  2. Right click a folder
  3. That’s it

Expected Behavior

Not sure what exactly is supposed to be in the context menu, probably something along the lines of “Edit folder, delete folder, mark all read etc”. Anyway I should have something, and it shouldn’t crash my application.

Setup

  • OS and Version: Linux 5.16.4 with Kde neon (Kubuntu), plasma 5.24 and X.org Session
  • Installation Method: Snap
  • Mailspring Version: Can’t get the help menu to display the actual version, so need to trust snap on that one 1.10.0

Additional Context

Starting the app from a console, I get some warnings and errors. I pasted everything below.

Gtk-Message: 15:25:42.225: Failed to load module "colorreload-gtk-module"
Gtk-Message: 15:25:42.226: Failed to load module "window-decorations-gtk-module"
Running database migrations
App load time: 465ms

{"error":null}
[215013:0307/152542.335577:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
(node:214911) electron: The default of nativeWindowOpen is deprecated and will be changing from false to true in Electron 15.  See https://github.com/electron/electron/issues/28511 for more information.
(Use `mailspring --trace-warnings ...` to show where the warning was created)
(node:214911) electron: The default of nativeWindowOpen is deprecated and will be changing from false to true in Electron 15.  See https://github.com/electron/electron/issues/28511 for more information.
[214911:0307/152612.337530:ERROR:crash_handler_host_linux.cc(444)] Failed to write crash dump for pid 215013
Cannot upload crash dump: failed to open
[214911:0307/152612.345173:ERROR:gpu_process_host.cc(962)] GPU process exited unexpectedly: exit_code=512
[214911:0307/152612.346080:ERROR:command_buffer_proxy_impl.cc(328)] GPU state invalid after WaitForGetOffsetInRange.
Cannot upload crash dump: cannot exec /usr/bin/wget

Unexpected crash report id length
Failed to get crash dump id.
Report Id: 
[215520:0307/152612.447072:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.

I’m on a ThinkPad laptop, Ryzen 7 pro CPU, with no dedicated GPU.

Edit : Realised Mailsprint is using Electron, so the --disable-gpu should works, and indeed it does. And with that option, mailspring works like a charm.