Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 56841

Summary: [Widgets] Eclipse 3.0M8 hangs (with all 8 perspectives opened)
Product: [Eclipse Project] Platform Reporter: Brian So <bso>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WONTFIX QA Contact: Grant Gayed <grant_gayed>
Severity: major    
Priority: P3 CC: balask, danrubel, farrellp, john.arthorne, Kevin_Haaland
Version: 3.0Keywords: triaged
Target Milestone: ---   
Hardware: Sun   
OS: Solaris   
Whiteboard:
Attachments:
Description Flags
The attached file is a stack dump when Eclipse was hung
none
Used "kill -3" to obtain a stack dump when Eclipse was hung again
none
Used "kill -3" to obtain a stack dump when Eclipse was hung again on HPUX11.11
none
Used "kill -3" to obtain a stack dump when Eclipse was hung again on Solaris 9
none
Used "kill -3" to obtain a stack dump when Eclipse was hung again on Solaris 9 when closing
none
Used "kill -3" to obtain a stack dump when Eclipse was hung again on Solaris 9
none
Eclipse was hung when trying to open Java Browsing perspective on Solaris 9
none
Eclipse was hung when trying to exit workbench (HPUX11.11)
none
Hang on HP-UX 11.23
none
debug configuration image
none
Eclipse hang- thread dump none

Description Brian So CLA 2004-03-30 17:43:45 EST
This one is hard to reproduce. I do not have a formula for it. But the common 
point is that I had all 8 perspectives opened.

Eclipse 3.0M8 hanged 3 times for me today (2 times on Solaris 9 and once on 
HPUX11.11). There were no logs, no core dump, and no error message. I could not 
close the eclipse window by using the 'X' at the upper right hand corner. I had 
to use 'kill -9' to kill all 2 processes.

You can try to reproduce the problem with the following combinations:
1. Open all 8 perspectives.
2. Switch to each perspective one-by-one via the perpective button on the 
perspective switching toolbar.
3. Resize the the workbench.
4. Close a few perspectives.
5. Use ‘Close All” to close all perspertives.
6. Open all perspectives one-by-one again.
7. Close a few perspectives.
8. Maximize the workbench.
9. Reopen all the closed perspectives.
10. Delete a perpective and reopen it several times
11. ‘Restore Down’ the work bench.
12. Switch to each perspective one-by-one.

You get the idea. If it does not work. Try a combination of the above again. If 
you need help to reproduce it, Please let me know via email and we can try this 
together.

Brian
Comment 1 John Arthorne CLA 2004-03-31 13:57:58 EST
Please specify the VM being used.

Also, try "kill -3" (SIGQUIT) to obtain a stack dump when it is hung, and attach
if available.
Comment 2 Brian So CLA 2004-03-31 15:01:13 EST
Created attachment 9068 [details]
The attached file is a stack dump when Eclipse was hung

I still cannot find the exact way to reproduce the problem. However, I can
reproduce it by a combination of steps I mentioned in the report. The CPU usage
(via top) of the Java task after Eclipse hung was 99.5%

VM info:
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
Comment 3 Brian So CLA 2004-04-08 09:28:06 EDT
Created attachment 9328 [details]
Used "kill -3" to obtain a stack dump when Eclipse was hung again

This time Eclipse 3.08 (Solaris 9) was hung when I tried to close Eclipse
(File->Exit)- same VM. I was working on Eclipse for a whole day so I probably
cannot reproduce the problem. I hope the stack dump will provide some more info
to you. It will be easier to view it using wordPad. Do you want me to capture
the info every time Eclipse hangs?
Comment 4 Brian So CLA 2004-04-15 15:06:35 EDT
Created attachment 9552 [details]
Used "kill -3" to obtain a stack dump when Eclipse was hung again on HPUX11.11

This time Eclipse 3.0M8 (HP-UX11.11) was hung when I tried to use Debug - same
VM. I had used Debug a fews time before it was hung. I changed the Debug
preference to prompt user to switch to a ssociate select perspective when
launching. The second time I pressed the debug button, it hung up on me.
Comment 5 Brian So CLA 2004-04-15 15:12:40 EDT
Created attachment 9553 [details]
Used "kill -3" to obtain a stack dump when Eclipse was hung again on Solaris 9

Eclipse 3.0M8 (HP-UX11.11) was hung when I tried to use Debug - same
VM. I had used Debug a fews time before it was hung. I changed the Debug
preference to always switch to an associate select perspective when
launching. The second time I pressed the debug button, my runtime workbench
came up but the original workbench was hung. I could still close my runtime
workbench but not the original one.
Comment 6 Brian So CLA 2004-04-16 09:12:33 EDT
Created attachment 9573 [details]
Used "kill -3" to obtain a stack dump when Eclipse was hung again on Solaris 9 when closing

This time Eclipse 3.08 (Solaris 9) was hung when I tried to close Eclipse
yesterday evening(File->Exit)- same VM. I came back in the moring and Eclipse
was still hung. I hope the stack dump will provide some more info to you.
Comment 7 Brian So CLA 2004-04-21 09:50:06 EDT
Created attachment 9778 [details]
Used "kill -3" to obtain a stack dump when Eclipse was hung again on Solaris 9

Used "kill -3" to obtain a stack dump when Eclipse was hung again on Solaris 9

Eclipse 3.0M8 was hung when I tried to run debug on a Java application - same
VM. I was being prompted to see whether I would like to switch to Debug
perspective or not. I clicked on 'always' and Eclipse was hung.
Comment 8 John Arthorne CLA 2004-04-21 13:45:20 EDT
These all appear to be hung (or infinitely looping) in SWT natives 
(OS.XtDestroyWidget, OS.XtManageChild).
Comment 9 Brian So CLA 2004-05-03 09:51:09 EDT
Created attachment 10213 [details]
Eclipse was hung when trying to open Java Browsing perspective on Solaris 9

