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 31303 - provide warning dialog when user is opening extremely large document
Summary: provide warning dialog when user is opening extremely large document
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords: PERFORMANCE, UI
Depends on:
Blocks: 28662
  Show dependency tree
 
Reported: 2003-02-21 10:07 UTC by David Konecny
Modified: 2008-12-22 23:35 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Konecny 2003-02-21 10:07:50 UTC
If user is opening extremely large document (>a
few MBs) the IDE should warn them that operation
can cause OutOfMemory. If possible some
calculation of the filesize and estimated memory
requirement compared with available memory should
be done.
Comment 1 David Konecny 2003-02-21 10:08:32 UTC
Some suggestions from Performance team are appreciated.
Comment 2 David Konecny 2003-02-27 16:58:55 UTC
The problem I just realized is that if the large file is opened
programatically then the user cannot be warned. These two cases must
be somehow distinguished. The example is java parser which opens
document on the background and parses it. If the file is large it
might cause problems.

The check for the user would be best done in the Open action.
Comment 3 Marian Mirilovic 2006-08-01 09:09:34 UTC
It's already implemented, the dialog rises when user tries to open large file (>1MB)