Bug 561191

Summary: Working set manager can hang UI removing many working sets
Product: [Eclipse Project] Platform Reporter: Andrew Niefer <aniefer>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: Lars.Vogel
Version: 4.15   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:
Attachments:
Description Flags
Main thread stack trace none

Description Andrew Niefer CLA 2020-03-17 09:36:42 EDT
Created attachment 282127 [details]
Main thread stack trace

It's not clear how, but while attempting to put projects into a working set, I ended up instead with 1000 working sets (each containing 1 project).  So I now have a total of 1010 working sets.

To reproduce the hang:
1) Have 1010 working sets, each containing at least one project
2) Select Configure Working Sets...
3) Select 1000 working sets, click remove
4) The UI hangs for a long time


See attached stack trace.

It appears the that WorkingSetManager is saving working sets states one at a time, on the UI thread.
Comment 1 Lars Vogel CLA 2020-03-17 09:39:04 EDT
Andrew, could you provide a Gerrit to improve that?
Comment 2 Andrew Niefer CLA 2020-03-17 11:42:52 EDT
re comment 1, I have the green ECA check mark because of my IBM email, but I'm actually a contractor to IBM on a particular product. Its not clear that I have permission from my employer to contribute code, I'll have to bug management (again) to try and clarify this.