tutao / tutanota

Tuta is an email service with a strong focus on security and privacy that lets you encrypt emails, contacts and calendar entries on all your devices.
https://tuta.com
GNU General Public License v3.0
6.11k stars 526 forks source link

"Something unexpected went wrong" when running in Wayland native #7765

Open vaxerski opened 1 month ago

vaxerski commented 1 month ago

Describe the bug When launching tutanota in native wayland (tutanota-desktop --enable-features=UseOzonePlatform --ozone-platform=wayland) after some time (a few minutes) tutanota pops up this message: 20241018_14h57m02s

The process goes to 100% CPU and the app hangs. Can't click anything, even that popup.

To Reproduce Steps to reproduce the behavior:

  1. Get tutanota
  2. Run in native wayland
  3. Wait
  4. Tutanota does an oops

Expected behavior Should just work

Screenshots 20241018_14h57m02s

Desktop (please complete the following information):

Additional context Problem does not happen when tuta is in XWayland, but I'd prefer avoiding XWayland where I can.

If there's anything else needed, or further debugging steps I can take, please do let me know

Edit I've launched tutanota in xwayland now and got the same thing after a while... I think something broke completely..

charlag commented 1 month ago

Hi, thanks for the report!

There things could help us to analyze the issue:

vaxerski commented 1 month ago

I've tried the appimage before and it seems to work fine (the dialog is quite inconsistent in timing). I'll do more testing.

Terminal output is empty.

I'll try to catch it sooner next time as for the first few seconds it seems it's just extremely laggy but not hung?

vaxerski commented 1 month ago

Okay, I tried to login on my laptop and it popped up the thing. I clicked send and nothing else happened. App became laggy.

However, I think I have narrowed it down from limited testing:

./tutanota-desktop-linux.AppImage --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime

works fine

./tutanota-desktop-linux.AppImage --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime & disown

then I close the terminal (so it's not annoying) and it breaks shortly after.