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 - 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
Summary: org.openide.text.DataEditorSupport$Env$ME: The file datatables.min.js seems t...
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-16 10:13 UTC by khansudarsan
Modified: 2016-12-16 15:23 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 207785


Attachments
stacktrace (1.01 KB, text/plain)
2016-12-16 10:13 UTC, khansudarsan
Details

Note You need to log in before you can comment on or make changes to this bug.
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