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 81425 - OutOfMemoryError during diff
Summary: OutOfMemoryError during diff
Status: RESOLVED WORKSFORME
Alias: None
Product: utilities
Classification: Unclassified
Component: Diff (show other bugs)
Version: 5.x
Hardware: PC All
: P4 blocker (vote)
Assignee: diff-issues@utilities
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-30 02:04 UTC by rrochat
Modified: 2007-09-26 14:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log file (19.41 KB, text/plain)
2006-07-30 02:05 UTC, rrochat
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rrochat 2006-07-30 02:04:33 UTC
With NetBeans 5.5 Beta 2 (Build 200607190830),
I tried to diff 2 files and got an java.lang.OutOfMemoryError: Java heap space
	at java.util.Arrays.copyOfRange(Arrays.java:2811)
	at java.lang.String.<init>(String.java:209)
	at org.netbeans.editor.DocumentContent.getText(DocumentContent.java:152)
...

The files were xml, approximately 1750 lines long, and there were a fair number
of differences.
The diffed window did appear, but when I tried to click on it, the 2nd error
occurred and I quit.  Brought it back up again and tried the same thing, but it
worked.  Have tried it several times since then and still can't get it to fail
so it's not reproducible, but I'm filing this with the log file just in case
it's of interest.
Comment 1 rrochat 2006-07-30 02:05:50 UTC
Created attachment 32339 [details]
log file
Comment 2 Maros Sandor 2007-09-26 14:05:37 UTC
I cannot reproduce OOME diffing two big xml files (4000+ lines long). If you can still reproduce it please describe
exact steps how to do it and ideally attach affected files.