Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 155031 - Warning when loading large file (File seems to be too large, may cause OutOfMemoryError) only provides OK button
Warning when loading large file (File seems to be too large, may cause OutOfM...
Status: RESOLVED WORKSFORME
Product: utilities
Classification: Unclassified
Component: Open File
6.x
All Windows XP
: P4 with 1 vote (vote)
: 7.1
Assigned To: Jaroslav Havlin
issues@utilities
http://www.stpe.se/wp-content/uploads...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-09 14:52 UTC by stefpet
Modified: 2011-09-06 07:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description stefpet 2008-12-09 14:52:39 UTC
When opening a large file (1 Mb in this case) the NetBeans IDE a warning dialog is displayed:

"The file <filename> 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?"

Followed by one button: "OK".

Either the wording of the warning need to change, or a Yes and No button (or similar) need to be added.

When pressing OK the file is not loaded, so the OutOfMemoryError never occurs.
Comment 1 Peter Pis 2008-12-10 00:08:14 UTC
Reassigning to utilities for evaluation.
Comment 2 Andrey Yamkovoy 2008-12-19 13:44:03 UTC
Accepted
Comment 3 kiyut 2009-02-03 04:15:22 UTC
Yes, I am experiencing this problem as well.

Netbeans also have problem in term of performance (very bad performance) when editing large file eg: xml file > 10 MB.
I know Netbeans is not an xml editor (but an IDE), because of my familiarty and preferred IDE, I often use NB to edit
large xml file.
Comment 4 kiyut 2009-02-03 04:20:02 UTC
Forget to mention

it is tested, the large file performance problem on
- Netbeans IDE 6.5
- Java 1.6.0_11
- Linux Ubuntu 8.04
- 2 GB of memory
- default etc/netbeans.conf file (for memory -Xmx,etc)
Comment 5 mienamoo 2011-06-10 08:57:21 UTC
The single OK button is still there in NetBeans 7.0.
Comment 6 Jaroslav Havlin 2011-09-06 07:47:41 UTC
There are two buttons in the current build, and opening a file can be cancelled now.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo