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 249156

Summary: editor freezes when .scss file is open -> java.lang.OutOfMemoryError is thrown
Product: web Reporter: sebastianriemer
Component: CSS Preprocessors (SASS, LESS, ...)Assignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal CC: tmysik
Priority: P3    
Version: 8.0.1   
Hardware: PC   
OS: Windows 8 x64   
Issue Type: DEFECT Exception Reporter:
Attachments: messages.log, original scss file which causes the exception when open in IDE

Description sebastianriemer 2014-12-05 17:57:46 UTC
Created attachment 150923 [details]
messages.log, original scss file which causes the exception when open in IDE

Having a 150KB big .scss file open in the editor, the IDE freezes and becomes unresponsive;

I have set "Compile SASS Files on Save" to true.

This freezing happens very often, which makes me never open .scss files in netbeans at all (and instead, edit them with Notepad++)


Here is the StackTrace:
java.lang.OutOfMemoryError: GC overhead limit exceeded
	at org.antlr.runtime.tree.BaseTree.createChildrenList(BaseTree.java:244)
	at org.antlr.runtime.tree.BaseTree.addChild(BaseTree.java:122)
	at org.netbeans.modules.css.lib.NbParseTreeBuilder.addNodeChild(NbParseTreeBuilder.java:488)
	at org.netbeans.modules.css.lib.NbParseTreeBuilder.enterRule(NbParseTreeBuilder.java:128)
	at org.netbeans.modules.css.lib.Css3Parser.typeSelector(Css3Parser.java:9591)
	at org.netbeans.modules.css.lib.Css3Parser.simpleSelectorSequence(Css3Parser.java:9343)
	at org.netbeans.modules.css.lib.Css3Parser.selector(Css3Parser.java:9210)
	at org.netbeans.modules.css.lib.Css3Parser.selectorsGroup(Css3Parser.java:8814)
	at org.netbeans.modules.css.lib.Css3Parser.rule(Css3Parser.java:7927)
	at org.netbeans.modules.css.lib.Css3Parser.mediaBodyItem(Css3Parser.java:2760)
	at org.netbeans.modules.css.lib.Css3Parser.mediaBody(Css3Parser.java:2234)
	at org.netbeans.modules.css.lib.Css3Parser.media(Css3Parser.java:2147)
	at org.netbeans.modules.css.lib.Css3Parser.at_rule(Css3Parser.java:4620)
	at org.netbeans.modules.css.lib.Css3Parser.bodyItem(Css3Parser.java:4452)
	at org.netbeans.modules.css.lib.Css3Parser.body(Css3Parser.java:4133)
	at org.netbeans.modules.css.lib.Css3Parser.styleSheet(Css3Parser.java:691)
	at org.netbeans.modules.css.lib.nbparser.CssParser.parse(CssParser.java:127)
	at org.netbeans.modules.parsing.impl.TaskProcessor.callParse(TaskProcessor.java:610)
	at org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:245)
	at org.netbeans.modules.parsing.api.ResultIterator.getParserResult(ResultIterator.java:138)
	at org.netbeans.modules.css.indexing.CssFileModel$1.run(CssFileModel.java:97)
	at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:598)
	at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:155)
	at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:139)
	at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:206)
	at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:203)
	at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:176)
	at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:360)
	at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:74)
	at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:203)
	at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:106)
	at org.netbeans.modules.css.indexing.CssFileModel.create(CssFileModel.java:91)


I've attached the messages.log as well as the original .scss file which caused trouble.

I am happy to provide any additional information if required.

Thank you and best regards,
Sebastian
Comment 1 Vladimir Riha 2014-12-07 09:59:10 UTC
Could you please look for heap dump? (see [1]) Compress the heap dump and upload it as described in [1]. Thank you



[1] http://wiki.netbeans.org/FaqMemoryDump
Comment 2 sebastianriemer 2014-12-09 08:07:31 UTC
I've uploaded the heap dump file to this location as described in the linked manual (uploader = "Sebastian Riemer", nr. = 552)

http://deadlock.netbeans.org/job/upload/552/

Please let me know if the upload works for you, as I only found a single heap file titled "heapdump.hprof.old" on my disc.

Best regards and thank you for looking into it,

Sebastian