This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 268644 - Netbeans crashed during editing
Summary: Netbeans crashed during editing
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Launchers&CLI (show other bugs)
Version: 8.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-23 07:42 UTC by bastian_fenske
Modified: 2018-04-15 15:39 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log (859.91 KB, text/plain)
2017-02-08 12:38 UTC, premek.v
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bastian_fenske 2016-10-23 07:42:57 UTC
Netbeans crashes very often during coding. This happens every hour or so. It happens always while I'm writing code into the editor, but I couldn't figure out more specific reasons. It also seems not to be reproducible with entering the same code after restarting netbeans.

I found a similar bug report here, related to 8.1. I'm also using Debian stretch:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=837081

Here is the output, when I start netbeans from the terminal:

GLib:ERROR:/build/glib2.0-94amRy/glib2.0-2.50.1/./glib/ghash.c:373:g_hash_table_lookup_node: assertion failed: (hash_table->ref_count > 0)
/home/bastian/.bin/netbeans-8.2/platform/lib/nbexec: line 470:  2528 Aborted                 "/usr/bin/java" -Djdk.home="/usr" -classpath "/home/bastian/.bin/netbeans-8.2/platform/lib/boot.jar:/home/bastian/.bin/netbeans-8.2/platform/lib/org-openide-modules.jar:/home/bastian/.bin/netbeans-8.2/platform/lib/org-openide-util.jar:/home/bastian/.bin/netbeans-8.2/platform/lib/org-openide-util-lookup.jar:/home/bastian/.bin/netbeans-8.2/platform/lib/org-openide-util-ui.jar:/home/bastian/.bin/netbeans-8.2/platform/lib/locale/boot_ja.jar:/home/bastian/.bin/netbeans-8.2/platform/lib/locale/boot_pt_BR.jar:/home/bastian/.bin/netbeans-8.2/platform/lib/locale/boot_ru.jar:/home/bastian/.bin/netbeans-8.2/platform/lib/locale/boot_zh_CN.jar:/home/bastian/.bin/netbeans-8.2/platform/lib/locale/org-openide-modules_ja.jar:/home/bastian/.bin/netbeans-8.2/platform/lib/locale/org-openide-modules_pt_BR.jar:/home/bastian/.bin/netbeans-8.2/platform/lib/locale/org-openide-modules_ru.jar:/home/bastian/.bin/netbeans-8.2/platform/lib/locale/org-openide-modules_zh_CN.jar:/home/bastian/.bin/netbeans-8.2/platform/lib/locale/org-openide-util_ja.jar:/home/bastian/.bin/netbeans-8.2/platform/lib/locale/org-openide-util-lookup_ja.jar:/home/bastian/.bin/netbeans-8.2/platform/lib/locale/org-openide-util-lookup_pt_BR.jar:/home/bastian/.bin/netbeans-8.2/platform/lib/locale/org-openide-util-lookup_ru.jar:/home/bastian/.bin/netbeans-8.2/platform/lib/locale/org-openide-util-lookup_zh_CN.jar:/home/bastian/.bin/netbeans-8.2/platform/lib/locale/org-openide-util_pt_BR.jar:/home/bastian/.bin/netbeans-8.2/platform/lib/locale/org-openide-util_ru.jar:/home/bastian/.bin/netbeans-8.2/platform/lib/locale/org-openide-util-ui_ja.jar:/home/bastian/.bin/netbeans-8.2/platform/lib/locale/org-openide-util-ui_pt_BR.jar:/home/bastian/.bin/netbeans-8.2/platform/lib/locale/org-openide-util-ui_ru.jar:/home/bastian/.bin/netbeans-8.2/platform/lib/locale/org-openide-util-ui_zh_CN.jar:/home/bastian/.bin/netbeans-8.2/platform/lib/locale/org-openide-util_zh_CN.jar" -Dnetbeans.default_userdir_root="/home/bastian/.netbeans" -Dnetbeans.dirs="/home/bastian/.bin/netbeans-8.2/nb:/home/bastian/.bin/netbeans-8.2/ergonomics:/home/bastian/.bin/netbeans-8.2/ide:/home/bastian/.bin/netbeans-8.2/extide:/home/bastian/.bin/netbeans-8.2/java:/home/bastian/.bin/netbeans-8.2/apisupport:/home/bastian/.bin/netbeans-8.2/webcommon:/home/bastian/.bin/netbeans-8.2/websvccommon:/home/bastian/.bin/netbeans-8.2/enterprise:/home/bastian/.bin/netbeans-8.2/mobility:/home/bastian/.bin/netbeans-8.2/profiler:/home/bastian/.bin/netbeans-8.2/python:/home/bastian/.bin/netbeans-8.2/php:/home/bastian/.bin/netbeans-8.2/identity:/home/bastian/.bin/netbeans-8.2/harness:/home/bastian/.bin/netbeans-8.2/cnd:/home/bastian/.bin/netbeans-8.2/cndext:/home/bastian/.bin/netbeans-8.2/dlight:/home/bastian/.bin/netbeans-8.2/groovy:/home/bastian/.bin/netbeans-8.2/extra:/home/bastian/.bin/netbeans-8.2/javacard:/home/bastian/.bin/netbeans-8.2/javafx:" -Dnetbeans.home="/home/bastian/.bin/netbeans-8.2/platform" '-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade' '-Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense' '-Xmx1024m' '-client' '-Xss2m' '-Xms32m' '-Dapple.laf.useScreenMenuBar=true' '-Dapple.awt.graphics.UseQuartz=true' '-Dsun.java2d.noddraw=true' '-Dsun.java2d.dpiaware=true' '-Dsun.zip.disableMemoryMapping=true' -DaddExports:java.desktop/sun.awt=ALL-UNNAMED -DaddExports:java.base/jdk.internal.jrtfs=ALL-UNNAMED -DaddExports:java.desktop/java.awt.peer=ALL-UNNAMED -DaddExports:java.desktop/com.sun.beans.editors=ALL-UNNAMED -DaddExports:java.desktop/sun.awt.im=ALL-UNNAMED -DaddExports:java.desktop/com.sun.java.swing.plaf.gtk=ALL-UNNAMED -DaddExports:java.management/sun.management=ALL-UNNAMED -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="/home/bastian/.netbeans/8.2/var/log/heapdump.hprof" org.netbeans.Main --cachedir "/home/bastian/.cache/netbeans/8.2" --userdir "/home/bastian/.netbeans/8.2" "--branding" "nb" 0<&0 

