Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331583 - Eclipse is hanging at random times indefinitely and must be forcefully killed
Summary: Eclipse is hanging at random times indefinitely and must be forcefully killed
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Linux
: P3 critical with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2010-12-01 13:56 EST by Kyle K. CLA
Modified: 2011-01-06 11:30 EST (History)
4 users (show)

See Also:


Attachments
A thread dump from my hung Eclipse process (38.25 KB, text/plain)
2010-12-01 14:00 EST, Kyle K. CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kyle K. CLA 2010-12-01 13:56:16 EST
Build Identifier: 20100917-0705

I've been experiencing a lot of IDE freezes over the past week or so.  It doesn't appear to be tied to any particular function as it's occurred during the following operations:

1) Attempting to save a modified Java file using CTRL+s
2) Trying to create a new Template for XML documents via Preferences -> XML -> XML Files -> Editor -> Templates
3) Changing editor tabs
4) Hovering my mouse over a node in the Package Explorer

Reproducible: Sometimes

Steps to Reproduce:
I'm unable to reproduce this with any regularity.  I can just guarantee that I'll hang at least 2-3 times a day.

I have a thread dump just after a recent hang via jvisualvm that I'll attach to this issue.
Comment 1 Kyle K. CLA 2010-12-01 14:00:28 EST
Created attachment 184286 [details]
A thread dump from my hung Eclipse process
Comment 2 Olivier Thomann CLA 2010-12-02 08:53:11 EST
Ayushman, please investigate if the deadlock comes from JDT/Core.
Thanks.
Comment 3 Ayushman Jain CLA 2010-12-02 09:37:05 EST
(In reply to comment #2)
> Ayushman, please investigate if the deadlock comes from JDT/Core.
> Thanks.

JDT/Core is surely not in picture here. Kyle, have you installed any plugins on top of vanilla eclipse?
Comment 4 Kyle K. CLA 2010-12-02 12:37:31 EST
My apologies for picking the wrong product & components.  I wasn't sure where this should be placed.

I do have quite a few plugins installed (as noted below).  Would you mind helping me associate this ticket with the proper product and component?

    AccuBridge Eclipse	2010.2.0
    AspectJ Development Tools	2.1.1.e36x-release-20101020-1600
    Atlassian Bamboo Integration	3.0.0.I20101024-0800
    Atlassian Connector for Eclipse (Required)	3.0.0.I20101024-0800
    Atlassian JIRA Connector (Recommended)	3.0.0.I20101024-0800
    BIRT Framework	2.6.1.v20100709a-9iF7A8FGLY4z0pxX3ORrsdrp6JXb
    BPMN Project Feature	1.2.0.201006151053
    C/C++ Development Tools	7.0.1.201009141542
    Context and Dependency Injection Tools	1.1.0.v20101016-0359-H111-Beta1
    Cross References tool (XRef)	2.1.1.e36x-release-20101020-1600
    CXF Web Services	1.0.2.v201008232129-7H777DFAKlRiOX8lGdRoz0878J
    Dali Java Persistence Tools	2.3.2.v201008242310-7N7UF75FD3wTgbUpoff0aT
    Dali Java Persistence Tools - EclipseLink Support (Optional)	2.3.2.v201008242310-7778BjBgJ9E99_H_DFBA
    Dynamic Languages Toolkit - Mylyn Integration	1.0.0.v20100518-1923-2--7w3121163103314
    ECF 3.3 Patch for Eclipse 3.5.X	3.3.0.v20100615-1452
    Eclipse BIRT Chart Context Sensitive Help Documentation	2.6.1.v20100618-3507w31211924
    Eclipse BIRT Context Sensitive Help Documentation	2.6.1.v20100618-3507w31211924
    Eclipse Communication Framework Target Components	3.3.1.v20100913-1814
    Eclipse IDE for Java EE Developers	1.3.1.20100916-1202
    Eclipse Java EE Developer Tools	3.2.2.v201008190400-7b7GHf2FSK2WBLQ2D-mrubYEOrRh
    Eclipse SOA Tutorial Discovery	0.10.0.v201006150915
    Eclipse Weaving Service Feature	2.1.1.e36x-release-20101020-1600
    Eclipse XSL Developer Tools	1.1.2.v201009091745-7S7WFAPFIpS-1-NbCE6tnacCXKP
    EPIC	0.6.37
    Equinox Weaving SDK	1.0.0.v20100421-79--EVVFNFFsFc
    FreeMarker IDE	1.1.0.v20101016-0359-H111-Beta1
    Hibernate Tools	3.3.0.v20101016-0359-H111-Beta1
    JavaServer Faces Tools (JSF) Project	3.2.2.v201008231400-7E7I6F9JgLWLMUW3
    JBoss Archives Tools	3.2.0.v20101016-0359-H111-Beta1
    JBoss Drools Core	5.1.1
    JBoss Drools Guvnor	5.1.1
    JBoss Drools Task	5.1.1
    JBoss ESB Tools	1.3.0.v20101016-0359-H111-Beta1
    JBoss Portlet	1.1.0.v20101016-0359-H111-Beta1
    JBoss Tools Community Project Examples	1.1.0.v20101016-0359-H111-Beta1
    JBoss Tools RichFaces	3.2.0.v20101016-0359-H111-Beta1
    JBoss WebServices Tools	1.1.0.v20101016-0359-H111-Beta1
    JBossAS Tools	2.2.0.v20101016-0359-H111-Beta1
    JMX Console	1.1.0.v20101016-0359-H111-Beta1
    Maven Integration for Eclipse (Required)	0.12.0.20101115-1102
    Memory Analyzer	1.0.1.201008091353
    Memory Analyzer (Charts) [optional]	1.0.1.201008091353
    Mozilla Rhino	1.6.2
    Mylyn UI Experiments (Incubation)	3.4.2.v20100916-0100-e3x-43-7w31211719012110
    Obsolete Atlassian Crucible & Fisheye Integration	3.0.0.I20101024-0800
    org.testng.eclipse	5.14.3.20101201_1116
    PL/SQL Editor	0.4.9
    Project configurators for commonly used maven plugins (temporary)	0.12.0.20101103-1500
    Project Examples	1.1.0.v20101016-0359-H111-Beta1
    PyDev for Eclipse	1.5.9.2010063001
    Pydev Mylyn Integration	0.3.0
    Runtime Initialization	1.1.0.v20101016-0359-H111-Beta1
    SCA Tools Feature	2.1.0.201006151053
    SCA Tools Feature - FraSCAti support	2.1.0.201006151053
    SCA Tools Feature - SAWSDL support	2.1.0.201006151053
    SCA Tools Feature - Tuscany 1.x support	2.1.0.201006151053
    SCA Tools Feature - XML Editors	2.1.0.201006151053
    Seam Tools	3.2.0.v20101016-0359-H111-Beta1
    Smooks Tools	1.1.0.v20101016-0359-H111-Beta1
    SOA Policy Editor Feature	1.1.0.201006151053
    SOA Tools Platform	2.1.0.201006151053
    soapUI Feature	3.6.1
    Source for ECF 3.3 Patch for Eclipse 3.5.X	3.3.0.v20100615-1452
    Source for Eclipse Communication Framework Target Components	3.3.0.v20100615-1452
    Spring IDE Core (required)	2.3.2.201003220227-RELEASE
    Spring IDE Integration, Flex and Web Services Extension (optional)	2.3.2.201003220227-RELEASE
    Spring IDE Mylyn Integration (optional)	2.3.2.201003220227-RELEASE
    Spring IDE OSGi Extension (optional)	2.3.2.201003220227-RELEASE
    Spring IDE Security Extension (optional)	2.3.2.201003220227-RELEASE
    Spring IDE Web Flow Extension (optional)	2.3.2.201003220227-RELEASE
    STP Intermediate Model BPMN Support Feature	1.2.0.201006151053
    STP Intermediate Model Core Feature	1.2.0.201006151053
    STP Intermediate Model Runtime Support Feature	1.2.0.201006151053
    STP Intermediate Model SCA Support Feature	1.2.0.201006151053
    STS Development Tool	2.2.3.v201005031537
    Swordfish Tooling (Incubation)	0.9.2.v201002111330
    WTP Decorators	2.0.1
Comment 5 Olivier Thomann CLA 2010-12-06 15:12:06 EST
Ayushman, please move it to the appropriate component.
Comment 6 Ayushman Jain CLA 2010-12-07 03:24:54 EST
In this particular case of the save action, it seems like the progress dialog may be the cause for the hang. Moving to JDT/UI for comment. 

Also, Kyle, it will be helpful if you could provide a heap dump from another scenario where you found Eclipse hung.
Comment 7 Dani Megert CLA 2010-12-07 03:32:23 EST
The stack trace does indicate a blocked UI thread. Also, it's not related to the scenario listed in comment 0.

Can you please attach more stack dumps when it hangs again and then reopen the bug? Currently there's nothing we can do without more details (steps;dumps).
Comment 8 Thorsten Möller CLA 2011-01-06 11:25:46 EST
I'm experiencing the same problem with Eclipse Helios EE Service Release 1. Sometimes it occurs every second or third save using CTRL+S, which is really annoying. For me, deactivating Java -> Editor -> Save Actions -> Additional actions helps.
Comment 9 Dani Megert CLA 2011-01-06 11:30:33 EST
(In reply to comment #8)
> I'm experiencing the same problem with Eclipse Helios EE Service Release 1.
> Sometimes it occurs every second or third save using CTRL+S, which is really
> annoying. For me, deactivating Java -> Editor -> Save Actions -> Additional
> actions helps.

Please file a separate bug report with stack traces that show us where the time is spent.