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 246796 - OOME caused by parsing of YAML file
Summary: OOME caused by parsing of YAML file
Status: RESOLVED DUPLICATE of bug 246124
Alias: None
Product: web
Classification: Unclassified
Component: YAML (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-01 08:02 UTC by aquaglia
Modified: 2015-03-16 09:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NB Log file (244.92 KB, text/plain)
2014-09-02 09:12 UTC, aquaglia
Details
uigestures (26.47 KB, application/octet-stream)
2014-09-02 09:14 UTC, aquaglia
Details
AfterRestartExceptions (11.61 KB, application/octet-stream)
2014-09-02 09:14 UTC, aquaglia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aquaglia 2014-09-01 08:02:35 UTC
Product Version: NetBeans IDE 8.0.1 (Build 201408142300)
Java: 1.8.0_20-ea; Java HotSpot(TM) 64-Bit Server VM 25.20-b22
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-ea-b23
System: Windows 7 version 6.1 running on amd64; Cp1252; en_GB (nb)
User directory: C:\Users\quaglan\AppData\Roaming\NetBeans\8.0.1
Cache directory: C:\Users\quaglan\AppData\Local\NetBeans\Cache\8.0.1



java.lang.OutOfMemoryError: Java heap space
	at org.jruby.util.ByteList.grow(ByteList.java:635)
	at org.jruby.util.ByteList.append(ByteList.java:248)
	at org.jvyamlb.ScannerImpl.scanTagUri(ScannerImpl.java:860)
	at org.jvyamlb.ScannerImpl.scanTag(ScannerImpl.java:819)
	at org.jvyamlb.ScannerImpl.fetchTag(ScannerImpl.java:787)
	at org.jvyamlb.ScannerImpl.fetchMoreTokens(ScannerImpl.java:560)
	at org.jvyamlb.ScannerImpl.peekToken(ScannerImpl.java:440)
	at org.jvyamlb.ScannerImpl.peekToken(ScannerImpl.java:446)
	at org.jvyamlb.ParserImpl$ProductionEnvironment.produce(ParserImpl.java:302)
	at org.jvyamlb.PositioningParserImpl$PositioningProductionEnvironment.produce(PositioningParserImpl.java:143)
	at org.jvyamlb.ParserImpl.parseStreamNext(ParserImpl.java:834)
	at org.jvyamlb.ParserImpl.peekEvent(ParserImpl.java:781)
	at org.jvyamlb.ComposerImpl.composeNode(ComposerImpl.java:111)
	at org.jvyamlb.ComposerImpl.composeDocument(ComposerImpl.java:78)
	at org.jvyamlb.ComposerImpl.getNode(ComposerImpl.java:54)
	at org.jvyamlb.ComposerImpl$NodeIterator.next(ComposerImpl.java:59)
	at org.netbeans.modules.languages.yaml.YamlParser.parse(YamlParser.java:232)
	at org.netbeans.modules.languages.yaml.YamlParser.parse(YamlParser.java:348)
	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.parsing.impl.indexing.RepositoryUpdater$Work$2.run(RepositoryUpdater.java:3038)
	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)
Comment 1 aquaglia 2014-09-01 08:34:24 UTC
I have quite a few Java/Java Web/JavaFX 2 projects opened but it seems to be happening while scanning an HTML 5 project with Grunt and Bower support.
Comment 2 Tomas Hurka 2014-09-01 13:03:39 UTC
Please attach the messages.log file and upload heap dump to http://deadlock.netbeans.org/job/upload/build?delay=0sec
Comment 3 aquaglia 2014-09-02 09:12:39 UTC
Created attachment 148991 [details]
NB Log file
Comment 4 aquaglia 2014-09-02 09:14:18 UTC
Created attachment 148992 [details]
uigestures
Comment 5 aquaglia 2014-09-02 09:14:35 UTC
Created attachment 148993 [details]
AfterRestartExceptions
Comment 6 aquaglia 2014-09-02 09:21:16 UTC
Uploading (slowly) application-1409649345427.apps
Comment 7 aquaglia 2014-09-03 11:51:03 UTC
If I close the HTML5/Angular/Bower/Node.js project I do not get the heap space exception any more.
Comment 8 Tomas Hurka 2014-09-04 08:44:49 UTC
(In reply to aquaglia from comment #6)
> Uploading (slowly) application-1409649345427.apps
Did this upload finished? I don't see it there.
Comment 9 aquaglia 2014-09-04 10:01:18 UTC
The upload did not work so I have just put it on dropbox:

https://dl.dropboxusercontent.com/u/4422938/nbbug246796/heapdump-1409649323856.zip
Comment 10 Tomas Hurka 2014-09-04 11:39:39 UTC
(In reply to aquaglia from comment #9)
> The upload did not work so I have just put it on dropbox:
> 
> https://dl.dropboxusercontent.com/u/4422938/nbbug246796/heapdump-
> 1409649323856.zip
Thanks for the heap dump, but this is not the heap dump from "java.lang.OutOfMemoryError: Java heap space" you mentioned in description. This heap dump should be in "C:\Users\quaglan\AppData\Roaming\NetBeans\8.0.1\var\log\heapdump.hprof.old" file on your disk. In normal circumstances it should be detected and reported as exception report after IDE restart. If this OOME was not reported automatically, please zip and upload above heap dump. Thanks.
Comment 11 aquaglia 2014-09-05 07:30:24 UTC
NB automatic uploading was horribly slow and probably it failed but NB did not notify me.

I indeed found a file called heapdump_submitted.hprof 
I have zipped it and made it available on dropbox:
https://dl.dropboxusercontent.com/u/4422938/nbbug246796/heapdump.hprof_submitted.zip
Comment 12 Tomas Hurka 2014-09-05 13:54:14 UTC
(In reply to aquaglia from comment #11)
> I indeed found a file called heapdump_submitted.hprof 
> I have zipped it and made it available on dropbox:
> https://dl.dropboxusercontent.com/u/4422938/nbbug246796/heapdump.
> hprof_submitted.zip
Thanks. This is the right heap dump. OOME is caused by huge byte[]#95346. It has 630 millions elements. This byte array is part of org.jruby.util.ByteList#3. All this is caused by parsing yaml file (node_modules/karma-coverage/node_modules/istanbul/node_modules/js-yaml/test/samples-load-errors/invalid-uri-escapes-1.yml). Reassigning to web/yaml for further investigation.
Comment 13 Petr Pisl 2015-03-16 09:09:31 UTC

*** This bug has been marked as a duplicate of bug 246124 ***