Firefox cannot run with FireTray 0.5.6 enabled. It crashes on startup every time. I had to start Firefox in safe mode and disable FireTray to get Firefox to run at all.
This could relate to the other issue I created, namely that FireTray's system tray icons are not suitable for use in KDE Plasma 5 and simply do not appear. I had to use a third-party tray even to see the FireTray icon for Thunderbird. (Thunderbird does not crash with FireTray in place.)
The Fedora Project just released F22. Its new KDE spin jumped to Plasma 5 from KDE 4. That's why I am only now noticing this issue. But you will likely see a lot of reports on this as a lot of unhappy campers try to start Firefox in the new environment only to find they cannot.
Thx for reporting. I could reproduce the problem in a fresh F22 virtual machine.
The relevant part is:
(firefox:23724): GLib-GObject-WARNING **: cannot register existing type 'GdkDisplay'
(firefox:23724): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed
(firefox:23724): Gdk-CRITICAL **: IA__gdk_x11_display_get_xdisplay: assertion 'GDK_IS_DISPLAY (display)' failed
And the problem is gdk_display_get_default() is returning NULL. But I don't know why yet.
OK, so it wasn't my imagination. Nor my one machine, either. But I knew that: I saw this problem on two different machines, this after upgrading from F21 to F22.
As I said, FireTray 0.5.6 still runs with Thunderbird. And when I install "wmsystemtray," I get the same fully functioning system tray icon I'm used to seeing, that displays the number of unread messages. It's just that I have to see that in a tiny window off in a corner somewhere, and usually hidden, because I like to run Firefox and Thunderbird full-screen.
I believe a similar issue has just been reported on Debian: https://bugs.debian.org/787803
“Some investigating with GDB shows GTK3 symbols in the stack being mixed with the GTK2 which [Thunderbird/Firefox] use.”
Thank you @DavidPrevot and @gcp !! It looks like I should use libappindicator1 instead of libappindicator3. Wonder how it used to work previously... Will fix that ASAP.
Would that possibly solve the issue of FireTray's icons not playing nice with KDE's new Plasma 5 system tray?
Not exactly: we need another lib for that, or libappindicator to implement missing features.
Switching to libappindicator1 doesn't help much. You can check the indicator1 branch.
Obviously GTK3 libs are still loaded, even with FireTray disabled (as shown by lsof). This may be because of the GTK theme in KDE, if any. But I don't know how to change that.
After some digging, it appears Firefox 38.0 in Fedora22 is the GTK3 build, already. And since GTK2 and GTK3 cannot be loaded together, obviously FireTray needs to be ported to GTK3.
I'm updating the subject of this thread to reflect the real problem.
Intersting post about Firefox, GTK3 and plugins.
Thunderbird Earlybird (Aurora) 42.0a2 now also crashes when FireTray is loaded.
Gtk3 support added. See the 4d9816e and the gtk3 branch.
Nice. The gtk3 branch seems to be working well in Earlybird. Thanks for the great addon 👍
GTK3 version does not work on my system: No tray icon appears, and the Preferences dialog lacks the Mail and Chat tabs. A build from the master branch works flawlessly.
@inguin: do you have libappindicator-gtk3 installed? If not, try it.
Yes, it's installed. It wasn't installed when I first built the add-on, though, so there is a chance that something wasn't properly updated.
Found it: The Makefile must be updated to include the new directories ctypes/linux/gtk in modules_sources.
@inguin my bad! Fixed in 96c0862. Thank you.