Eclipse 3.0M8 (build id 200403261517)

This time I was performing stress testing. I imported 100 packages and each
package had approx. 100 classes. I then expanded all the package lists on both
the Navigation view and the Package Explorer view. When tried to open Java
Browsing perspective (Window->Open Perspective->Java Browsing), Eclipse was
hung again. It happened on both Solaris 9 and HPUX11.11.

I have only attached the dump for Solaris 9.
Comment 10 Brian So CLA 2004-05-06 12:25:11 EDT
Created attachment 10357 [details]
Eclipse was hung when trying to exit workbench (HPUX11.11)

At first I was dragging and dropping files. I then performed some CVS testing.
I deleted a CVS project and clicked on 'X' button to close the workbench. That
was how I caused Eclipse to hang.
Comment 11 Balasubramaniyan K CLA 2004-06-24 02:20:46 EDT
Created attachment 12772 [details]
Hang on HP-UX 11.23

Eclipse Hang occurs even in HP-UX 11.23. This seems to be something to do with
the code rather than a bug in the JVM
Comment 12 Balasubramaniyan K CLA 2004-06-24 02:31:31 EDT
This bug is happening for all the latest versions of Eclipse viz., Eclipse 
3.0M8, Eclipse 3.0 M9, Eclipse 3.0 RC1, Eclipse 3.0 RC2, Eclipse 3.0 RC3.
As it hangs every now and then, development using Eclipse is becoming very 
difficult. The only way to restore is to kill the process and then restart 
Eclipse.




Comment 13 Balasubramaniyan K CLA 2004-08-20 02:48:13 EDT
In Display.java , there is a following snippet,

//	int xtContext = OS.XtDisplayToApplicationContext (xDisplay);
//	/*
//	* Bug in Xt.  Under certain circumstances Xt waits
//	* forever looking for X events, ignoring alternate
//	* inputs.  The fix is to never sleep forever.
//	*/

I think the new code as a fix for this bug also has the same problem. Could 
this be the potential problem for this bug. 

Moreover, I added some System.out.printlns in the sleep() of Display.java. 
Whenever there is a freeze, I expected that there would be no output from these 
System.out.println. Well, to my suprise, it is only the UI which got frozen and 
there were outputs in the console from these System.out.printlns. 

For examples, As per my understanding Eclipse gets pinged every 1 minute (6000) 
in its idle state. Even during the freeze state, these pings were happening. I 
was able to get the output from my System.out.println.
Comment 14 Jayaprakash CLA 2004-09-01 08:06:14 EDT
Created attachment 14321 [details]
debug configuration image
Comment 15 Jayaprakash CLA 2004-09-01 08:06:52 EDT
Created attachment 14322 [details]
Eclipse hang- thread dump
Comment 16 Jayaprakash CLA 2004-09-01 08:07:28 EDT
Hi,
 
I am using Eclipse 3.0 on Linux. I am also facing this eclipse hang problem. I 
started debugging eclipse code to find out the root cause. I am using 'remote 
java application debugging' feature available in eclipse. 
 
I launched eclipse on my Linux box and I used eclipse on Windows as my remote 
debugger
 

The hang very much reproducible with the following way.
 

1) Start  Eclipse 3.0 on Linux with the following arguments 
 
./eclipse -vmargs -Xnoagent -Xdebug -Djava.compiler=NONE -
Xrunjdwp:transport=dt_socket,address=8888,suspend=n,server=y 
 
2) In the windows box, import all the Eclipse 3.0 plug-in sources (taken from 
3.0 srcincluded.zip file)
 
3) Create new remote java application debug configuration shown in the 
attached 'debug-configuration' image file.

4)Set a method break point of update() of org.eclipse.swt.widgets.Display(line 
no 3422).After that , start debugger on Windows box. 
 
The debugger shows all the thread flow, whenever any operation on eclipse on 
Linux is performed.
 
I faced the eclipse hang on Linux, when I press the window->open perspective-
>other.... 
The same hang appears 8 out of 10 times for me.  I have also attached my kill -
3 trace dump.
 
Comment 17 Marco Schulze CLA 2005-01-10 05:30:56 EST
Hello *,

I've probably the same problem with Eclipse 3.1M1 under Linux (GTK2, SuSE 9.1,
KDE 3.2.1, X 4.3.99.902, Kernel 2.6.5-7.111.19, java 1.5.0-b64) when debugging.
What is really interesting, is that Eclipse doesn't hang forever but comes back
after about 10 minutes. Thus, to step from one line to another takes each time
10 minutes and hence makes debugging impossible.

I tried a "kill -3 {processID}", but unfortunately nothing happened. So, I
cannot provide a stack trace. I'll try it again. Should be no problem because
this happens now every time I try to debug an EJB in JBoss remotely.

The problem occured out of the blue without any changes in my code or in the
configuration. Last week everything worked fine. Really strange.

Best regards, Marco :-)
Comment 18 Marco Schulze CLA 2005-01-10 09:22:38 EST
Hello again,

after downloading Eclipse 3.1M4, the new lomboz and agonizing over Bug 81679
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=81679) and some lomboz related
problems, I finally was able to try out debugging again and it works! Seems, the
problem has been solved - at least I couldn't reproduce it so far and I hope it
doesn't reoccur later.

Best regards, Marco :-)
Comment 19 Grant Gayed CLA 2009-08-27 15:02:50 EDT
Moving report to triage, see http://www.eclipse.org/swt/triage.php
for more info about swt triage.
Comment 20 Lakshmi P Shanmugam CLA 2017-06-20 02:38:32 EDT
Solaris is no longer a supported platform.