Bug#837081: netbeans: Crashes due to assertion failure in GLib

Mark Cave-Ayland mark.cave-ayland at ilande.co.uk
Mon Feb 19 08:14:13 UTC 2018


On 17/02/18 21:18, Samuel Thibault wrote:

> Hello,
> 
> Mark Cave-Ayland, on ven. 16 févr. 2018 17:18:52 +0000, wrote:
>> One other thing to note: if I launch netbeans from a terminal I see a
>> constant stream of messages like this appearing whilst I work:
>>
>>
>> (java:23186): GLib-GObject-CRITICAL **: g_object_unref: assertion
>> 'G_IS_OBJECT (object)' failed
>>
>> (java:23186): GLib-GObject-WARNING **: invalid uninstantiatable type
>> '(null)' in cast to 'AtkObject'
>>
>> (java:23186): GLib-GObject-WARNING **: instance of invalid
>> non-instantiatable type '(null)'
>>
>> (java:23186): GLib-GObject-CRITICAL **: g_signal_emit_by_name: assertion
>> 'G_TYPE_CHECK_INSTANCE (instance)' failed
>>
>> (java:23186): GLib-GObject-WARNING **: invalid uninstantiatable type
>> '(null)' in cast to 'GObject'
>>
>> (java:23186): GLib-GObject-WARNING **: invalid uninstantiatable type
>> '(null)' in cast to 'GObject'
>>
>> (java:23186): GLib-GObject-CRITICAL **: g_object_unref: assertion
>> 'G_IS_OBJECT (object)' failed
>>
>> (this is repeated several hundred times)
> 
> It would be useful to know what actions trigger these (since I've been
> unable to reproduce them, but I'm not a netbeans user)

Hi Samuel,

Let me try and explain a bit about my setup: it's an up-to-date Debian 
stretch amd64 installation with netbeans 8.2 downloaded from 
netbeans.org. I'm currently writing a spring boot application, and so I 
have installed the latest version of the gradle and git plugins.

My project consists of 3 projects: core, client and web. core and client 
are gradle JAR subprojects that have shared namespaces, e.g. core could 
contain org.foo.CoreObject whilst client may contain 
org.foo.ClientCoreObject. The web application is the root application, 
and depends upon both the core and client JARs.

Once the root web application has been loaded, I can trigger the bug 
quite easily by using the autocomplete in the IDE for one of my classes, 
e.g. typing

ClassName.   (wait for popup list of options, then hit CTRL-space)

And if I keep doing this a few times then I can cause the crash. I've 
also attached another trace from gdb by doing the following to catch the 
sources of the above errors emitted on the console:

break g_log if log_level == G_LOG_LEVEL_CRITICAL
break g_log if log_level == G_LOG_LEVEL_WARNING
handle SIGSEGV nostop noprint pass


ATB,

Mark.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openjdk-8-8u151-b12-1~deb9u1-netbeans-8.2-glib-warnings.txt.xz
Type: application/x-xz
Size: 1344 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20180219/4d6c0137/attachment.bin>


More information about the pkg-java-maintainers mailing list