GNOME Bugzilla – Bug 679538
Test suite failing
Last modified: 2020-11-06 22:22:16 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
(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
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.