Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 328632 - [Decorators] Thread blocks at start while adding decorations
Summary: [Decorators] Thread blocks at start while adding decorations
Status: CLOSED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6.1   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact: Oleg Besedin CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-25 12:29 EDT by Marc-André Laperle CLA
Modified: 2010-11-11 22:52 EST (History)
2 users (show)

See Also:


Attachments
stack (16.32 KB, text/plain)
2010-10-25 12:30 EDT, Marc-André Laperle CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marc-André Laperle CLA 2010-10-25 12:29:27 EDT
Build Identifier: 20100917-0705

Sometimes, when I start Eclipse, a thread will block and use all the CPU until I restart Eclipse. When this happens, I don't see decorations in the Project Explorer. I have the Perforce plug-in and CDT installed but I don't see them in the stack dump.

Reproducible: Sometimes

Steps to Reproduce:
1. Start Eclipse with resources that need decorations
2. Sometimes, thread blocks
Comment 1 Marc-André Laperle CLA 2010-10-25 12:30:18 EDT
Created attachment 181659 [details]
stack
Comment 2 Oleg Besedin CLA 2010-10-25 14:04:58 EDT
(In reply to comment #0)
> Build Identifier: 20100917-0705
> Sometimes, when I start Eclipse, a thread will block and use all the CPU until
> I restart Eclipse.

I don't see a deadlock in the attached stack. In the attachment both "main" thread and "worker-0" threads are waiting on the "worker-11" thread which is running (see references to 0x19ef3370).

So, from this stack itself it does not look like a deadlock, but probably a case of too many decorators or decorator processing taking too long. Or a resource tree for the workspace being broken and containing a cycle.

> ... I have the Perforce plug-in and CDT installed ... 

To help find the problem:

- Do you see a deadlock in other stacks? If so, can you attach one?
- Do you see this problem using a minimal workspace, something akin to "Hello World"?
- Does the problem happen with Eclipse SDK itself? if not, how about Eclipse SDK + Perforce and Eclipse SDK + CDT?

I know this is a lot of questions, but the attached stack really does not have enough information to narrow down the issue.
Comment 3 Marc-André Laperle CLA 2010-10-25 23:42:46 EDT
(In reply to comment #2)
> (In reply to comment #0)
> > Build Identifier: 20100917-0705
> > Sometimes, when I start Eclipse, a thread will block and use all the CPU until
> > I restart Eclipse.
> 
> I don't see a deadlock in the attached stack. In the attachment both "main"
> thread and "worker-0" threads are waiting on the "worker-11" thread which is
> running (see references to 0x19ef3370).

Thanks for explaining. I understand stacks better now.
 
> > ... I have the Perforce plug-in and CDT installed ... 
> I know this is a lot of questions, but the attached stack really does not have
> enough information to narrow down the issue.

I will do more testing, thanks for the suggestions. I am under the impression that either the Perforce plug-in and/or the Perforce server might be the problem. I will change this to invalid if I can confirm that.
Comment 4 Marc-André Laperle CLA 2010-11-11 22:52:47 EST
I haven't been able to reproduce the problem. I will assume it's decorator processing taking too long because of a server slow down.