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 246124 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: YAML (show other bugs)
Version: 8.0
Hardware: All All
: P1 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
: 243316 246306 246796 247450 247821 248119 250082 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-07-30 11:32 UTC by warpgiga
Modified: 2015-03-18 03:28 UTC (History)
20 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 210600


Attachments
stacktrace (2.52 KB, text/plain)
2014-07-30 11:32 UTC, warpgiga
Details
stacktrace (2.52 KB, text/plain)
2014-08-27 06:43 UTC, Tomas Mysik
Details
stacktrace (2.52 KB, text/plain)
2014-08-28 12:35 UTC, aquaglia
Details
stacktrace (2.52 KB, text/plain)
2014-08-29 13:11 UTC, aquaglia
Details
stacktrace (2.52 KB, text/plain)
2014-08-29 13:44 UTC, aquaglia
Details
stacktrace (2.52 KB, text/plain)
2014-09-09 08:41 UTC, Tomas Mysik
Details
stacktrace (2.52 KB, text/plain)
2014-09-09 14:02 UTC, Tomas Mysik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description warpgiga 2014-07-30 11:32:04 UTC
Build: NetBeans IDE 8.0 (Build 201403101706)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.55-b03, Java(TM) SE Runtime Environment, 1.7.0_55-b13
OS: Mac OS X

User Comments:
GUEST: debugging with xdebug

GUEST: while debugging

GUEST: I dont know

GUEST: Just debugging

GUEST: Can't remember; sorry. I was working on an HTML 5 project with only one JS file, a Crafty game generated using Yeoman, which was also running in the background.

GUEST: I'm starting netbeans ide.

GUEST: NetBeans just crashed.

GUEST: Netbeans suck

GUEST: dno

GUEST: abrindo o netbeans

GUEST: turn on ide

GUEST: just regular usage

GUEST: t crashed

GUEST: Debugging

GUEST: background scanning of js files

GUEST: I dont know

GUEST: Java Sucks

GUEST: test

GUEST: <Please provide a description of the problem or the steps to reproduce

GUEST: massive impact on file-read file write activity on harddrive on a 1gb big project (wordpress, lots of photo files). after adding upload folders to ignore path this error stopped occuring. 

computer needed hard reboot, unresponsive

warpgiga: app hanging

GUEST: opened a big minified and concatenated javascript file

GUEST: Deleted and recloned git repository.

GUEST: Turning on

GUEST: I send this report because it appears everytime on launch netbeans

GUEST: Opened my Netbeans for development

GUEST: <Please provide a description of the problem or the steps to reproduce

GUEST: ras

GUEST: debugging

GUEST: <Please provide a description of the problem or the steps to reproduce

GUEST: OutOfMemoryError: Java heap space

GUEST: ...

GUEST: Debugging

GUEST: No idea what caused this (and chances are it wasn't NetBeans) but NetBeans wont let me start up without showing this report dialog..

GUEST: when i loaded node_modules and could not ignore those folders. in HTML5 and NodeJs programming.

GUEST: Debugging

GUEST: system freeze, reboot needed

GUEST: In dun know

GUEST: I don't remember. This is simply a memory error

GUEST: OutOfMemoryError: Java heap space

GUEST: <Please provide a description of the problem or the steps to reproduce

GUEST: cpu at 100% on athlon phenom 2 x4 with javascript big projects ( bower )




Stacktrace: 
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)
Comment 1 warpgiga 2014-07-30 11:32:08 UTC
Created attachment 148407 [details]
stacktrace
Comment 2 Tomas Mysik 2014-08-27 06:43:56 UTC
Created attachment 148917 [details]
stacktrace

hard to say, sorry
Comment 3 Tomas Mysik 2014-08-27 07:59:53 UTC
Lots of duplicates, please evaluate it - maybe we will be to fix it? Thanks.
Comment 4 aquaglia 2014-08-28 12:35:02 UTC
Created attachment 148937 [details]
stacktrace

Opening project
Comment 5 aquaglia 2014-08-29 13:11:02 UTC
Created attachment 148957 [details]
stacktrace

Opening IDE
Comment 6 aquaglia 2014-08-29 13:44:06 UTC
Created attachment 148958 [details]
stacktrace

Opening IDE with 2G RAM specified in the options
Comment 7 Exceptions Reporter 2014-08-29 13:44:11 UTC
This bug already has 100 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=210600
Comment 8 Tomas Mysik 2014-09-09 08:41:05 UTC
Created attachment 149078 [details]
stacktrace

likely scannign of js files?
Comment 9 Tomas Mysik 2014-09-09 14:02:06 UTC
Created attachment 149089 [details]
stacktrace

scanning files
Comment 10 metaladam91 2014-09-28 14:45:26 UTC
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)

Again and again...
Comment 11 Tomas Hurka 2014-10-09 13:49:19 UTC
*** Bug 247821 has been marked as a duplicate of this bug. ***
Comment 12 Roman Svitanic 2014-11-06 14:47:32 UTC
*** Bug 248119 has been marked as a duplicate of this bug. ***
Comment 13 Petr Pisl 2015-03-16 09:06:44 UTC
*** Bug 250082 has been marked as a duplicate of this bug. ***
Comment 14 Petr Pisl 2015-03-16 09:07:51 UTC
*** Bug 243316 has been marked as a duplicate of this bug. ***
Comment 15 Petr Pisl 2015-03-16 09:09:31 UTC
*** Bug 246796 has been marked as a duplicate of this bug. ***
Comment 16 Petr Pisl 2015-03-16 09:11:36 UTC
*** Bug 247450 has been marked as a duplicate of this bug. ***
Comment 17 Petr Pisl 2015-03-16 09:12:37 UTC
*** Bug 246306 has been marked as a duplicate of this bug. ***
Comment 18 Petr Pisl 2015-03-16 10:00:19 UTC
Does someone know a file, which creates the problem?
Comment 19 Petr Pisl 2015-03-17 08:34:20 UTC
For reproducing the OOM just paste this to an empty yaml file:

--- !<tag:%x?y> foo
Comment 20 Petr Pisl 2015-03-17 10:28:31 UTC
The issue has to be fixed in jvyamlb library. I have created issue for this library with proposed patch.
Comment 21 Petr Pisl 2015-03-17 12:08:04 UTC
Fixed in web-main.
Comment 22 Quality Engineering 2015-03-18 03:28:12 UTC
Integrated into 'main-silver', will be available in build *201503180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8baabf1f91b4
User: Petr Pisl <ppisl@netbeans.org>
Log: #246124 - OutOfMemoryError: Java heap space