Community
Participate
Working Groups
I20110522-2200 (4.1). When I start Eclipse with -debug I get this in the console: Time to load bundles: 203 Starting application: 33751 Application Started: 43470 Application Started: 52439 This looks fishy: is the application is started twice?
(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.