Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327624 - [context] activating a task hangs Eclipse
Summary: [context] activating a task hangs Eclipse
Status: RESOLVED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Mylyn Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-12 23:01 EDT by David E. Narvaez CLA
Modified: 2010-10-17 15:24 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David E. Narvaez CLA 2010-10-12 23:01:57 EDT
Build Identifier: M20100909-0800

I'm not sure if this is a problem with the Trac component or if it's general, but I have a list of tasks from a Trac repository and when I right-click on the task and try to activate it, the circle besides the name of the task goes purple but then the IDE freezes. The cursor displayed indicates there's something going on in the background but other than that there's no more information.

Reproducible: Always

Steps to Reproduce:
1. Right click on a Trac task
2. Activate the task
Comment 1 Steffen Pingel CLA 2010-10-15 14:27:46 EDT
Can you reproduce the same with local tasks? Does that happen for all tasks or specific tasks? 

Would you be able to capture a thread dump when Eclipse hangs? It would help us to diagnose the problem further: http://wiki.eclipse.org/Mylyn_Contributor_Reference#Debugging
Comment 2 David E. Narvaez CLA 2010-10-16 11:01:14 EDT
(In reply to comment #1)
> Can you reproduce the same with local tasks? Does that happen for all tasks or
> specific tasks? 
> 
> Would you be able to capture a thread dump when Eclipse hangs? It would help us
> to diagnose the problem further:
> http://wiki.eclipse.org/Mylyn_Contributor_Reference#Debugging

Well, I was kind of in a rush when I reported it first so I wasn't able to do further testing, sorry for that.

It seems like it's hanging in one particular task, I can't tell why is that task different from the others, but by grabbing a thread dump during the time it is hung, most of the stack trace is this:

at org.eclipse.jface.viewers.AbstractTreeViewer.internalExpandToLevel(AbstractTreeViewer.java:1724)

repeated lots of times.

I'll keep trying some other stuff. Thanks!
Comment 3 Steffen Pingel CLA 2010-10-16 14:42:37 EDT
> at
> org.eclipse.jface.viewers.AbstractTreeViewer.internalExpandToLevel(AbstractTreeViewer.java:1724)

Would you be able to attach the full trace? I would be curious which viewer is causing this. 

To recover you can clear the context for that task using the popup menu in the task list. It sounds like it might have a large context with many files. 

If you are able to it would also be helpful if you could share that particular context with us for further analysis.
Comment 4 David E. Narvaez CLA 2010-10-17 00:43:37 EDT
(In reply to comment #3)
> > at
> > org.eclipse.jface.viewers.AbstractTreeViewer.internalExpandToLevel(AbstractTreeViewer.java:1724)
> 
> Would you be able to attach the full trace? I would be curious which viewer is
> causing this. 

Well, while trying that and other stuff the problem suddenly went away. I can't tell what the original problem was, neither can I tell what fixed it. I think this could be closed then, since I cannot provide enough information to work on it (can I do that or should it be done by a developer?).

Thanks for the help, anyways.
Comment 5 Steffen Pingel CLA 2010-10-17 15:24:35 EDT
Thanks. I'll mark it as resolved then. Please feel free to reopen if the problem re-occurs and attach a stack trace which will enable us to investigate further.