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 224444 - Remove limits that are too low or provide configuration.
Summary: Remove limits that are too low or provide configuration.
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 7.3
Hardware: PC Windows 7 x64
: P4 normal with 2 votes (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-03 22:20 UTC by emiddio
Modified: 2013-01-08 08:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
shows navigator refusing to navigate (281.97 KB, image/jpeg)
2013-01-03 22:21 UTC, emiddio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description emiddio 2013-01-03 22:20:33 UTC
see attached JPG file - it shows the navigator refusing to navigate an xml file because it is > 1MByte.

These kinds of limits must be removed from netbeans - other examples are limits on 500 matches when doing search. REMOVE THE LIMITS or provide configuration.

These limits are stupid - 64bit java, 12GByte ram -- that is 12,000 megabyte of ram.

That is what my box has.

Product Version: NetBeans IDE Dev (Build 201301010001)
Updates: Updates available
Java: 1.7.0_10; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-b18
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\DEV\netbeans\profile\dev
Cache directory: C:\DEV\netbeans\cache\dev
Comment 1 emiddio 2013-01-03 22:21:29 UTC
Created attachment 129867 [details]
shows navigator refusing to navigate

i have 12GByte of ram - don't limit file sizes.
Comment 2 Svata Dedic 2013-01-04 08:17:48 UTC
This limitation applies to opening files in general using DataEditorSupport from platform. The navigator currently just displays the message of the UserQuestionException.

I would consider marking the issue as an enhancement.
Comment 3 Jaroslav Tulach 2013-01-08 08:40:58 UTC
The issue is DataEditorSupport which is in org.openide.text package (but in openide.loaders module). Anyway this is directly associated with editor, so it is more appropriate for editor guys to deal with the issue. At the end the check in DataEditorSupport is there to shield editor infrastructure from problems.

Currently there is hardcoded

if (!warnedFiles.contains(fo) && fo.getSize () > 1024 * 1024)

check. I can change it to read a property or increase it. However, as bug 223237 shows, sometimes 1MB is still considered too big.