-
Notifications
You must be signed in to change notification settings - Fork 22
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
Segmentation fault/crash when using system tray notification under Gnome/Wayland #266
Comments
Likely related to the system tray and Gnome, see:
#235 (comment)
|
Thanks, I disabled the tray icon and restarted to see. Let's see if this solves the issue or not, I'll report back soon. |
Are you using Gnome and/or Wayland? |
Then you're in trouble. |
No more sudden quits when no tray icon is enabled, so this is the reason for this issue. Thanks |
Yes, it's Gnome/Wayland bug, or at least triggered by this combination,
I'm not even sure whether Wayland is officially supported by the Mozilla
platform.
We'd like to fix it, but someone would have to debug it to see where it
crashes.
|
I've closed issue #235 and we continue here. Is there anyone who can run a debug version and get a stack of the crash. @mfschumann, have you seen this issue? For debugging you can install the eu.betterbird.Betterbird.Debug flatpak and then follow this guide to run Betterbird under gdb: https://blogs.gnome.org/mclasen/2017/01/20/debugging-a-flatpak-application/ |
Yes, I had random crashes too. It was not too frequent, so I never gave much thought to it. I'll try to get a stack trace of such a crash. |
When resuming from suspend, previously running BB was gone. This is what
Is this enough for starting to debug or do you have any suggestions to get more verbose info? |
This is what
I also tried to save a stack trace as described here but the |
Thanks for trying, but this doesn't look like anywhere near the BB's code. You can see that BB code includes libayatana-appindicator in this patch: The library does the "magic" via DBUS calls, for example, search for It doesn't do any pipes or forks. If I see this correctly, it crashes in If it crashed again, please type |
I got another crash with a more helpful trace from #6 0x00007ffff0dc440c in app_indicator_set_tooltip_full (self=0x7fffc8f55920, icon_name=0x0, title=0x7fffb12a0408 "1 ungelesene Nachricht\nPosteingang: 1", body=0x0) at /run/build/betterbird/comm/third_party/appindicator/app-indicator.c:2406
#7 0x00007ffff0b62bdb in nsMessengerUnixIntegration::UpdateUnreadCount(unsigned int, nsTSubstring<char16_t> const&) (this=<optimized out>, unreadCount=1, unreadTooltip=<optimized out>) at /run/build/betterbird/comm/mailnews/base/src/nsMessengerUnixIntegration.cpp:258 Full output of Output of |
Thanks @mfschumann! The full trace is not required. The normal trace has the relevant information:
So we come to update the tooltip since new mail has arrived:
That calls If you have more crashes, can you please provide more back traces (only the last few lines) to confirm that it always crashes the same way. |
I got some more traces from recent crashes: trace.txt They all seem to take the same path, which is however slightly different from the one posted above. Here, after calling
|
Thanks, that's very helpful, we'll check what's happening in the code. Weird that it only crashes sometimes and only on Wayland. You do get some working tooltips when hovering the icon in the system tray normally without a crash, right? |
No, tooltips don't work in Gnome because libappindicator does not support them. |
It's the wrong way around. libappindicator doesn't support tooltips, but in BB we merged a PR so it does. How else would they be working in KDE and Xfce. The "AppIndicator and KStatusNotifierItem Support" extension doesn't support them, as per the link you quoted: "GNOME designers decided not to have tooltips in the shell and I'd like to honor that decision." So in effect, we're crashing the system for something that doesn't work in the first place. We can fix that: If on Gnome, don't even try to set a tooltip. Case closed. |
Commit cf7c513 should fix this issue. @mfschumann, if you have time, you can build a FlatPak for your own use to see whether the crashes are gone. The fix is trivial, just no setting of tooltips under Gnome. |
Thanks. I built a flatpak based on the commit and have tested for a day, including a couple of suspend/resume cycles. I have not had any crashes so far, so I think this issue can be closed. |
Thanks for building/testing. We'll close it when we ship the fix so other people may find it in the meantime. |
Should be fixed in 115.8.0-bb24. |
No issue since yesterday, not even after sleep on Gnome/Wayland :) Thanks! |
Sorry it took so long to fix. We had Issue #235 on file since December 2023, but without someone debugging it, we couldn't action it. Special thanks for @mfschumann for getting us the required crash stack dumps. |
Hi,
I've copied my thunderbird profile to a new place and using Betterbird with it.
It is much faster and no hangups like in TB, but from time-to-time I'm experiencing sudden quits.
I tried to run it from a console, so far this is what I can see:
Is there any other method to have more detailed debug output or log to find out what should be the issue here?
Version used: Betterbird 115.7.0-bb23
I use it with Owl for Exchange extension
OS: Debian 12.4
Linux *** 6.1.0-17-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.69-1 (2023-12-30) x86_64 GNU/Linux
The package I'm using is not built, but downloaded and extracted from linux archive:
https://www.betterbird.eu/downloads/get.php?os=linux&lang=en-US&version=release
Usually the issue comes after a few hours randomly and without any warning it just quits.
Thanks for the help in advance,
Dutch
The text was updated successfully, but these errors were encountered: