Skip to content

2.1: [BUG] Not working with both GTK3 and JavaFX #14

Closed

Description

After adding support for GTK3, I have same bug on startup as when using SWT:

(java:2033): GLib-GObject-WARNING **: cannot register existing type 'GdkDisplayManager'

(java:2033): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(java:2033): GLib-GObject-CRITICAL **: g_object_new: assertion 'G_TYPE_IS_OBJECT (object_type)' failed

I don't know I you can fix this, so please add option for disabling support for GTK3.

Activity

  1. dorkbox commented on Feb 13, 2016

    @dorkbox
    Owner

    Hm, I have some ideas on how to do that.

  2. dorkbox commented on Feb 13, 2016

    @dorkbox
    Owner

    For forcing the version of GTK to try. What happens if you set GtkSupport.CREATE_EVENT_LOOP = false ?

  3. dorkbox commented on Feb 13, 2016

    @dorkbox
    Owner

    Hm. SWT likely already loads GTK2 - Let me think about detecting if GTK2 is already loaded

  4. dorkbox commented on Feb 13, 2016

    @dorkbox
    Owner

    So you're getting this error on Linux? (ubuntu 15.10?)

  5. dorkbox commented on Feb 13, 2016

    @dorkbox
    Owner

    Is it loading the AppIndicator library?

  6. dorkbox commented on Feb 13, 2016

    @dorkbox
    Owner

    Ahh, it's a JavaFX thing?

  7. 35 remaining items

  8. dorkbox commented on Aug 14, 2016

    @dorkbox
    Owner

    Awesome!! :(

    I'll look into it. Sadly, not right away as I'm in the middle of an executable launcher (replacement for java.exe) and context switching is expensive.

  9. dorkbox commented on Aug 14, 2016

    @dorkbox
    Owner

    Good idea.

  10. dorkbox commented on Aug 14, 2016

    @dorkbox
    Owner

    I should probably list a compatibility matrix that this has been tested on.

  11. dorkbox commented on Sep 7, 2016

    @dorkbox
    Owner

    Just ran some tests in a VM -- it looks like the "normal" (non javaFX) version is working, and I verified that the javaFX version is not.

  12. dorkbox commented on Sep 21, 2016

    @dorkbox
    Owner

    Got it working in Gnome 3.20+ (but not if gnome-shell is installed on-top of Unity... that just doesn't work at all, but UbuntuGnome works just fine).

  13. dorkbox commented on Sep 21, 2016

    @dorkbox
    Owner

    Still problems with JavaFX (GTK2) on Ubuntu 16.04 (GTK3) -- working those kinks out...

  14. dorkbox commented on Sep 22, 2016

    @dorkbox
    Owner

    So it looks like GTK2 on Ubuntu 16.04 is broken in some weird way. GTK2 on xubuntu 16.04 works just fine, GTK3 on Ubuntu/Xubunutu 16.04 works fine -- just GTK2 has issues. This would be why javaFX doesn't work correctly (it uses GTK2).

    Edit: Cannonical removed the "application status" indicator panel, so the fallback GtkStatusIcon does not work. Since JavaFX only works with GTK2 (Java9 provides GTK3 bindings), and Cannonical removed GTK2 AppIndicator support, libappindicator1 is the only solution for JavaFX compatibility for Java < 9.

  15. dorkbox commented on Sep 23, 2016

    @dorkbox
    Owner

    Master branch has the latest -- i haven't pushed a build yet, but I think it's ready, and it will likely be tomorrow that I push the build.

  16. dorkbox commented on Sep 25, 2016

    @dorkbox
    Owner

    There were some scaling issues with the tray/menu icons. Those issues are getting fixed, and it shouldn't be much longer before I'll have something for testing (it will be downloadable "all-in-one-jars" from my server). If those pass, then I'll push a release.

  17. dorkbox commented on Sep 26, 2016

    @dorkbox
    Owner

    3.0 beta is released as a "all-in-one" jar, for a variety of different tray types and configurations. I'm starting a new issue to track the progress for this. I definitely will need help testing in different Linux/Mac/Windows configurations (ie: I have no idea if this works in Windows 10, or the latest MacOsX)

    I'm closing this issue and tracking everything in a new one. Please use Issue #22 for all related feedback, problems, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions