Bug 61599 - code formatter crashes eclipse on large files
Summary: code formatter crashes eclipse on large files
Status: RESOLVED DUPLICATE of bug 44141
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux-GTK
: P3 critical (vote)
Target Milestone: 3.0 M9   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-10 11:16 EDT by Eric Merritt CLA
Modified: 2004-05-12 14:58 EDT (History)
0 users

See Also:


Attachments
Large file that causes eclipse crash (76.39 KB, text/plain)
2004-05-10 11:18 EDT, Eric Merritt CLA
no flags Details
code formatter configuration (18.25 KB, text/plain)
2004-05-10 11:19 EDT, Eric Merritt CLA
no flags Details
Resulting output after formatting using your code formatter preferences (74.57 KB, text/plain)
2004-05-10 21:12 EDT, Olivier Thomann CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Merritt CLA 2004-05-10 11:16:44 EDT
When running the code formatter on large and 'cluttered' files, the code
formatter uses a large amount of memory and crashes with out of memory errors.
Comment 1 Eric Merritt CLA 2004-05-10 11:18:35 EDT
Created attachment 10455 [details]
Large file that causes eclipse crash
Comment 2 Eric Merritt CLA 2004-05-10 11:19:12 EDT
Created attachment 10456 [details]
code formatter configuration
Comment 3 Olivier Thomann CLA 2004-05-10 21:10:18 EDT
I don't understand. Running the code formatter without ui, I get the following time:

Formatting: 281 ms
Number of edits: 2023 edits
Total formatting time: 1542 ms (formatting + applying edits)
Comment 4 Olivier Thomann CLA 2004-05-10 21:12:08 EDT
Created attachment 10479 [details]
Resulting output after formatting using your code formatter preferences
Comment 5 Olivier Thomann CLA 2004-05-11 14:50:55 EDT
What are your memory settings?
Comment 6 Olivier Thomann CLA 2004-05-11 14:58:20 EDT
Please check bug 44141 comment 10.
Is this your case?
Comment 7 Eric Merritt CLA 2004-05-11 15:26:38 EDT
memory settings?
  as far as jvm eclipse is running in I havn't modified those settings from the
3.0M8 defaults

As for bug 44141 comment 10, that doesn't seem to be this case as diffing
doesn't come into the picture at all (unless the code formatter somehow makes
use of the diff functionality).
Comment 8 Olivier Thomann CLA 2004-05-11 15:37:42 EDT
How are you running the code formatter? In the ui? In your own code? In this is
done in the ui, then the diff is in the picture.
Comment 9 Eric Merritt CLA 2004-05-12 13:55:45 EDT
I am running it in the eclipse UI. Just out of curiosity how does diff enter
into it?
Comment 10 Olivier Thomann CLA 2004-05-12 14:58:48 EDT
The UI activates the diff on changes in a compilation unit.
I close as a duplicate of bug 44141.

*** This bug has been marked as a duplicate of 44141 ***