Please let me know if I can provide more information or help to fix this in another way.
Comment 1 bastian_fenske 2016-10-23 07:46:49 UTC
I'm editing PHP code. Installed Plugins are: HTML5, Tools, PHP, Service Registry and Base IDE.
Comment 2 Jiri Kovalsky 2016-10-24 10:07:26 UTC
Can you please find Java crash log and attach it here? The file is typically in your Home or NetBeans home directory and it's name is hs_err_pidXX.log. Thanks!
Comment 3 bastian_fenske 2016-10-24 10:28:32 UTC
"find / -name hs_err_*" as root returns nothing. ~/.netbeans and ~/.java does not contain any such log file. /var/log doesn't contain a directory for netbeans or java.

Any ideas, where to find it?

OS is debian stretch, netbeans is installed with the netbeans installer (not dpkg).
openjdk version "1.8.0_102"
OpenJDK Runtime Environment (build 1.8.0_102-8u102-b14.1-2-b14)
OpenJDK 64-Bit Server VM (build 25.102-b14, mixed mode)

I don't know how to figure out whether there is an -XX:ErrorFile specified somewere or not.

I started to write down, what actions made the error appear:

- Typing "re" for the PHP function "realpath"
- Typing "new \Refle" (for "ReflectionClass", the box, that suggest several types during typing has already been open) 
- Typing a variable name
- Typing a variable name
- Moving the cursor left (not sure, maybe the crash happens during typing)
- Typing "if (!file_exi"
- Typing "file_exi"
- Typing "else if"
Comment 4 Jiri Kovalsky 2016-10-24 10:56:24 UTC
Can you please reproduce it with http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html ?
Comment 5 premek.v 2017-01-25 14:52:23 UTC
This is happening to me too on Debian

GLib:ERROR:/build/glib2.0-m2w47E/glib2.0-2.50.2/./glib/ghash.c:373:g_hash_table_lookup_node: assertion failed: (hash_table->ref_count > 0)
/home/.../netbeans-8.2/platform/lib/nbexec: line 470: 11986 Aborted          

Also see the Debian bug at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=837081

Let me know if I can provide more info. It's happening quite often. Looks like it may be related to autocomplete popup?
Comment 6 premek.v 2017-01-25 14:53:09 UTC
$ java -version
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-3-b14)
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
Comment 7 premek.v 2017-02-06 14:19:31 UTC
It seems to be OK with Sun Java:

