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.
I just did the following: 1) Create a Foundation SASS project with the following command suggested in documentation: http://foundation.zurb.com/docs/sass.html foundation new PROJECT_NAME --libsass 2) In Netbeans create a new "HTML5 Application from existing sources" and point it to the folder created by 1) Project starts opening occupying all cpus at 100% and filling memory. Netbeans is no longer responding. I repeated the steps even in a new Project Group without any other project.
Created attachment 147287 [details] JVM crash log Reproducible in NetBeans 8.0, in my case JVM crashed. From the heap dump I think this is related to CSS/SCSS. I uploaded heap dump to deadlock.
can you please Vlado attach here the generated project so I do not have to bother with the setup?
Sure, will do asap
Here it is, use File->Download to download entire zip archive https://drive.google.com/file/d/0B6Sd5ov8j7IUaVU5a1JLUkZLa0k/edit?usp=sharing
Thank you Vlado!
The endless project scanning is caused by javascript2.editor module. Following code seems to run endlessly: "RepositoryUpdater.worker" #27 daemon prio=1 os_prio=31 tid=0x00007fff06287800 nid=0xfa03 runnable [0x000000012573c000] java.lang.Thread.State: RUNNABLE at org.netbeans.api.lexer.TokenSequence.isInvalid(TokenSequence.java:820) at org.netbeans.api.lexer.TokenSequence.checkValid(TokenSequence.java:804) at org.netbeans.api.lexer.TokenSequence.movePrevious(TokenSequence.java:532) - locked <0x00000007af725ab8> (a org.netbeans.lib.lexer.BatchTokenList) at org.netbeans.modules.javascript2.editor.doc.spi.JsDocumentationHolder.getEndOffsetOfAssociatedComment(JsDocumentationHolder.java:258) at org.netbeans.modules.javascript2.editor.doc.spi.JsDocumentationHolder.getCommentForOffset(JsDocumentationHolder.java:234) at org.netbeans.modules.javascript2.editor.doc.spi.JsDocumentationHolder.getDocumentation(JsDocumentationHolder.java:155) at org.netbeans.modules.javascript2.editor.model.impl.ModelElementFactory.create(ModelElementFactory.java:292) at org.netbeans.modules.javascript2.editor.model.impl.ModelVisitor.enter(ModelVisitor.java:1125) at jdk.nashorn.internal.ir.PropertyNode.accept(PropertyNode.java:91) at jdk.nashorn.internal.ir.ObjectNode.accept(ObjectNode.java:88) at jdk.nashorn.internal.ir.BinaryNode.accept(BinaryNode.java:178) at jdk.nashorn.internal.ir.ExecuteNode.accept(ExecuteNode.java:89) at org.netbeans.modules.javascript2.editor.model.impl.ModelVisitor.enter(ModelVisitor.java:755) at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:291) at org.netbeans.modules.javascript2.editor.model.Model.getModelVisitor(Model.java:156) - locked <0x00000007af723948> (a org.netbeans.modules.javascript2.editor.model.Model) at org.netbeans.modules.javascript2.editor.model.Model.getGlobalObject(Model.java:458) at org.netbeans.modules.javascript2.editor.index.JsIndexer.index(JsIndexer.java:105) at org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor$3.run(Indexable.java:248) at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runIndexer(RepositoryUpdater.java:283)
I have tried the project and the scanning was finished after 168 seconds. Vlado, are you able to reproduce the endless scanning?
As I wrote: "it seems to run endlessly". Haven't tried more than few minutes.
I'll give it a try later today but I was getting OOM when I tried it.
I can reproduce the OOM in 8.0, but not in Dev, it takes 2-3 minutes but scanning does finish. Do you want the heap dump or IDE log?
Please attach the heap dump.
Heap dump and IDE logs are in this archive https://drive.google.com/file/d/0B6Sd5ov8j7IUSXBGdHdxQ1hkLUU/edit?usp=sharing
In the attached heap dump there are almost 6 millions instances of org.netbeans.modules.css.lib.TokenNode and the same amount of org.antlr.runtime.CommonToken. Marek did a few fixes and it can be the reason why we can not reproduce it now. Closing as fixed.