Bug 50088 - Switching to package explorer got blocked by background operation
Summary: Switching to package explorer got blocked by background operation
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M8   Edit
Assignee: Platform Team Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2004-01-15 12:55 EST by Dirk Baeumer CLA
Modified: 2004-03-22 21:58 EST (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 Dirk Baeumer CLA 2004-01-15 12:55:58 EST
200401060800

- started an existing workspace
- had the synchronized view stacked over the package explorer
- clicked on the package explorer tab

- got blocked for about 3 minutes. The back ground thread was refreshing the 
  sync info.
Comment 1 Michael Valenta CLA 2004-01-15 13:50:20 EST
Is this reproducable for you? I can switch back and forth between the two 
views during a refresh with no delay. Possible causes of the block would be 
either that the packages view obtains a scheduling rule on resources that are 
being refreshed (i.e. obtains the workspace lock) or that the sync view is 
redrawing at the time of the blockage. The later is more likely. Did you have 
a large number of incoming or conflicting changes?
Comment 2 Dirk Baeumer CLA 2004-01-16 07:03:59 EST
I tried to reproduce but was able to do so today.

Just to clarify: the message I saw in the status line during the blockage was 
something like "Updating synchronization state...". I didn't trigger a team 
action.
Comment 3 Michael Valenta CLA 2004-01-16 09:53:23 EST
There are several problems here:

- the major problem is that the wizard does not fork its modal context. 
Therefore, it is run in the UI thread but the job mechanism doesn't show the 
blocked dialog because it looks for a particular type of progress monitor (and 
the wizard uses a different type of progress monitor).

- another problem is that the JDT UI operations locks the entire workspace. 
Even if the above is fixed, the user would have to wait until all resource 
scheduling rules are released before it could run. The operation would be more 
responsive if only the resource (or at least project) involved were locked.

Asigning to UI and copying John as the biggest issue is the problem of a 
wizard's modal context running in the main thread.
Comment 4 Dirk Baeumer CLA 2004-01-16 09:56:40 EST
Michael,

did you annotate the correct PR here ?
Comment 5 Michael Valenta CLA 2004-01-16 10:10:42 EST
Oops
Comment 6 Michael Valenta CLA 2004-03-22 21:58:25 EST
I have not been able to reproduce this. We have done a lot of optimizations to 
the model building code of the sync view so perhaps that has helped.