Bug 61599

Summary: code formatter crashes eclipse on large files
Product: [Eclipse Project] JDT Reporter: Eric Merritt <cyberlync>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED DUPLICATE QA Contact:
Severity: critical    
Priority: P3    
Version: 3.0   
Target Milestone: 3.0 M9   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
Large file that causes eclipse crash
none
code formatter configuration
none
Resulting output after formatting using your code formatter preferences none

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 ***