Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359083 - Eclipse stops responding randomly and never comes back.
Summary: Eclipse stops responding randomly and never comes back.
Status: RESOLVED WORKSFORME
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.sse (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: wst.sse CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-27 10:43 EDT by my.skippy CLA
Modified: 2011-09-29 13:59 EDT (History)
2 users (show)

See Also:


Attachments
heap dump from VisualVM 1.7.0 (Build 110325) (15.66 MB, application/octet-stream)
2011-09-27 10:51 EDT, my.skippy CLA
no flags Details
heap dump (14.97 MB, application/octet-stream)
2011-09-27 10:58 EDT, my.skippy CLA
no flags Details
Windows 7 Dump (75.59 MB, application/x-zip-compressed)
2011-09-27 11:01 EDT, my.skippy CLA
no flags Details
Thread Dump of Eclipse Process (25.23 KB, text/plain)
2011-09-27 11:06 EDT, my.skippy CLA
no flags Details
thread dump of Eclipse process (19.64 KB, text/plain)
2011-09-27 11:11 EDT, my.skippy CLA
no flags Details
Thread Dump of Eclipse Process (17.40 KB, text/plain)
2011-09-27 11:14 EDT, my.skippy CLA
no flags Details
.metadata\.log (11.88 KB, text/plain)
2011-09-27 13:48 EDT, my.skippy CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description my.skippy CLA 2011-09-27 10:43:25 EDT
Build Identifier: 20110916-0149

Seemingly randomly when editing a file in eclipse indigo the IDE just freezes up and stops responding completely and indefinately. I can't seem to reproduce it using any particular methods thus it seems rather random. I removed my old installation of Eclipse and downloaded and installed a fresh new version thinking that may that would fix the issue but it continues to occur.


Reproducible: Couldn't Reproduce

Steps to Reproduce:
I have tried to recreate the issue with the same steps but it happens randomly. I follow the same set of actions as the last time and it doesn't occur. Then I continue with my daily work and all of the sudden it happens again.
Comment 1 Remy Suen CLA 2011-09-27 10:47:49 EDT
Get a thread dump when it occurs.
http://wiki.eclipse.org/index.php/How_to_report_a_deadlock
Comment 2 my.skippy CLA 2011-09-27 10:51:59 EDT
Created attachment 204087 [details]
heap dump from VisualVM 1.7.0 (Build 110325)
Comment 3 my.skippy CLA 2011-09-27 10:58:00 EDT
Created attachment 204088 [details]
heap dump
Comment 4 Remy Suen CLA 2011-09-27 11:00:03 EDT
(In reply to comment #2)
> Created attachment 204087 [details]
> heap dump from VisualVM 1.7.0 (Build 110325)

This is a heap dump, not a thread dump.
Comment 5 my.skippy CLA 2011-09-27 11:01:13 EDT
Created attachment 204089 [details]
Windows 7 Dump
Comment 6 my.skippy CLA 2011-09-27 11:03:15 EDT
Sorry, didn't see your request.

I will get a few thread dumps also. I am actually able to reproduce it quite regularly now. I am just doing a find/replace of a value in my document and it happens between the 5th and 8th replace each time.



(In reply to comment #1)
> Get a thread dump when it occurs.
> http://wiki.eclipse.org/index.php/How_to_report_a_deadlock
Comment 7 my.skippy CLA 2011-09-27 11:06:14 EDT
Created attachment 204090 [details]
Thread Dump of Eclipse Process
Comment 8 my.skippy CLA 2011-09-27 11:11:50 EDT
Created attachment 204093 [details]
thread dump of Eclipse process
Comment 9 my.skippy CLA 2011-09-27 11:14:03 EDT
Created attachment 204094 [details]
Thread Dump of Eclipse Process
Comment 10 Remy Suen CLA 2011-09-27 11:39:46 EDT
(In reply to comment #6)
> Sorry, didn't see your request.
> 
> I will get a few thread dumps also.

Actually, it seems your hprof files also have thread dumps embedded in them. In any case, thanks for your uploads.
Comment 11 my.skippy CLA 2011-09-27 11:41:21 EDT
No problem. I also added three thread dumps.

Here are the steps I was using to recreate the issue for the thread dumps.

Steps to reproduce.

1. Press ctrl-f to do a "find" in my document on "playMenu" to find the correct
spot in my document.
2. press the find button to move to the point in my code where "playMenu" first
appears.
3. move the cursor to a line just above the "found" text.
4. with the "find/replace" dialog still open do a find/replace on "playMenu"
replacing it with "delinquencyNotification".
5. after the 5th replace, type over the replaced text with the text "repeat"
6. click find again to find the next instance of "playMenu".
7. click on the found text and type "repeat"
8. click on the replace/find button 3 - 5 more times to replace the given value
9. IDE freezes.





(In reply to comment #10)
> (In reply to comment #6)
> > Sorry, didn't see your request.
> > 
> > I will get a few thread dumps also.
> Actually, it seems your hprof files also have thread dumps embedded in them. In
> any case, thanks for your uploads.
Comment 12 my.skippy CLA 2011-09-27 11:42:22 EDT
It appears that if I save the document after every two or three replace/find instances the issue doesn't occur.


(In reply to comment #11)
> No problem. I also added three thread dumps.
> Here are the steps I was using to recreate the issue for the thread dumps.
> Steps to reproduce.
> 1. Press ctrl-f to do a "find" in my document on "playMenu" to find the correct
> spot in my document.
> 2. press the find button to move to the point in my code where "playMenu" first
> appears.
> 3. move the cursor to a line just above the "found" text.
> 4. with the "find/replace" dialog still open do a find/replace on "playMenu"
> replacing it with "delinquencyNotification".
> 5. after the 5th replace, type over the replaced text with the text "repeat"
> 6. click find again to find the next instance of "playMenu".
> 7. click on the found text and type "repeat"
> 8. click on the replace/find button 3 - 5 more times to replace the given value
> 9. IDE freezes.
> (In reply to comment #10)
> > (In reply to comment #6)
> > > Sorry, didn't see your request.
> > > 
> > > I will get a few thread dumps also.
> > Actually, it seems your hprof files also have thread dumps embedded in them. In
> > any case, thanks for your uploads.
Comment 13 Remy Suen CLA 2011-09-27 11:48:17 EDT
(In reply to comment #11)
> 1. Press ctrl-f to do a "find" in my document on "playMenu" to find the correct
> spot in my document.

From your thread dumps it seems you are editing XML files, is this correct? If you try to reproduce the problem in some regular text file (with a .txt file extension) and use the context menu with > Open With > Text Editor, does the problem occur in a regular text editor?
Comment 14 Nick Sandonato CLA 2011-09-27 11:51:29 EDT
Thanks for your bug report. Could you provide us with the file you've been working on? Do you have any other plug-ins installed? Are there any errors in your error log?
Comment 15 my.skippy CLA 2011-09-27 13:47:41 EDT
Unfortunately I am unable to provide you with a copy of the file. My employer won't allow me to do so.

I have the following plugins installed:

  C/C++ Development Tools	8.0.0.201109151620	org.eclipse.cdt.feature.group	Eclipse CDT

  C/C++ Development Tools SDK	8.0.0.201109151620	org.eclipse.cdt.sdk.feature.group	Eclipse CDT

  Eclipse XML Editors and Tools	3.3.1.v201108102009-7H7EFZ3DxumTlaI6nheRdHo2p1KaDIL1Uz-S3PL	org.eclipse.wst.xml_ui.feature.feature.group	Eclipse Web Tools Platform


The file I'm editing is in a "general" project and just houses VoiceXML files which I have associated with the XML Editor.

(In reply to comment #14)
> Thanks for your bug report. Could you provide us with the file you've been
> working on? Do you have any other plug-ins installed? Are there any errors in
> your error log?
Comment 16 my.skippy CLA 2011-09-27 13:48:28 EDT
Created attachment 204112 [details]
.metadata\.log
Comment 17 Nick Sandonato CLA 2011-09-29 13:59:03 EDT
Thanks for all of your help in trying to tackle this problem. Up to this point, I haven't been able to reproduce unfortunately, and I think that is essential in order to address this. Your thread dumps indicate that we're trying to obtain a lock that's already been acquired by some other thread. Unfortunately for us, that thread doesn't seem to be showing itself. It's possible that it's because the thread that did acquire that lock failed to release it. Without knowing that, it comes down to a guessing game. For this reason, I'm moving it into worksforme.

If you do come across any other information that might help in pinpointing the problem, please reopen the defect and we'll take another look.