Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 360657

Summary: Endless loop in table layout for pdf (OOM)
Product: z_Archived Reporter: Harald Böhme <h_boehme>
Component: BIRTAssignee: Gang Liu <hustlg>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: bluesoldier, erche, jouyang, yChen
Version: 2.6.1   
Target Milestone: 4.2.0 M7   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch none

Description Harald Böhme CLA 2011-10-12 07:58:23 EDT
Created attachment 205019 [details]
Patch

If a column has fixed width in table layout for pdf and the width of column is smaller as one char of the current font and the current font is simulated for italic then getWidth() method of TextArea is wrong. 

On each call the width field is increased, event is width was zero. This prevents the hyphenation code to put at least one char into the area. So the same text is handled again and again. Each iteration add a new (empty) area and we run out of memory.

This problems seems to exists also in the head version.

See attached patch.

Regards,
 Harald
Comment 1 Yu Chen CLA 2012-02-23 01:34:47 EST
Fixed.