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 113900 - Netbeans freezes and hangs Solaris OS
Summary: Netbeans freezes and hangs Solaris OS
Status: CLOSED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: Sun All
: P2 blocker (vote)
Assignee: mslama
URL: http://bugs.sun.com/bugdatabase/view_...
Keywords: JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2007-08-27 21:07 UTC by danl
Modified: 2011-06-09 09:56 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
JPS output (19 bytes, text/plain)
2007-08-28 20:52 UTC, danl
Details
jstack output (16.79 KB, text/plain)
2007-08-28 20:52 UTC, danl
Details
jstack output from jdk1.6.0_02 (14.79 KB, text/plain)
2007-08-29 18:25 UTC, danl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description danl 2007-08-27 21:07:38 UTC
Whether I'm dragging tabs or files to a new location, Netbeans freezes and hangs the Solaris OS. The only way I can free
up my CDE Windows system is to log in from another machine and kill all Java processes. 

This is very annoying especially when highlighting text. I have to be very careful not to drag the cursor, but use cut
and paste. I'm currently using the nightly build below, but have seen this happen in 5.5.1 as well.

Product Version: NetBeans IDE Dev (Build 200708211200)
Java: 1.5.0_06; Java HotSpot(TM) Client VM 1.5.0_06-b03
System: SunOS version 5.10 running on sparc; ISO8859-1; en_US (nb)
Userdir: /home/danl/.netbeans/dev
Comment 1 David Simonek 2007-08-28 08:46:51 UTC
Hello,
This is hardly NetBeans issue, it looks more like general JDK x OS problem. Could you please:

- test the drag with SwingSet2 demo app coming with JDK if you can reproduce the error here?
- try to reproduce with newer JDKs like 1.6.x or 1.5.0_12?
Comment 2 mslama 2007-08-28 08:53:45 UTC
Please first make sure that you have installed OS Patches from http://sunsolve.sun.com/show.do?target=patches/JavaSE.
Let us know if it will happen after this update. If yes try to connect remotely or from console and get thread dump. You
can try jps and jstack. If this is not possible try JDK 6u2 and if it happens get thread dump using jps/jstack. (On JDK
6 jstack is able to get thread dump even from running JVM. It is possible that on JDK 5 you will not get thread dump
using jstack depending on JVM status.)
Comment 3 mslama 2007-08-28 08:58:24 UTC
Current version of JDK 5.0 is Update 12 so you can try to update JDK 5.0.
Comment 4 danl 2007-08-28 20:52:01 UTC
Created attachment 47660 [details]
JPS output
Comment 5 danl 2007-08-28 20:52:31 UTC
Created attachment 47661 [details]
jstack output
Comment 6 danl 2007-08-28 20:53:18 UTC
I installed the JavaSE patches and installed jdk1.5.0_12. The SwingSet2 demo app works as expected. I can drag windows
without freezing the OS. I've attached the output from jps and jstack.

BTW, I'm running a SunBlade 2500. Someone mentioned this could be a problem with the dual processors?
Comment 7 danl 2007-08-28 21:05:54 UTC
Just to be clear, the SwingSet2 app is working as expected. The Netbeans IDE still freezes the OS...
Comment 8 mslama 2007-08-29 09:27:00 UTC
Please can you try woth JDK 6u2 and eventualy with latest buidl of JDK 7? From thread dump it looks like it is JDK/AWT
issue. jstack output from JDK 5.0 does not contain many details (even thread names are missing). The only problem I
heard about was garbage collector problem - long pauses - on multiprocessor machine. Workaround was to select concurrent
garbage collector. Of course this problem can be also caused by some race condition more probably happening on
multiprocessor machine.

Do you have access to bugtraq? It would be better if you could file issue against JDK/AWT yourself as you are able to
reproduce this issue. We can file issue too but then we would serve just as bridge between you and AWT team.
Comment 9 danl 2007-08-29 18:23:58 UTC
As a end user, I don't feel it is my responsibility to file a bug against JDK/AWT to ensure the Netbeans IDE works
properly. Obviously, you folks are much better off at figuring out what the underlying problem is, so I'll leave that to
you, if you don't mind. ;)

That said, I have installed jdk1.6.0_02. When dragging tabs, files, etc., the following message is now displayed in a
dialog.

"A java.awt.dnd.InvalidDnDOperationException exception has occured.
However, the system should continue working without further problems.
Click Show Details for the stack trace."

