This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 211412 - Hung scan
Summary: Hung scan
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.2
Hardware: All All
: P2 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-18 19:44 UTC by Jesse Glick
Modified: 2012-04-19 10:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 187145


Attachments
stacktrace (7.84 KB, text/plain)
2012-04-18 19:45 UTC, Jesse Glick
Details
Self-sampler (12.83 KB, application/octet-stream)
2012-04-18 19:51 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2012-04-18 19:44:57 UTC
Build: NetBeans IDE Dev (Build 20120418-1aa84211abae)
VM: Java HotSpot(TM) Client VM, 20.6-b01, Java(TM) SE Runtime Environment, 1.6.0_31-b04
OS: Linux

User Comments:
jglick: Scanning hung in openide.util.lookup/src with 100% CPU after adding a couple basic deps to an NBM project in a suite. Shut down and restarted the IDE and it hung in the same place again.




Stacktrace: 
java.lang.IllegalStateException: getInputStream invoked in AWT
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.getInputStream(FileObj.java:163)
   at org.netbeans.modules.apisupport.project.api.Util.getManifest(Util.java:161)
   at org.netbeans.modules.apisupport.project.NbModuleProject.getManifest(NbModuleProject.java:413)
   at org.netbeans.modules.apisupport.project.NbModuleProject.getSpecVersion(NbModuleProject.java:500)
   at org.netbeans.modules.apisupport.project.universe.AbstractEntryWithSources.getSpecificationVersion(AbstractEntryWithSources.java:167)
   at org.netbeans.modules.apisupport.project.universe.NbPlatform.getDefaultJavadocRoots(NbPlatform.java:597)
Comment 1 Jesse Glick 2012-04-18 19:45:02 UTC
Created attachment 118470 [details]
stacktrace
Comment 2 Jesse Glick 2012-04-18 19:47:53 UTC
(In reply to comment #0)
> Stacktrace: 

Ignore this.

Seems reproducible to me in e75fdc1d8219 sources: happened again even after deleting var/cache/index/ and restarting.

            <module-dependencies>
                <dependency>
                    <code-name-base>org.netbeans.api.java.classpath</code-name-base>
                    <build-prerequisite/>
                    <compile-dependency/>
                    <run-dependency>
                        <release-version>1</release-version>
                        <specification-version>1.32</specification-version>
                    </run-dependency>
                </dependency>
                <dependency>
                    <code-name-base>org.openide.actions</code-name-base>
                    <build-prerequisite/>
                    <compile-dependency/>
                    <run-dependency>
                        <specification-version>6.25</specification-version>
                    </run-dependency>
                </dependency>
            </module-dependencies>
Comment 3 Jesse Glick 2012-04-18 19:51:21 UTC
Created attachment 118471 [details]
Self-sampler
Comment 4 Jesse Glick 2012-04-18 19:55:28 UTC
Makes IDE unusable.
Comment 5 Jesse Glick 2012-04-18 20:13:49 UTC
I think fixed by 1ac0accbceed.
Comment 6 Tomas Zezula 2012-04-19 07:42:28 UTC
Yes, Marek already fixed it.
Comment 7 Marek Fukala 2012-04-19 10:00:39 UTC
I found the problem almost instantly after pushing the problematic changeset, created a fix but accidentally forgot to commit (ElementsParser change). The change was  then joined to the "Iterating html elements: Using SoftReference instead of WeakReference in the cache - the weakly cached blocks were ofter GCed even during one iteration cycle" change and unfortunately pushed next morning. I'm sorry.

So do not worry it wasn't fixed by changing the reference type :-)