Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318667 - Time outs while loading 'org.eclipse.jdt.ui' bundle
Summary: Time outs while loading 'org.eclipse.jdt.ui' bundle
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 391117 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-07-02 03:52 EDT by Simon Goodall CLA
Modified: 2012-10-04 11:53 EDT (History)
3 users (show)

See Also:


Attachments
Error log from an Eclipse 3.6 installation (243.81 KB, text/plain)
2010-09-22 11:48 EDT, Simon Goodall CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Goodall CLA 2010-07-02 03:52:30 EDT
Build Identifier: 20100218-1602

When I started my eclipse (3.5.2 based) today, the package explorer did not open properly.

Instead it shows;

org.eclipse.core.runtime.AssertionFailedException: null argument:
	at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
	at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
	at org.eclipse.jdt.internal.ui.workingsets.WorkingSetModel.<init>(WorkingSetModel.java:247)
	at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$9.handleException(PackageExplorerPart.java:1446)
	at org.eclipse.core.runtime.SafeRunner.handleException(SafeRunner.java:75)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:44)
	at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart.createWorkingSetModel(PackageExplorerPart.java:1441)
	at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart.init(PackageExplorerPart.java:388)
	at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:340)
	at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:226)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
	at org.eclipse.ui.internal.WorkbenchPage$ActivationList.setActive(WorkbenchPage.java:4212)
	at org.eclipse.ui.internal.WorkbenchPage$18.runWithException(WorkbenchPage.java:3271)
	at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3885)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3506)
	at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
	at org.eclipse.ui.internal.Workbench$28.runWithException(Workbench.java:1384)
	at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3885)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3506)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2316)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1311)



Closing and re-opening the view gave me a working view.
Restarting eclipse after this also gave me a working view

Reproducible: Couldn't Reproduce
Comment 1 Prakash Rangaraj CLA 2010-07-29 05:13:55 EDT
Moving to JDT UI
Comment 2 Dani Megert CLA 2010-07-29 05:30:21 EDT
Can you please attach the full .log?

Markus, it fails on the fallback code you added a while back, see bug 173031.
Comment 3 Simon Goodall CLA 2010-07-29 07:29:18 EDT
Unfortunately the log file has long since gone.
Comment 4 Markus Keller CLA 2010-07-29 12:18:54 EDT
I couldn't reproduce this, and I don't see how it could happen. I manually screwed the stored memento, but that only gave me the expected exception when restore failed, and the fallback worked properly.

> Markus, it fails on the fallback code you added a while back, see bug 173031.

Bug 173031 cleaned up that code, but the exception handling and fallback code didn't really change.

Closing for now, please reopen if you see this again.
Comment 5 Simon Goodall CLA 2010-09-22 11:48:09 EDT
Created attachment 179388 [details]
Error log from an Eclipse 3.6 installation

Today I've come across the same error on an eclipse 3.6 install. I've attached the log file messages from today's start up.

There appear to be lots of messages along the lines of "timed out waiting (5000ms) for thread". This appears to happen regularly, where-as I've only had the view part initialisation fail twice.

I haven't used this workspace for a few days, but I believe last time I had it open, my laptop ran out of power before closing it - so there would have been an unclean shutdown.
Comment 6 Simon Goodall CLA 2010-09-22 11:50:48 EDT
Re-opening due to Comment #5
Comment 7 Dani Megert CLA 2010-09-23 03:27:58 EDT
Simon, thanks for reporting back. The problem is not in the WorkingSetModel. What we see is just a follow up exception due to forced loading and hence not fully initializing some classes. This can happen if two threads are loading the same class/bundle at the same time or if a bundle takes very long to start. The key question is which classes/threads are causing this.

Can you reproduce the problem, e.g. by killing your Eclipse and restarting? If so, please take some stack dumps while starting. This should give use more details.
Comment 8 Dani Megert CLA 2011-01-11 10:59:07 EST
We can't do much without steps to reproduce the problem.
Comment 9 Simon Goodall CLA 2011-07-14 04:20:11 EDT
Hi, just had this again - but this time I had shutdown eclipse first (rather than it crashing out). This is a indigo based install on a different machine.
Unfortunately I've not been able to reproduce this reliably so I've not been able to grab stack traces when the situation occurs.
Comment 10 Markus Keller CLA 2012-10-04 11:53:09 EDT
*** Bug 391117 has been marked as a duplicate of this bug. ***