-
Notifications
You must be signed in to change notification settings - Fork 61
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
Segfault at startup under Plasma Wayland #500
Comments
@nicolamori I made a mention on #434, but was wondering if the snapshot provided by that PR worked for you? It purports to have been created for Qt 5.15.1 so it may have fixed your issue. I don't use Plasma all that much these days, but I'd like to see it working, because it should help with #500 ... there is an overabundance of Fedora packages that segfault already, if someone is using a an incompatible Window Manager+Compositor combo. |
@ladar the PR code partially works under a Wayland session of Plasma 5.25.2 with Qt 5.15.10. No segfault, but birdtray seems partially unable to detect Thunderbird running: it constantly displays a red cross over the tray icon but is able to restart Thunderbird when I close it. This happens both for native Wayland and for XWayland Thunderbird. |
@nicolamori This might be because that branch was a bit outdated and based on a version of Birdtray from November 2020. I think commit ff65c93 might address the issue your describing, but I'm not sure. I have rebased the branch on the latest version of Birdtray, let us know if anything changes if you try it again. |
@nicolamori juat to be clear, the HEAD revision crashes, but the PR code runs, it just doesn't detect Thunerbird? I can make a complete guess on that issue. If you install the
You'll get a list of running apps and their respective window titles. The Thunderbird window should end with If for some reason, that string is different, or it can't read the window names, then that would explain why it isn't detecting Thunderbird. Either because that info isn't available on your system because of how it's setup, or perhaps the window naming convention was tweaked for the Thunerbird version your using (either because its new or because of how it was built). This is all just a guess though. In your original post you mention version 5.15.2. Are you no longer using that version? I was noticed this issue, because RHEL 9 uses that version, and Fedora 36 is on 5.15.3 and I was worried there was a crashing bug. |
I built the rebased branch but I still get the same behavior. I also tried with wmctrl and this is what I get:
so it is consistent with the Birdtray settings. I also tried to set the suffix to one of another running window, to no avail. It is interesting to note that wmctrl seems to detect only XWayland windows, and does not display native Wayland ones (also Thunderbird when started in Wayland native mode). Anyway I tried both modes and Birdtray still displays the red cross. About the Qt version: I run Arch and Qt has been updated since I opened the issue. |
@nicolamori I have an idea. If you open up a terminal window, I'm guessing:
Will result in the behavior you described above. On ther other hand, if you run:
It might just work. I'm assuming your compositor is Wayland of course. P.S. If it doesn't work, chekc your environment variables and make sure |
@ladar I already have
and |
On Gnome, if I use |
No joy, I tried with |
I don't have Plasma installed on the notebook with me, and I don't like to use this one for dev/testing. I have a Fedora 36 dev machine at home. I can use that to test this out next week, when I should have more time. |
Ok, please let me know if there is anything else useful that I can do. And thanks for your efforts! |
Just an FYI, another user gave the HEAD commit a try using Fedora 36, and Plasma, and it segfaulted. I pointed him here, and tried to summarize. in case he has time to look into this before me. |
I should probably mention in both places. If you do play around with this more, you should probably run birdtray via the console. I also think there might environent variables you can tweak that will cause the QT libs to output more info/warnings. You can also try using |
It also just occurred to me. You should check the systemd journal. It might contain a clue as well. I think new versions of QT log messages there by default. See the |
@nicolamori this could be the default, but can you also try running it with
It worked for me that way, although gain that was with a Gnome desktop. You can also experiment with various QT platform plugins like so.
Substitute wayland with other plugins. Some possibilities are: |
@ladar I already have |
I tested this with Qt version 5.15.5 and it did not work. I also tried setting |
Basically the whole x11 stuff should not be used on Wayland. |
@gyunaev, could you please release 1.9.1 with this fix included? See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1024256#10 for context (Debian ships 1.9.0 which is unusable in wayland...) |
Having the same issue, but running birdtray 1.9.0 with
Side-Note: I did start thunderbird (without any QT_QPA_PLATFORM) before starting Birdtray though, maybe it will not work when birdtray starts thunderbird. |
OS: Archlinux
Linux Desktop Manager: KDE Plasma on Wayland
Birdtray version: 1.9.0
Thunderbird version: 91.6.1
Birdtray origin: Built from Archlinux's AUR
Qt version: 5.15.2+kde+r302-1 as shipped by official Archlinux repositories
Description
Starting Birdtray manually from console I just get a segfault:
Stack trace:
Expected behavior
Birdtray should at least start.
To Reproduce
2.Launch Birdtray manually
Additional context
AFAIK Birdtray it is not supported on Wayland (#426) but according to this comment it should work with limited functionality at least in other Wayland sessions like Gnome. So I guess the problem is related to the Plasma Wayland session.
The text was updated successfully, but these errors were encountered: