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.
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
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?
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.)
Current version of JDK 5.0 is Update 12 so you can try to update JDK 5.0.
Created attachment 47660 [details] JPS output
Created attachment 47661 [details] jstack output
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?
Just to be clear, the SwingSet2 app is working as expected. The Netbeans IDE still freezes the OS...
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.
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)
Created attachment 47741 [details] jstack output from jdk1.6.0_02
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.
Passing to Marek who is working on the issue...
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.
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."
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.
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.
v/c