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.
Build: NetBeans IDE Dev (Build 200903250219) VM: Java HotSpot(TM) Client VM, 11.2-b01, Java(TM) SE Runtime Environment, 1.6.0_12-b04 OS: Linux, 2.6.27-14-generic, i386 User Comments: esmithbss: Default Installation of 200903250219. Using Ruby on Rails project (4 projects open). Launched Rails Console for one project. (no debugger processes or running processes launched). Generated this exception. Stacktrace: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390) at java.lang.StringBuilder.append(StringBuilder.java:119) at org.netbeans.modules.languages.yaml.YamlParser.parse(YamlParser.java:254) at org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:194)
Created attachment 78945 [details] stacktrace
Build: NetBeans IDE Dev (Build 200903250219) VM: Java HotSpot(TM) Client VM, 11.2-b01, Java(TM) SE Runtime Environment, 1.6.0_12-b04 OS: Linux, 2.6.27-14-generic, i386 User Comments: Loading a legacy Ruby in Rails application into the IDE along with 2 additonal RoR projects (total of 3 open projects). Error occurred during "Scanning Projects" processing. Stacktrace: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390) at java.lang.StringBuilder.append(StringBuilder.java:119) at org.netbeans.modules.languages.yaml.YamlParser.parse(YamlParser.java:254) at org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:194)
Created attachment 79018 [details] stacktrace
Build: NetBeans IDE Dev (Build 200903311400) VM: Java HotSpot(TM) Client VM, 11.2-b01, Java(TM) SE Runtime Environment, 1.6.0_12-b04 OS: Linux, 2.6.27-14-generic, i386 User Comments: Initial boot of clean system. Loaded 2 Ruby on Rails projects which caused activation of some components. Stacktrace: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390) at java.lang.StringBuilder.append(StringBuilder.java:119) at org.netbeans.modules.languages.yaml.YamlParser.parse(YamlParser.java:254) at org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:194)
Created attachment 79254 [details] stacktrace
This time I had one project open and tried to open a second Ruby On Rails project.
Created attachment 79942 [details] Log File
NetBeans now generates this exception whenever opening a second Ruby on Rails project. It appears to be a problem within the scanning projects process.
Hi, can you please attach the Rails project that causes this? It looks like the YAML parser is the root cause, and I understand you may not need to upload your Ruby sources, so could you attach a minimal project with just YAML files which reproduces the problem? Also, does this happen with the latest build?
The memory usage is improving, but after loading 2 of the original 3 projects, I'm peaking at around 190MB in the memory window. So far, I cannot reproduce in latest version so I'm marking this WORKSFORME. If I can reproduce, I'll reopen.
I'm reopening this. I just reproduced the exception in 200904231401. Exception Reports #194601 #194602 First opening of new install to clean folder. Accepted import of 6.5 settings Exception thrown while scanning projects.
Created attachment 80812 [details] Log File
Would it be possible for you to attach the yaml files you have in the opened projects? Are there some really large yaml files or anything like that?
As discussed via email with Eric, there is a large test fixture (7 Mb) that is very likely causing the issue. The parser can't handle such files and in fact there is already a check for size, but that happens only after constructing the source from the tokens and the OOME gets thrown already at that phase. I'll look into this.
Should be fixed now, 5cbb6dd8138a in ruby-main.
Integrated into 'main-golden', will be available in build *200904241401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/5cbb6dd8138a User: Erno Mononen <emononen@netbeans.org> Log: #161310: OutOfMemoryError: Java heap space
It appears that this may not have been fixed or we have a regression. Attaching new messages.log and profile trace.
Created attachment 81153 [details] Profile Output.
Created attachment 81154 [details] Log File
Seems that you're using beta, right? The fix didn't make it to the beta clone, it is only in trunk. Could you please try whether you still encounter this in trunk?
Eric, any update on this? Thanks!
I keep running into the OutOfMemory Java Heap Space issues, but apparently, since there are multiple issues which I am encountering. I had thought they were all tied to one. I just downloaded latest nightly. I'll retest and see what's happening.
It appears that changes to YAML file reading have fixed this issue.