| Summary: | [Compatibility] Application context is notified that the application has started twice | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] e4 | Reporter: | Dani Megert <daniel_megert> | ||||
| Component: | UI | Assignee: | Remy Suen <remy.suen> | ||||
| Status: | VERIFIED FIXED | QA Contact: | Remy Suen <remy.suen> | ||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | emoffatt, Mike_Wilson, pwebster, remy.suen | ||||
| Version: | 1.0 | ||||||
| Target Milestone: | 4.1 RC3 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Dani Megert
(In reply to comment #0) > This looks fishy: is the application is started twice? EclipseAppHandle's applicationRunning() is being called twice so there are two notifications being called to DefaultStartMonitor. Thread [main] (Suspended) DefaultStartupMonitor.applicationRunning() line: 60 EclipseAppHandle$1.run() line: 268 SafeRunner.run(ISafeRunnable) line: 42 EclipseAppHandle.applicationRunning() line: 258 InternalPlatform.endSplash() line: 154 Platform.endSplash() line: 567 Workbench.runUI() line: 2460 Workbench.access$3(Workbench) line: 2345 Workbench$3.run() line: 540 Realm.runWithDefault(Realm, Runnable) line: 332 Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 522 Thread [main] (Suspended) DefaultStartupMonitor.applicationRunning() line: 60 EclipseAppHandle$1.run() line: 268 SafeRunner.run(ISafeRunnable) line: 42 EclipseAppHandle.applicationRunning() line: 258 PartRenderingEngine$9.run() line: 919 Realm.runWithDefault(Realm, Runnable) line: 332 PartRenderingEngine.run(MApplicationElement, IEclipseContext) line: 860 E4Workbench.createAndRunUI(MApplicationElement) line: 87 Workbench$3.run() line: 542 Realm.runWithDefault(Realm, Runnable) line: 332 Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 522 We could fix the problem by just deleting the Platform.endSplash() call in Workbench's runUI() method. The method is deprecated and is supposed to be replaced by IApplicationContext's applicationRunning() method anyway and we call that method when the Eclipse 4 renderer has completed rendering the application. It would also fix bug 320021. Created attachment 196551 [details]
Workbench patch v1
Patch to remove the Platform.endSplash() call from Workbench's runUI() method.
(In reply to comment #3) > Created attachment 196551 [details] > Workbench patch v1 Patch released to CVS HEAD. Thanks for the bug report, Dani. Verified in I20110604-2201. |