Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360657 - Endless loop in table layout for pdf (OOM)
Summary: Endless loop in table layout for pdf (OOM)
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.6.1   Edit
Hardware: All All
: P3 critical (vote)
Target Milestone: 4.2.0 M7   Edit
Assignee: Gang Liu CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-12 07:58 EDT by Harald Böhme CLA
Modified: 2012-02-23 01:34 EST (History)
4 users (show)

See Also:


Attachments
Patch (1.05 KB, application/octet-stream)
2011-10-12 07:58 EDT, Harald Böhme CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.