After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 679538 - Test suite failing
Test suite failing
Status: RESOLVED OBSOLETE
Product: java-gnome
Classification: Bindings
Component: GTK
mainline
Other Linux
: Normal blocker
: ---
Assigned To: Andrew Cowie
java-gnome bindings maintainers
Depends on: 679537
Blocks:
 
 
Reported: 2012-07-07 05:11 UTC by Andrew Cowie
Modified: 2020-11-06 22:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andrew Cowie 2012-07-07 05:11:23 UTC
Getting a crash when trying to run `make test`:

org.gnome.gtk.ValidateEntry
 - testEntryIcon()                                                    error     

Encoutered an error at ValidateEntry.java:43
The following exception was thrown:

   org.gnome.glib.FatalError: GLib-GObject-CRITICAL
g_object_unref: assertion `G_IS_OBJECT (object)' failed



org.gnome.glib.FatalError: GLib-GObject-CRITICAL
g_object_unref: assertion `G_IS_OBJECT (object)' failed
	at org.gnome.gtk.GtkEntry.gtk_entry_get_icon_pixbuf(Native Method)
	at org.gnome.gtk.GtkEntry.getIconPixbuf(GtkEntry.java:832)
	at org.gnome.gtk.Entry.getIconPixbuf(Entry.java:523)
	at org.gnome.gtk.ValidateEntry.testEntryIcon(ValidateEntry.java:43)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

I put a g_error() in there and used it to get a backtrace with gdb. I've filed that as bug #679537

AfC
Comment 1 Andrew Cowie 2012-07-07 05:13:56 UTC
(the assumption being that our test case is a valid sequence of setters and getters to check. The test code is as follows):


    public final void testEntryIcon() {
        final Entry entry;

        entry = new Entry();

        entry.setIconFromStock(EntryIconPosition.PRIMARY, Stock.FIND);
        assertSame(Stock.FIND, entry.getIconStock(EntryIconPosition.PRIMARY));
        assertSame(ImageType.STOCK, entry.getIconStorageType(EntryIconPosition.PRIMARY));

        entry.setIconFromStock(EntryIconPosition.SECONDARY, Stock.CLEAR);
        assertSame(Stock.CLEAR, entry.getIconStock(EntryIconPosition.SECONDARY));
        assertSame(ImageType.STOCK, entry.getIconStorageType(EntryIconPosition.SECONDARY));

        entry.setIconFromPixbuf(EntryIconPosition.PRIMARY, null);
        assertSame(null, entry.getIconPixbuf(EntryIconPosition.PRIMARY));
        assertSame(ImageType.EMPTY, entry.getIconStorageType(EntryIconPosition.PRIMARY));
    }

and is crashing on the second last line. Doesn't seem anything exceptional about that?

AfC
Comment 2 André Klapper 2020-11-06 22:22:16 UTC
bugzilla.gnome.org is being replaced. We are closing all old bug reports in Bugzilla which have not seen updates for many years.

If you can still reproduce this issue in a recent version of java-gnome, then please feel free to report it at https://github.com/istathar/java-gnome/issues

Thank you for reporting this issue and we are sorry it could not be fixed.