Bug 337194 - Initializing PHP Tooling blocked at 12% (DLTK related apparently)
Summary: Initializing PHP Tooling blocked at 12% (DLTK related apparently)
Status: RESOLVED FIXED
Alias: None
Product: DLTK
Classification: Technology
Component: Common (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: 2.0.1   Edit
Assignee: dltk.common-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-15 05:23 EST by theodore.bluche CLA
Modified: 2015-10-04 07:20 EDT (History)
8 users (show)

See Also:


Attachments
Test file for reproducing problem with navigating inside a comment (6.01 KB, application/octet-stream)
2012-03-22 20:44 EDT, Mike M. CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description theodore.bluche CLA 2011-02-15 05:23:16 EST
When I run Eclipse, it keeps telling me that PHP Tooling is initializing, apparently due to some problem with DLTK. So I can't use autocompletion and F3 key anymore, because my project never gets indexed

What steps will reproduce the problem?
1. Launch Eclipse Helios with PDT


-- Error Details --
Date: Tue Feb 15 11:04:21 CET 2011
Message: 
Severity: Error
Product: Eclipse 1.3.1.20100913-1228 (org.eclipse.epp.package.java.product)
Plugin: org.eclipse.dltk.core.index.sql.h2
Session Data:
eclipse.buildId=M20100909-0800
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product


Exception Stack Trace:
org.osgi.framework.BundleException: State change in progress for bundle "reference:file:plugins/org.eclipse.dltk.core.index.sql.h2_2.0.1.v20100909-1720.jar" by thread "DLTK indexing".
at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1077)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:548)
at org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1097)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:597)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:257)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:215)
at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.suspend(InternalSystemBundle.java:266)
at org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:690)
at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:588)
at org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown(EclipseStarter.java:415)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:198)
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:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Caused by: org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException
... 18 more
Root exception:
org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException
at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1077)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:548)
at org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1097)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:597)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:257)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:215)
at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.suspend(InternalSystemBundle.java:266)
at org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:690)
at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:588)
at org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown(EclipseStarter.java:415)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:198)
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:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)


What steps will reproduce the problem?
1. 
2. 
3. 


-- Error Details --
Date: Tue Feb 15 11:04:21 CET 2011
Message: 
Severity: Error
Product: Eclipse 1.3.1.20100913-1228 (org.eclipse.epp.package.java.product)
Plugin: org.eclipse.dltk.core.index.sql.h2
Session Data:
eclipse.buildId=M20100909-0800
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product


Exception Stack Trace:
org.osgi.framework.BundleException: State change in progress for bundle "reference:file:plugins/org.eclipse.dltk.core.index.sql.h2_2.0.1.v20100909-1720.jar" by thread "DLTK indexing".
at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1077)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:548)
at org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1097)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:597)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:257)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:215)
at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.suspend(InternalSystemBundle.java:266)
at org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:690)
at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:588)
at org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown(EclipseStarter.java:415)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:198)
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:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Caused by: org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException
... 18 more
Root exception:
org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException
at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1077)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:548)
at org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1097)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:597)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:257)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:215)
at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.suspend(InternalSystemBundle.java:266)
at org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:690)
at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:588)
at org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown(EclipseStarter.java:415)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:198)
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:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Comment 1 Kentarou Fukuda CLA 2011-02-28 10:04:18 EST
It seems report for DLTK.
Comment 2 mdiamond CLA 2011-12-08 12:58:19 EST
I'm experiencing the exact same bug: PHP Tooling stuck at 12%. Does anyone have a fix for this? I tried "eclipse -clean" to no avail...
Comment 3 Wirone CLA 2012-03-21 06:14:32 EDT
Same issue here (Indigo Service Release 2), I think problem started after computer suddenly shut down with opened Eclipse (with opened projects and so on..).

I have re-installed PDT but it didn't help.

Is there any solution for this?
Comment 4 Mike M. CLA 2012-03-22 19:00:48 EDT
I'm seeing this same problem under the same circumstances as Wirone.  I'm using eclipse:

Version: Indigo Service Release 2
Build id: 20120216-1857

Sometimes when I open a php file it hangs at 12%. Other times it opens the file and as soon as I click in the editor it hangs.
Comment 5 Andrey Sobolev CLA 2012-03-22 19:27:08 EDT
Hi,

Exception in stack trace is not related to issue, actually.

To understand what is happen could you please use jstack java application to capture full stack trace of hanged Eclipse with DLTK and PDT.

Also you could try to delete all DLTK and PDE files from workspace metadata.
Please go into workspace/.metadata/.plugins - and remove all org.eclipse.dltk and org.eclipse.pdt folders. This also clear all DLTK and PDT related configuration files, but they will be recreated on restart.

If clearing is not help could you please attach stack trace produced by jstack.
Thanks.
Comment 6 Mike M. CLA 2012-03-22 20:43:29 EDT
I've narrowed this down somewhat further on my machine.  It appears to now hang inside a large comment.  I'm attaching a file that I'm able to repro this with.
Comment 7 Mike M. CLA 2012-03-22 20:44:19 EDT
Created attachment 213085 [details]
Test file for reproducing problem with navigating inside a comment
Comment 8 Marcin Wolny CLA 2012-05-08 04:35:39 EDT
Deleting org.exlipse.dltk files as suggested by Andrei Sobolev fixed the issue for me.
Thank You!
Although I would love to see bug fixed as it happen about 5th time already within last 2 months. Each time I had to re-install eclipse to get rid of it.
Comment 9 Dawid Pakula CLA 2015-10-04 07:20:49 EDT
This bug has been fixed. 

DLTK no longer load H2 index into memory during startup, so initializing process is always short. It also drop database if it's broken.