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 198930 - org.openide.text.DataEditorSupport$Env$ME: The file Morpha.java seems to be too large (3 Mb) to safely open. Opening the file could cause OutOfMemoryError, which would make the IDE unusable. Do you r
Summary: org.openide.text.DataEditorSupport$Env$ME: The file Morpha.java seems to be t...
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-26 19:36 UTC by shunbul
Modified: 2012-03-26 15:37 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 133805


Attachments
stacktrace (2.95 KB, text/plain)
2011-05-26 19:36 UTC, shunbul
Details

Note You need to log in before you can comment on or make changes to this bug.
Description shunbul 2011-05-26 19:36:18 UTC
Build: NetBeans IDE 7.0 (Build 201104080000)
VM: Java HotSpot(TM) Client VM, 20.0-b11, Java(TM) SE Runtime Environment, 1.6.0_25-b06
OS: Windows 7

User Comments:
GUEST: Indexing a Django web application.

GUEST: I was editing the Tasks dialog, hit <OK>, which caused Tasks processing, and got this error on one of the files.




Stacktrace: 
org.openide.text.DataEditorSupport$Env$ME: The file Morpha.java seems to be too large (3 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:830)
   at org.openide.text.CloneableEditorSupport.loadDocument(CloneableEditorSupport.java:2152)
   at org.openide.text.CloneableEditorSupport.access$2800(CloneableEditorSupport.java:133)
   at org.openide.text.CloneableEditorSupport$Listener.run(CloneableEditorSupport.java:2986)
   at org.openide.text.CloneableEditorSupport$3.doRun(CloneableEditorSupport.java:710)
   at org.openide.text.CloneableEditorSupport$3.run(CloneableEditorSupport.java:677)
Comment 1 shunbul 2011-05-26 19:36:23 UTC
Created attachment 108539 [details]
stacktrace
Comment 2 Exceptions Reporter 2011-05-26 19:42:04 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=133805
Comment 3 Jaroslav Tulach 2011-05-27 13:29:36 UTC
The exception is just regular IOException (or rather UserQuestionException). It requires special handling, presenting the dialog to user, etc.

Few calls are comming from 3rd party code: gianlucacosta86.easypmd2.ide.IdeScanner.scan

Some calls are from:
org.openide.text.DataEditorSupport.openDocument(DataEditorSupport.java:493)
org.netbeans.modules.java.hints.analyzer.Analyzer$1.run(Analyzer.java:138)

Another comes from mobility
org.netbeans.modules.vmd.api.model.Debug.error(Debug.java:155)


Probably only the Analyzer will ever be fixed, so passing to Jan.
Comment 4 Jan Lahoda 2011-05-30 07:57:18 UTC
java.hints:
http://hg.netbeans.org/jet-main/rev/52061c0194fd
Comment 5 Jan Lahoda 2011-05-30 08:43:56 UTC
release701:
http://hg.netbeans.org/releases/rev/444929911025

Passing to mobility for the vmd support. Petr, there are also some exceptions that might be related to JavaScript support.
Comment 6 Anton Chechel 2011-05-30 14:28:55 UTC
Mobility: http://hg.netbeans.org/jet-main/rev/667309398e7d
Waiting for integration to releases in order to be transplanted into 7.0.1
Passing to JavaScript support.
Comment 7 Anton Chechel 2011-05-31 12:11:59 UTC
integrated into release 701:
http://hg.netbeans.org/releases/rev/5cdca780546e
Comment 8 Quality Engineering 2011-05-31 19:24:12 UTC
Integrated into 'main-golden', will be available in build *201105310954* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/52061c0194fd
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #198930: auto-open large files.
Comment 9 Quality Engineering 2011-06-01 13:28:34 UTC
Integrated into 'main-golden', will be available in build *201106010401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/52061c0194fd
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #198930: auto-open large files.
Comment 10 Quality Engineering 2011-06-02 21:06:42 UTC
Integrated into 'main-golden', will be available in build *201106021001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/52061c0194fd
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #198930: auto-open large files.
Comment 11 Petr Pisl 2011-10-04 13:08:50 UTC
Needs to be fixed the JS part.
Comment 12 twolf2919 2011-12-07 15:14:04 UTC
Why is this considered a "Javascript" product problem?  My exception happens on a very large (25k lines) previously generated Java file.  I saw a comment that EasyPMD2 was in a stack trace.  I, too, have EasyPMD2 installed!  That plugin scans Java code for weak coding practices.

I always encounter this problem the first time I open a project with a new NB version - not sure if I see it subsequently.  I saw it after running 7.1 RC1 for the first time and again when I just started RC2.
Comment 13 twolf2919 2011-12-07 15:22:50 UTC
Raising it to P2 since it makes NB look pretty lame to have it throw up like this on an initial project scan.
Comment 14 Marian Mirilovic 2011-12-08 01:04:27 UTC
Petr Pisl,
could you please evaluate this issue today ? Thanks in advance.
Comment 15 Petr Pisl 2012-03-26 15:37:33 UTC
From the JS side, it's ok. Fixed in parsing infrastructure in NB 7.1. There are not any reports after NB 7.1 . Closing this issue as fixed.