Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 176874 - Remove the call to setupRenderOption method from RunTask flow
Summary: Remove the call to setupRenderOption method from RunTask flow
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.2.0   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 2.2.0 M6   Edit
Assignee: Wei Wang CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-09 18:05 EST by Deepa Remesh CLA
Modified: 2008-06-18 14:47 EDT (History)
2 users (show)

See Also:


Attachments
Patch to remove call to setupRenderOption method from RunTask.doRun method (685 bytes, patch)
2007-03-09 18:46 EST, Deepa Remesh CLA
bjorn.freeman-benson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Deepa Remesh CLA 2007-03-09 18:05:06 EST
While going through the report engine code, I noticed that the method setupRenderOption is being called in RunTask.doRun method. setupRenderOption method is used to intialize the render options used to render the report. I understand this is not needed in RunTask flow as we are only running the report.
Comment 1 Deepa Remesh CLA 2007-03-09 18:46:37 EST
Created attachment 60498 [details]
Patch to remove call to setupRenderOption method from RunTask.doRun method

Attaching a patch 'run_task_patch_bugzilla_176874.txt' which removes call to setupRenderOption method from RunTask.doRun method. The patch is created with the latest codeline in HEAD.

With the patch, I ran all the tests in org.eclipse.birt.report.engine.tests. Did not see any new failures/errors. 

I saw the following tests fail with/without my patch:
1) ParameterConverterTest.testDateFormat
2) PDFImageLMTest.testPdfChartLegend
3) ReportDocumentTest.testDesignStream
Out of these, failure 1 seems to be locale specific. The failures in 2 and 3 are also reported in https://bugs.eclipse.org/bugs/show_bug.cgi?id=176673

I also saw two java.lang.OutOfMemoryError: Java heap space errors in EngineIRReaderTest.testV1 and EngineIRReaderTest.testV2. These occur with/without my patch.

Please take a look at this patch. Thanks.
Comment 2 Wei Yan CLA 2007-03-18 23:30:03 EDT
the render options contains IImageHandler/IEventHandler which are used by run task now.
Comment 3 Deepa Remesh CLA 2007-03-19 19:40:22 EDT
Thanks for looking at the patch.

I see that IHTMLImageHandler and IHTMLActionHandler are part of RenderOption which gets set in the setupRenderOption method. I understand these can be set as emitter config. Are these used by the emitter when writing the report document? I would appreciate if you can explain or point me where these options are used in run task.
Comment 4 Wei Wang CLA 2007-03-29 05:44:25 EDT
remove the setupRenderOption() method.

fixed.
Comment 5 Bjorn Freeman-Benson CLA 2008-06-18 14:47:51 EDT
Comment on attachment 60498 [details]
Patch to remove call to setupRenderOption method from RunTask.doRun method

per Ganymede IP log