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

Bug 344168

Summary: font difference in PDF output
Product: z_Archived Reporter: Donald Hayes <dbh03079>
Component: BIRTAssignee: Birt-ReportEngine-inbox <Birt-ReportEngine-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: bluesoldier, hustlg
Version: 2.6.0   
Target Milestone: 3.7.0   
Hardware: Other   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
output file 2
none
output file 1 none

Description Donald Hayes CLA 2011-04-28 13:39:35 EDT
Using the same report design and same data, the resulting PDF will occasionally have some labels and/or data fields print out with different font sizing or spacing. Attached are two PDF files which display the issue. They were produced in the same manner through our application about 2 minutes apart. You can see two examples of the issue on the first page, one is in the header (the name "Susan Ryan") and the other is the label "Birth Date:". Another example is on page 4 in the header where there is more spacing above and below the "Student:" caption and name.
Comment 1 Donald Hayes CLA 2011-04-28 13:40:21 EDT
Created attachment 194288 [details]
output file 2
Comment 2 Donald Hayes CLA 2011-04-28 13:40:46 EDT
Created attachment 194289 [details]
output file 1
Comment 3 Xiaoying Gu CLA 2011-04-29 04:50:15 EDT
Do you know how to reproduce this issue stably?
We can not reproduce this issue with common report designs on Linux.
Comment 4 Donald Hayes CLA 2011-04-29 10:20:04 EDT
At this point in time, we do not know how to reproduce the issue consistently.  The behavior appears to be somewhat random but the frequency that it occurs seems to be high (about 1 time out of 4).

We have not noticed the issue when previewing reports through the standalone BIRT report designer.  It occurs when processing reports through our custom report processor.  This is a multi-threaded standalone "engine" that calls the BIRT API directly (createRunAndRenderTask) to produce the resulting PDF files.

Are there any known issues with the createRunAndRenderTask being called in a multi-threaded environment?  Are there any recommended settings for producing debug or trace output?
Comment 5 Donald Hayes CLA 2011-05-02 13:17:06 EDT
I have produced a multi-threaded test program that reproduces the issue.  If the program is run with only one thread (settable through an .ini file) the issue doesn't appear to happen.  With 2 or more threads, the issue can be seen at "random" places in the resulting pdf files.

The zip file containing the program and environment is too large (51MB) to attach to the bug.  I've placed the file here:

http://www.centipede.us/birt/birtbug2.zip
Comment 6 Gang Liu CLA 2011-05-10 03:39:37 EDT

*** This bug has been marked as a duplicate of bug 333511 ***
Comment 7 Gang Liu CLA 2011-05-10 03:44:52 EDT
I can reproduce this bug with 2.6.2 and 3.7.0M6, but can not reproduce with nightly build 3_7_0-N20110426.

Could you please try it with the latest 3.7.0 nightly build (http://download.eclipse.org/birt/downloads/build_list.php)
Comment 8 Donald Hayes CLA 2011-05-10 13:13:23 EDT
Using the report engine from 3_7_0-N20110510 appears to be fine and not exhibit the font size difference issue.

I can also confirm that the behavior does occur with 2.6.2 and 3.7.0M6.

Was there a specific change that fixed this?  Is there a possibility of this being fixed in the next 2.6.X version?