Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clicking deltachat icon in swaybar's system tray offers inconsistent behavior (and can crash app) #3989

Open
dkg opened this issue Jun 29, 2024 · 6 comments
Labels
bug Something isn't working OS: Linux (AppImage) OS: Linux(deb) Related to the Debian package OS: Linux (flatpak) wayland

Comments

@dkg
Copy link

dkg commented Jun 29, 2024

  • OS: Debian stable (12.5) amd64
  • Deltachat-desktop version: 1.46.1

I'm running deltachat-desktop under sway, with no Xwayland or X11 support on the system at all. I've launched deltachat by using electron's (chromium's) ozone backend for wayland:

deltachat-desktop --ozone-platform=wayland

When delta first starts up, it is only rendered as an icon in the system tray section of swaybar. If i click that icon, the full deltachat interface appears.

If i click it again, the deltachat interface disappears.

But if i click it a third time, deltachat closes entirely (the app appears to crash), emitting the following message to stdout or stderr:

[3179:0628/212044.664566:FATAL:wayland_toplevel_window.cc(1123)] Should not be called with kMinimized state
Trace/breakpoint trap

When the app is running but minimized, right-clicking the icon in the system tray creates a menu with three items:

  • Open DeltaChat
  • Minimize
  • Quit

if i choose "Open DeltaChat", that also causes the crash described above. "Quit" appears to close the app cleanly.

Note that the menu doesn't interact well with sway -- it wants to consume the entire screen, and it doesn't share the screen at all well with the main app itself.

I'm happy to test or diagnose things if that would be useful.

@farooqkz
Copy link
Collaborator

farooqkz commented Jul 1, 2024

As a workaround for this issue, use DeltaChat with Xwayland. I've been using it for sometime and it's fine.

@farooqkz farooqkz added bug Something isn't working OS: Linux (flatpak) OS: Linux(deb) Related to the Debian package OS: Linux (AppImage) labels Jul 1, 2024
@hpk42
Copy link
Contributor

hpk42 commented Jul 1, 2024 via email

@farooqkz
Copy link
Collaborator

farooqkz commented Jul 2, 2024

@Simon-Laux There are other reports which specificly target wayland on my side. Any on your side?

@farooqkz
Copy link
Collaborator

farooqkz commented Jul 2, 2024

Well, dkg was describing a system setup that explicitely not uses wayland so recommending to use wayland does not help much i am afraid.

On Mon, Jul 01, 2024 at 05:23 -0700, Farooq Karimi Zadeh wrote: As a workaround for this issue, use DeltaChat with Xwayland. I've been using it for sometime and it's fine. -- Reply to this email directly or view it on GitHub: #3989 (comment) You are receiving this because you are subscribed to this thread. Message ID: @.***>

The issue is with wayland. @dkg is already using sway which indicates he is using wayland as well. The problem's with native wayland support on Electron probably. What I suggested is a temporary workaround, using xwayland, till Electron is fixed or we fix it somehow.

@farooqkz
Copy link
Collaborator

farooqkz commented Jul 2, 2024

BTW the user mentioning problems on wayland is @behdanisohrab. mentioning him with the hope to get more feedback on wayland related issues.

@behdanisohrab
Copy link

BTW the user mentioning problems on wayland is @behdanisohrab. mentioning him with the hope to get more feedback on wayland related issues.

Most of the wayland issues on electron application is caused by chromium engine inside of it.

easiest way for enabling wayland support is by adding

--enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform-hint=auto

to the desktop file or in front of appimage file.

i would provide more information for this problem later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working OS: Linux (AppImage) OS: Linux(deb) Related to the Debian package OS: Linux (flatpak) wayland
Projects
None yet
Development

No branches or pull requests

4 participants