Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 270283 - Starvation in NIO2Notifier
Starvation in NIO2Notifier
Product: platform
Classification: Unclassified
Component: Filesystems
PC Windows 7
: P2 (vote)
: Dev
Assigned To: Jaroslav Havlin
: 270044 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2017-04-03 15:25 UTC by Tomas Zezula
Modified: 2017-04-05 08:34 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT

Thread dump (31.72 KB, text/plain)
2017-04-03 15:26 UTC, Tomas Zezula

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Zezula 2017-04-03 15:25:53 UTC
The IDE is frozen forever.
See attached thread dump.
Comment 1 Tomas Zezula 2017-04-03 15:26:34 UTC
Created attachment 164011 [details]
Thread dump
Comment 2 Tomas Zezula 2017-04-03 15:42:14 UTC
*** Bug 270044 has been marked as a duplicate of this bug. ***
Comment 3 Tomas Zezula 2017-04-04 14:06:06 UTC
There are 2 problems:

1st) The NIO2Notifier should not be used at all on Windows as there is a WindowsNotifier. Unfortunately the WindowsNotifier is not loaded on Win32 due to
broken jnidispatch-422.dll.

java.lang.UnsatisfiedLinkError: C:\Users\IEUser\AppData\Local\Temp\jna--2138670329\jna1402213887413181948.dll: Invalid
ccess to memory location
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(
        at java.lang.ClassLoader.loadLibrary(
        at java.lang.Runtime.load0(
        at java.lang.System.load(
        at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(
        at com.sun.jna.Native.loadNativeDispatchLibrary(
        at com.sun.jna.Native.<clinit>(
        at com.sun.jna.Pointer.<clinit>(
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
        at java.lang.reflect.Constructor.newInstance(
        at java.lang.Class.newInstance(
        at org.openide.util.lookup.implspi.SharedClassObjectBridge.newInstance(
        at org.openide.util.lookup.MetaInfServicesLookup$Item.getInstance(
        at org.netbeans.modules.masterfs.watcher.Watcher.getNotifierForPlatform(
        at org.netbeans.modules.masterfs.watcher.Watcher.<init>(

The library was broken by
The tool used for stripping doe not correctly handle Windows DLLs.

2nd) Is a problem in NIO2Notifier which hands in cancel or register.
I am not sure yet if it's a Java or the NIO2Notifier problem.
Comment 4 Tomas Hurka 2017-04-04 14:09:15 UTC
Stripped version of jna library reverted to original (non-stripped) one.

changeset:   303050:a61bd9cf1509
user:        Tomas Hurka <>
date:        Tue Apr 04 16:06:11 2017 +0200
summary:     bugfix #270283, changeset 4a55fc56992c (Stripping libs in libs.jna) reverted
Comment 5 Martin Balin 2017-04-05 08:34:35 UTC
Please revert also in release82.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo