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 269364

Summary: org.openide.text.DataEditorSupport$Env$ME: The file datatables.min.js seems to be too large (1 Mb) to safely open. Opening the file could cause OutOfMemoryError, which would make the IDE unusable. Do
Product: platform Reporter: khansudarsan
Component: TextAssignee: Miloslav Metelka <mmetelka>
Status: NEW ---    
Severity: normal CC: achirizzi, twolf2919
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 207785
Attachments: stacktrace

Description khansudarsan 2016-12-16 10:13:07 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: OpenJDK 64-Bit Server VM, 25.111-b14, OpenJDK Runtime Environment, 1.8.0_111-8u111-b14-2ubuntu0.16.04.2-b14
OS: Linux

User Comments:
achirizzi: Ok, so  I just started up NetBeans and it is showing this problem which is relative to the file

hadoop/hadoop-hdfs-project/hadoop-hdfs/target/generated-sources/java/org/apache/hadoop/hdfs/protocol/proto/ClientNamenodeProtocolProtos.java

which you can find in the hadoop project (git checkout branch-2.7.1 if you want to test it). It's a generated file.
Anyway it should not happen to have an OutOfMemoryError for a file which is not even open in the editor!

achirizzi: The problem is that I have never opened or tried to open the file in the summary (ClientNamenodeProtocolProtos.java). 
Was it part of a project Netbens failed to open and requested me to repair it? I just skipped that part cause I was not interested in opening those projects at this time.

GUEST: This is an automatic message

GUEST: .

khansudarsan: dfgdfg

twolf2919: I opened the "Action Items" window and it was running EasyPMD - which must have tried to evaulate this large file (1+mb) when this exception happened.




Stacktrace: 
org.openide.text.DataEditorSupport$Env$ME: The file datatables.min.js seems to be too large (1 Mb) to safely open. 
Opening the file could cause OutOfMemoryError, which would make the IDE unusable. Do you really want to open it?
   at org.openide.text.DataEditorSupport$Env.inputStream(DataEditorSupport.java:887)
   at org.openide.text.DocumentOpenClose$DocumentLoad.atomicLockedRun(DocumentOpenClose.java:761)
   at org.openide.text.DocumentOpenClose$DocumentLoad.run(DocumentOpenClose.java:615)
   at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:323)
   at org.openide.text.NbDocument.runAtomic(NbDocument.java:436)
   at org.openide.text.DocumentOpenClose$DocumentLoad.run(DocumentOpenClose.java:655)
Comment 1 khansudarsan 2016-12-16 10:13:10 UTC
Created attachment 163260 [details]
stacktrace