java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

Workaround: 
- download sun java http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
- run with: /path/to/netbeans-8.2/bin/netbeans --jdkhome /path/to/jdk1.8.0_121
Comment 8 premek.v 2017-02-08 12:38:30 UTC
Created attachment 163596 [details]
log

Logs attached from another re-ocurrence of the bug
Comment 9 jmtorres 2017-02-21 17:34:37 UTC
commenting in /etc/java-8-openjdk/accessibility.properties the next line seems to work at least in debian:

#assistive_technologies=org.GNOME.Accessibility.AtkWrapper

I figured it out cause I have a computer with netbeans working properly without any problem with that settings due to a time ago bug that preventing netbeans to start and another with a fresh debian installation, in the last one, netbeans closed sundenly when editing in php. Changing that in the new one seems to work and I have no unexpected close of netbeans.
Comment 10 caiofior 2017-05-10 13:41:11 UTC
It happens to me too using Netbeans 8.2 with Ubuntu 17.04  while editing a php project.

GLib:ERROR:../../../../glib/ghash.c:373:g_hash_table_lookup_node: assertion failed: (hash_table->ref_count > 0)
/home/caiofior/netbeans-8.2/platform/lib/nbexec: riga 470:  4898 Annullato               (core dump creato) "/usr/bin/java" -Djdk.home="/usr" -classpath "/home/caiofior/netbeans-8.2/platform/lib/boot.jar:/home/caiofior/netbeans-8.2/platform/lib/org-openide-modules.jar:/home/caiofior/netbeans-8.2/platform/lib/org-openide-util.jar:/home/caiofior/netbeans-8.2/platform/lib/org-openide-util-lookup.jar:/home/caiofior/netbeans-8.2/platform/lib/org-openide-util-ui.jar:/home/caiofior/netbeans-8.2/platform/lib/locale/boot_ja.jar:/home/caiofior/netbeans-8.2/platform/lib/locale/boot_pt_BR.jar:/home/caiofior/netbeans-8.2/platform/lib/locale/boot_ru.jar:/home/caiofior/netbeans-8.2/platform/lib/locale/boot_zh_CN.jar:/home/caiofior/netbeans-8.2/platform/lib/locale/org-openide-modules_ja.jar:/home/caiofior/netbeans-8.2/platform/lib/locale/org-openide-modules_pt_BR.jar:/home/caiofior/netbeans-8.2/platform/lib/locale/org-openide-modules_ru.jar:/home/caiofior/netbeans-8.2/platform/lib/locale/org-openide-modules_zh_CN.jar:/home/caiofior/netbeans-8.2/platform/lib/locale/org-openide-util_ja.jar:/home/caiofior/netbeans-8.2/platform/lib/locale/org-openide-util-lookup_ja.jar:/home/caiofior/netbeans-8.2/platform/lib/locale/org-openide-util-lookup_pt_BR.jar:/home/caiofior/netbeans-8.2/platform/lib/locale/org-openide-util-lookup_ru.jar:/home/caiofior/netbeans-8.2/platform/lib/locale/org-openide-util-lookup_zh_CN.jar:/home/caiofior/netbeans-8.2/platform/lib/locale/org-openide-util_pt_BR.jar:/home/caiofior/netbeans-8.2/platform/lib/locale/org-openide-util_ru.jar:/home/caiofior/netbeans-8.2/platform/lib/locale/org-openide-util-ui_ja.jar:/home/caiofior/netbeans-8.2/platform/lib/locale/org-openide-util-ui_pt_BR.jar:/home/caiofior/netbeans-8.2/platform/lib/locale/org-openide-util-ui_ru.jar:/home/caiofior/netbeans-8.2/platform/lib/locale/org-openide-util-ui_zh_CN.jar:/home/caiofior/netbeans-8.2/platform/lib/locale/org-openide-util_zh_CN.jar" -Dnetbeans.default_userdir_root="/home/caiofior/.netbeans" -Dnetbeans.dirs="/home/caiofior/netbeans-8.2/nb:/home/caiofior/netbeans-8.2/ergonomics:/home/caiofior/netbeans-8.2/ide:/home/caiofior/netbeans-8.2/extide:/home/caiofior/netbeans-8.2/java:/home/caiofior/netbeans-8.2/apisupport:/home/caiofior/netbeans-8.2/webcommon:/home/caiofior/netbeans-8.2/websvccommon:/home/caiofior/netbeans-8.2/enterprise:/home/caiofior/netbeans-8.2/mobility:/home/caiofior/netbeans-8.2/profiler:/home/caiofior/netbeans-8.2/python:/home/caiofior/netbeans-8.2/php:/home/caiofior/netbeans-8.2/identity:/home/caiofior/netbeans-8.2/harness:/home/caiofior/netbeans-8.2/cnd:/home/caiofior/netbeans-8.2/cndext:/home/caiofior/netbeans-8.2/dlight:/home/caiofior/netbeans-8.2/groovy:/home/caiofior/netbeans-8.2/extra:/home/caiofior/netbeans-8.2/javacard:/home/caiofior/netbeans-8.2/javafx:" -Dnetbeans.home="/home/caiofior/netbeans-8.2/platform" '-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade' '-Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense' '-Xmx1024m' '-client' '-Xss2m' '-Xms32m' '-Dapple.laf.useScreenMenuBar=true' '-Dapple.awt.graphics.UseQuartz=true' '-Dsun.java2d.noddraw=true' '-Dsun.java2d.dpiaware=true' '-Dsun.zip.disableMemoryMapping=true' -DaddExports:java.desktop/sun.awt=ALL-UNNAMED -DaddExports:java.base/jdk.internal.jrtfs=ALL-UNNAMED -DaddExports:java.desktop/java.awt.peer=ALL-UNNAMED -DaddExports:java.desktop/com.sun.beans.editors=ALL-UNNAMED -DaddExports:java.desktop/sun.awt.im=ALL-UNNAMED -DaddExports:java.desktop/com.sun.java.swing.plaf.gtk=ALL-UNNAMED -DaddExports:java.management/sun.management=ALL-UNNAMED -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="/home/caiofior/.netbeans/8.2/var/log/heapdump.hprof" -splash:"/home/caiofior/.cache/netbeans/8.2/splash.png" org.netbeans.Main --cachedir "/home/caiofior/.cache/netbeans/8.2" --userdir "/home/caiofior/.netbeans/8.2" "--branding" "nb" 0<&0
Comment 11 jtatria 2017-05-24 19:36:24 UTC
Also happens on Ubuntu 17.04, on Netbeans 8.2 installed with the netbeans installer, while editing java code.

GLib:ERROR:../../../../glib/ghash.c:373:g_hash_table_lookup_node: assertion failed: (hash_table->ref_count > 0)
/usr/local/netbeans-8.2/platform/lib/nbexec: line 470: 28050 Aborted                 (core dumped) "/usr/lib/jvm/java-8-openjdk-amd64/bin/java" -Djdk.home="/usr/lib/jvm/java-8-openjdk-amd64" -classpath "/usr/local/netbeans-8.2/platform/lib/boot.jar:/usr/local/netbeans-8.2/platform/lib/org-openide-modules.jar:/usr/local/netbeans-8.2/platform/lib/org-openide-util.jar:/usr/local/netbeans-8.2/platform/lib/org-openide-util-lookup.jar:/usr/local/netbeans-8.2/platform/lib/org-openide-util-ui.jar:/usr/local/netbeans-8.2/platform/lib/locale/boot_ja.jar:/usr/local/netbeans-8.2/platform/lib/locale/boot_pt_BR.jar:/usr/local/netbeans-8.2/platform/lib/locale/boot_ru.jar:/usr/local/netbeans-8.2/platform/lib/locale/boot_zh_CN.jar:/usr/local/netbeans-8.2/platform/lib/locale/org-openide-modules_ja.jar:/usr/local/netbeans-8.2/platform/lib/locale/org-openide-modules_pt_BR.jar:/usr/local/netbeans-8.2/platform/lib/locale/org-openide-modules_ru.jar:/usr/local/netbeans-8.2/platform/lib/locale/org-openide-modules_zh_CN.jar:/usr/local/netbeans-8.2/platform/lib/locale/org-openide-util_ja.jar:/usr/local/netbeans-8.2/platform/lib/locale/org-openide-util-lookup_ja.jar:/usr/local/netbeans-8.2/platform/lib/locale/org-openide-util-lookup_pt_BR.jar:/usr/local/netbeans-8.2/platform/lib/locale/org-openide-util-lookup_ru.jar:/usr/local/netbeans-8.2/platform/lib/locale/org-openide-util-lookup_zh_CN.jar:/usr/local/netbeans-8.2/platform/lib/locale/org-openide-util_pt_BR.jar:/usr/local/netbeans-8.2/platform/lib/locale/org-openide-util_ru.jar:/usr/local/netbeans-8.2/platform/lib/locale/org-openide-util-ui_ja.jar:/usr/local/netbeans-8.2/platform/lib/locale/org-openide-util-ui_pt_BR.jar:/usr/local/netbeans-8.2/platform/lib/locale/org-openide-util-ui_ru.jar:/usr/local/netbeans-8.2/platform/lib/locale/org-openide-util-ui_zh_CN.jar:/usr/local/netbeans-8.2/platform/lib/locale/org-openide-util_zh_CN.jar:/usr/lib/jvm/java-8-openjdk-amd64/lib/dt.jar:/usr/lib/jvm/java-8-openjdk-amd64/lib/tools.jar" -Dnetbeans.default_userdir_root="/home/jta/.netbeans" -Dnetbeans.running.environment=kde -Dnetbeans.dirs="/usr/local/netbeans-8.2/nb:/usr/local/netbeans-8.2/ergonomics:/usr/local/netbeans-8.2/ide:/usr/local/netbeans-8.2/extide:/usr/local/netbeans-8.2/java:/usr/local/netbeans-8.2/apisupport:/usr/local/netbeans-8.2/webcommon:/usr/local/netbeans-8.2/websvccommon:/usr/local/netbeans-8.2/enterprise:/usr/local/netbeans-8.2/mobility:/usr/local/netbeans-8.2/profiler:/usr/local/netbeans-8.2/python:/usr/local/netbeans-8.2/php:/usr/local/netbeans-8.2/identity:/usr/local/netbeans-8.2/harness:/usr/local/netbeans-8.2/cnd:/usr/local/netbeans-8.2/cndext:/usr/local/netbeans-8.2/dlight:/usr/local/netbeans-8.2/groovy:/usr/local/netbeans-8.2/extra:/usr/local/netbeans-8.2/javacard:/usr/local/netbeans-8.2/javafx:" -Dnetbeans.home="/usr/local/netbeans-8.2/platform" '-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade' '-Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense' '-Xmx1024m' '-client' '-Xss2m' '-Xms32m' '-Dapple.laf.useScreenMenuBar=true' '-Dapple.awt.graphics.UseQuartz=true' '-Dsun.java2d.noddraw=true' '-Dsun.java2d.dpiaware=true' '-Dsun.zip.disableMemoryMapping=true' -DaddExports:java.desktop/sun.awt=ALL-UNNAMED -DaddExports:java.base/jdk.internal.jrtfs=ALL-UNNAMED -DaddExports:java.desktop/java.awt.peer=ALL-UNNAMED -DaddExports:java.desktop/com.sun.beans.editors=ALL-UNNAMED -DaddExports:java.desktop/sun.awt.im=ALL-UNNAMED -DaddExports:java.desktop/com.sun.java.swing.plaf.gtk=ALL-UNNAMED -DaddExports:java.management/sun.management=ALL-UNNAMED -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="/home/jta/.netbeans/8.2/var/log/heapdump.hprof" -splash:"/home/jta/.cache/netbeans/8.2/splash.png" org.netbeans.Main --cachedir "/home/jta/.cache/netbeans/8.2" --userdir "/home/jta/.netbeans/8.2" "--branding" "nb" 0<&0
Comment 12 sviatopolk 2017-07-10 14:37:46 UTC
I have this too, but only since upgrading to Debian 9.

I'm fairly certain this is not a thing about Netbeans but openjdk vs atk.

We had some atk problem also last year, with a workaround of disabling atk somehow, does anybody remember it?
Comment 13 sviatopolk 2017-07-10 14:41:13 UTC
Never mind, I found it.

https://netbeans.org/bugzilla/show_bug.cgi?id=268644#c9

Now testing if it works around the current issue.
Comment 14 sviatopolk 2017-07-10 14:56:54 UTC
It may be premature, but it SEEMS that that workaround fixed it for me.
Comment 15 aldr 2017-08-28 12:04:12 UTC
I have the same issue with the same error massages the suggested workaround unfortunately didn't work for me tough.

Should I open a new Bug report or continue answering on this one?
Comment 16 rhisty 2018-04-15 15:39:07 UTC
Happends to me too.
NB 8.2
Linux asus 4.13.0-38-generic

Resolved with @jmtorres 's comment.

Thanks.