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.
Reproducible with Java 1.5 and 1.6 on Ubuntu 8.04. Build 200805150003 (first tried full intall then less and less modules until just base IDE all had same problem) After installing full ide, the ide will open then no actions can take place and IDE hangs. (see errors from log below) INFO [org.netbeans.core.nativeaccess.NativeWindowSystemImpl] java.lang.UnsatisfiedLinkError: Unable to load library 'X11': libX11.so: cannot open shared object file: No such file or directory at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:114) at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:157) at com.sun.jna.Library$Handler.<init>(Library.java:123) at com.sun.jna.Native.loadLibrary(Native.java:260) at com.sun.jna.Native.loadLibrary(Native.java:246) at org.netbeans.core.nativeaccess.transparency.unix.X11.<clinit>(X11.java:250) at org.netbeans.core.nativeaccess.transparency.WindowUtils$X11WindowUtils.getAlphaVisualIDs(WindowUtils.java:1069) at org.netbeans.core.nativeaccess.transparency.WindowUtils$X11WindowUtils.isWindowAlphaSupported(WindowUtils.java:1019) at org.netbeans.core.nativeaccess.transparency.WindowUtils.isWindowAlphaSupported(WindowUtils.java:1349) [catch] at org.netbeans.core.nativeaccess.NativeWindowSystemImpl.isWindowAlphaSupported(NativeWindowSystemImpl.java:61) at org.netbeans.core.windows.FloatingWindowTransparencyManager.start(FloatingWindowTransparencyManager.java:77) at org.netbeans.core.windows.WindowManagerImpl.setVisible(WindowManagerImpl.java:760) at org.netbeans.core.windows.WindowSystemImpl.show(WindowSystemImpl.java:87) at org.netbeans.core.NonGui$2.run(NonGui.java:193) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121) INFO [org.netbeans.modules.editor.EditorModule]: Number of loaded editor kits: 0 INFO [org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogCache]: Processing URL: http://deadlock.netbeans.org/hudson/job/javadoc-nbms/lastSuccessfulBuild/artifact/nbbuild/nbms/updates.xml.gz INFO [org.netbeans.modules.autoupdate.updateprovider.AutoupdateCatalogCache]: Processing URL: http://updates.netbeans.org/netbeans/updates/dev/uc/final/main/catalog.xml.gz?unique=NB_GLASSFISH_JAVA_SOA_WEBEE01d4e66ed-baaf-4035-a0ea-96bb25e41f5
Product Version: NetBeans IDE Dev (Build 200805150003) Java: 1.6.0_05; Java HotSpot(TM) 64-Bit Server VM 1.6.0_05-b13-52 System: Mac OS X version 10.5.2 running on x86_64; MacRoman; en_US (nb) Same happens on Mac but without errors in the log. The first launch of a newly installed ide will result in the services tab being blank and when trying to create a new project, the new project wizard hangs with the message please wait... in the project type pane. Subsequent launches of the ide do not have this behavior.
to the 2nd case: Could you please attach full thread dump when IDE gets frozen? according to 1st case, there seems to be some problem with jdk. I will reassign issue to core for evaluation
Created attachment 61505 [details] Stack trace when hang occurs on mac
Product Version: NetBeans IDE Dev (Build 200805201203) Java: 1.6.0_05; Java HotSpot(TM) 64-Bit Server VM 1.6.0_05-b13-52 System: Mac OS X version 10.5.2 running on x86_64; MacRoman; en_US (nb) Still an issue on latest build. Steps: 1. Delete any existing user dir (or rename) 2. Install IDE (I used the full installer and unselected Ruby, PHP, and C/C++) to a location other than the default 3. Once installation is complete Start the IDE 4. Use the new project icon 5. Wizard just displays Please wait... in the category pane
Created attachment 61644 [details] Thread Dump still happening on 5/20/2008
Renaming or deleting user dir (.netbeans) same behavior is seen.
Probably missing symlink /usr/lib/libX11.so. Please check. If it is not there it is installation distro bug Ubuntu in this case. As I remember the same problem was on 7.04. Output from 7.10: [lib]> pwd /usr/lib [lib]> ll libX11* -rw-r--r-- 1 root root 19792466 2007-10-05 00:20 libX11.a lrwxrwxrwx 1 root root 15 2007-11-18 20:30 libX11.so -> libX11.so.6.2.0 lrwxrwxrwx 1 root root 15 2007-11-16 17:13 libX11.so.6 -> libX11.so.6.2.0 -rw-r--r-- 1 root root 986540 2007-10-05 00:20 libX11.so.6.2.0 Some OS update could break this.
tony@ubuntu20:/usr/lib$ ll libX11* lrwxrwxrwx 1 root root 15 2008-04-24 16:00 libX11.so.6 -> libX11.so.6.2.0 -rw-r--r-- 1 root root 944876 2008-03-11 13:33 libX11.so.6.2.0 lrwxrwxrwx 1 root root 19 2008-04-24 16:05 libX11-xcb.so.1 -> libX11-xcb.so.1.0.0 -rw-r--r-- 1 root root 2636 2008-03-11 13:33 libX11-xcb.so.1.0.0 That's what I have on my 8.04 system. I know there are some problems w/ Hardy's version of XORG that prevents parallels tools from working. (BTW I am running on an actual machine not a VM.) And I don't think it is a distro bug because I can run FCS 6.1 just fine.
I checked packages and reason/problem is that /usr/lib/libX11.so is installed by package libx11-dev. IMO it should be installed by package libX11-6. I will file this against Ubuntu though I think it is more general problem. We all here usually compile so we have dev packages installed. On our side we can handle this exception more nicely ie. it will not break IDE.
Correction: All linux (debian/ubuntu) package names are lowercase so it should be libx11-dev and libx11-6.
See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=297315. Only dev package provides symlink /usr/lib/libX11.so. So apparently they think it is ok. Then we will reopen issue against jna not to rely on presence of this symlink.
This is known problem with JNA library, see here: https://jna.dev.java.net/issues/show_bug.cgi?id=58 However our code in NB should catch this error and survive it, I'll fix it in our code accordingly.
So I studied code and we *are* catching JNA load failure properly, so exception is just logged and has nothing to do with this hang.
*** This issue has been marked as a duplicate of 134577 ***
Installing libx11-dev on Ubuntu relieved the problem, but since this package is not installed by default, I think this should be fixed. What about the problem on Mac?
I contacted jna lib maintainer and this problem was fixed in its trunk 2 weeks ago (I was on vacation). So for NetBeans it will be fixed once we will use next jna release. No time estimate available now though. For 'Mac issue' it is fixed. See issue #134577 for more details.
Verified dup.