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 135176 - IDE does not work on Ubuntu or Mac on first launch
Summary: IDE does not work on Ubuntu or Mac on first launch
Status: VERIFIED DUPLICATE of bug 134577
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: David Vancouvering
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-15 18:43 UTC by tonybeckham
Modified: 2008-07-11 19:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace when hang occurs on mac (24.55 KB, text/plain)
2008-05-16 21:40 UTC, tonybeckham
Details
Thread Dump still happening on 5/20/2008 (29.75 KB, text/plain)
2008-05-20 21:24 UTC, tonybeckham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tonybeckham 2008-05-15 18:43:28 UTC
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
Comment 1 tonybeckham 2008-05-15 19:12:33 UTC
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.
Comment 2 Jana Maleckova 2008-05-16 07:30:06 UTC
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
Comment 3 tonybeckham 2008-05-16 21:40:02 UTC
Created attachment 61505 [details]
Stack trace when hang occurs on mac
Comment 4 tonybeckham 2008-05-20 21:22:28 UTC
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
Comment 5 tonybeckham 2008-05-20 21:24:57 UTC
Created attachment 61644 [details]
Thread Dump still happening on 5/20/2008
Comment 6 tonybeckham 2008-05-20 21:30:04 UTC
Renaming or deleting user dir (.netbeans) same behavior is seen.
Comment 7 mslama 2008-05-21 12:32:34 UTC
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.
Comment 8 tonybeckham 2008-05-22 00:20:29 UTC
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.
Comment 9 mslama 2008-05-22 08:34:08 UTC
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.
Comment 10 mslama 2008-05-22 08:37:06 UTC
Correction: All linux (debian/ubuntu) package names are lowercase so it should be libx11-dev and libx11-6.
Comment 11 mslama 2008-05-22 08:43:05 UTC
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.
Comment 12 David Simonek 2008-05-22 08:46:23 UTC
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.
Comment 13 David Simonek 2008-05-22 09:03:09 UTC
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.
Comment 14 mslama 2008-05-22 09:04:58 UTC

*** This issue has been marked as a duplicate of 134577 ***
Comment 15 tonybeckham 2008-05-27 19:06:42 UTC
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?
Comment 16 mslama 2008-06-09 08:29:16 UTC
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.
Comment 17 tonybeckham 2008-07-11 19:54:46 UTC
Verified dup.