java.awt.dnd.InvalidDnDOperationException: Already initialized
	at sun.awt.X11.XDragSourceProtocol.initializeDrag(XDragSourceProtocol.java:76)
	at sun.awt.X11.XDragSourceContextPeer.startDrag(XDragSourceContextPeer.java:153)
	at sun.awt.dnd.SunDragSourceContextPeer.startDrag(SunDragSourceContextPeer.java:111)
	at java.awt.dnd.DragSource.startDrag(DragSource.java:306)
	at java.awt.dnd.DragSource.startDrag(DragSource.java:376)
	at java.awt.dnd.DragGestureEvent.startDrag(DragGestureEvent.java:247)
	at org.netbeans.core.windows.view.dnd.TopComponentDragSupport.doStartDrag(TopComponentDragSupport.java:359)
	at org.netbeans.core.windows.view.dnd.TopComponentDragSupport.eventDispatched(TopComponentDragSupport.java:292)
	at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Toolkit.java:2360)
	at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2251)
	at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2251)
	at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2251)
	at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2251)
	at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2251)
	at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2251)
	at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2251)
	at java.awt.Toolkit.notifyAWTEventListeners(Toolkit.java:2210)
	at java.awt.Component.dispatchEventImpl(Component.java:4308)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4240)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4003)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
	at java.awt.Container.dispatchEventImpl(Container.java:2102)
	at java.awt.Window.dispatchEventImpl(Window.java:2429)
	at java.awt.Component.dispatchEvent(Component.java:4240)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	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)
Comment 10 danl 2007-08-29 18:25:46 UTC
Created attachment 47741 [details]
jstack output from jdk1.6.0_02
Comment 11 mslama 2007-09-03 13:43:25 UTC
I tried to reproduce on Sol 10 with 1 CPU and Sol 11 with 2 CPU (both Sparc) on JDK 5.0u12/JDK 6u2 and NB 6.0 dev build
200708300000 but I no success. Anyway I will file bug against AWT if they will have any hint what to do with this
issue.Issue is #6600301.
Comment 12 David Simonek 2007-09-03 13:48:24 UTC
Passing to Marek who is working on the issue...
Comment 13 ixmal 2007-09-11 07:35:07 UTC
I'm trying to reproduce this problem using NB5.5, but with no success. Please, specify the exact environment when the
hang is observed:

  - OS (Solaris 11? What about Solaris 10 or Linux?)
  - NB version (5.5? 6.0?)
  - JDK version (I tried with 5.0u12 and 6u1)
  - desktop environment / window manager (CDE? What about JDS/Metacity?)
  - steps to reproduce the problem (I tried dragging some files and panels)

I'm moving JDK bug 6600301 into Incomplete/Need More Info state until this information is provided.
Comment 14 danl 2007-09-13 16:01:10 UTC
As indicated by my description, I am using the following nightly Netbeans build (although, it happens for both 5.5 and
6.0), Solaris 10, CDE, and Java 1.5.

Product Version: NetBeans IDE Dev (Build 200708211200)
Java: 1.5.0_06; Java HotSpot(TM) Client VM 1.5.0_06-b03
System: SunOS version 5.10 running on sparc; ISO8859-1; en_US (nb)

As indicated in a follow up comment, upgrading to jdk1.6.0_02 no longer freezes the OS. However, when dragging tabs,
files, etc., the following message is now displayed in a dialog.

"A java.awt.dnd.InvalidDnDOperationException exception has occured.
However, the system should continue working without further problems.
Click Show Details for the stack trace."
Comment 15 Antonin Nebuzelsky 2007-09-18 14:12:51 UTC
Closing as "wontfix in NetBeans", the usual way JDK bugs are handled.

See the URL pointer in this report which points to the respective JDK bug.

However, feel free to continue discussion here. And reopen this NetBeans bug if a bug must be fixed in NetBeans.
Comment 16 ixmal 2007-09-21 08:57:37 UTC
I have added more comments to Sun bug #6600301. In a few words: I have tried all the possible configurations (NB
5.5/6.0; JDK 5.0u4, 5.0u7, 6u1; linux/solaris; CDE/JDS/Gnome; XToolkit/MToolkit) and haven't found any problems. It
seems the bug is very timings-dependent and can be only reproduced on certain desktops.
Comment 17 Marian Mirilovic 2011-06-09 09:56:32 UTC
v/c