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 - editor freezes when .scss file is open -> java.lang.OutOfMemoryError is thrown
Summary: editor freezes when .scss file is open -> java.lang.OutOfMemoryError is thrown
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: CSS Preprocessors (SASS, LESS, ...) (show other bugs)
Version: 8.0.1
Hardware: PC Windows 8 x64
: P3 normal (vote)
Assignee: Milutin Kristofic
Depends on:
Reported: 2014-12-05 17:57 UTC by sebastianriemer
Modified: 2014-12-09 08:07 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

messages.log, original scss file which causes the exception when open in IDE (35.19 KB, application/x-zip-compressed)
2014-12-05 17:57 UTC, sebastianriemer

Note You need to log in before you can comment on or make changes to this bug.
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(
	at org.antlr.runtime.tree.BaseTree.addChild(
	at org.netbeans.modules.css.lib.NbParseTreeBuilder.addNodeChild(
	at org.netbeans.modules.css.lib.NbParseTreeBuilder.enterRule(
	at org.netbeans.modules.css.lib.Css3Parser.typeSelector(
	at org.netbeans.modules.css.lib.Css3Parser.simpleSelectorSequence(
	at org.netbeans.modules.css.lib.Css3Parser.selector(
	at org.netbeans.modules.css.lib.Css3Parser.selectorsGroup(
	at org.netbeans.modules.css.lib.Css3Parser.rule(
	at org.netbeans.modules.css.lib.Css3Parser.mediaBodyItem(
	at org.netbeans.modules.css.lib.Css3Parser.mediaBody(
	at org.netbeans.modules.css.lib.Css3Parser.at_rule(
	at org.netbeans.modules.css.lib.Css3Parser.bodyItem(
	at org.netbeans.modules.css.lib.Css3Parser.body(
	at org.netbeans.modules.css.lib.Css3Parser.styleSheet(
	at org.netbeans.modules.css.lib.nbparser.CssParser.parse(
	at org.netbeans.modules.parsing.impl.TaskProcessor.callParse(
	at org.netbeans.modules.parsing.impl.SourceCache.getResult(
	at org.netbeans.modules.parsing.api.ResultIterator.getParserResult(
	at org.netbeans.modules.css.indexing.CssFileModel$
	at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(
	at org.netbeans.modules.parsing.api.ParserManager$
	at org.netbeans.modules.parsing.api.ParserManager$
	at org.netbeans.modules.parsing.impl.TaskProcessor$
	at org.netbeans.modules.parsing.impl.TaskProcessor$
	at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(
	at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(
	at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(
	at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(
	at org.netbeans.modules.parsing.api.ParserManager.parse(
	at org.netbeans.modules.css.indexing.CssFileModel.create(

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,
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

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)

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,