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 254470

Summary: OutOfMemoryError: GC overhead limit exceeded
Product: platform Reporter: pchela.ilya
Component: Options&SettingsAssignee: Theofanis Oikonomou <theofanis>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 219254
Attachments: stacktrace

Description pchela.ilya 2015-08-18 08:37:21 UTC
Build: NetBeans IDE 8.0.2 (Build 201411102027)
VM: OpenJDK 64-Bit Server VM, 25.51-b03, OpenJDK Runtime Environment, 1.8.0_51-b16
OS: Linux

User Comments:
pchela.ilya: just start IDE




Stacktrace: 
java.lang.OutOfMemoryError: GC overhead limit exceeded
   at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:300)
   at java.lang.StringCoding.encode(StringCoding.java:344)
   at java.lang.String.getBytes(String.java:906)
   at java.io.UnixFileSystem.list(UnixFileSystem.java:0)
   at java.io.File.list(File.java:1122)
   at java.io.File.listFiles(File.java:1207)
Comment 1 pchela.ilya 2015-08-18 08:37:23 UTC
Created attachment 155417 [details]
stacktrace
Comment 2 Theofanis Oikonomou 2015-09-15 14:45:50 UTC
Most probably an invalid folder was selected to import settings from and user accepted that. Heap dump contains thousands of entries with file paths that are totally unrelated to netbeans options like "ProgramData/Application Data/...". Seems like a system junction file that actually points to itself was chosen? Anyway, fix from http://hg.netbeans.org/web-main/rev/d5d9a3c4e68f now stops asking user if he really wants to import options from what seems like an invalid folder and forbids doing that showing just an error. Thank you