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

Bug 180480

Summary: DBCS 3.3 - Eclipse crash when previewing Korean bar chart
Product: z_Archived Reporter: Geoffrey Hung <cyhung>
Component: BIRTAssignee: Yulin Wang <Lionel.wyl>
Status: RESOLVED DUPLICATE QA Contact:
Severity: major    
Priority: P1 CC: camle, clin, cyfgod, doshiro, kantliu, kitlo, steven.wasleski
Version: 2.2.0   
Target Milestone: 2.2.0 RC0   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on: 162039    
Bug Blocks:    
Attachments:
Description Flags
image for reference
none
java snap for reference
none
Report to reproduce this problem
none
report file and order with different format
none
before workaround Test_Report_Chart_Date_Step.rptdesign
none
before workaround, choose layout option error message
none
modify Test_Refport_Chart_Date_Step.rptdesign
none
after workaround, successful view when browsing layout option none

Description Geoffrey Hung CLA 2007-04-02 09:23:35 EDT
Product Build#:         Eclipse M6 + birt-report-framework-sdk-2.2.0-N20070321
Platform/Version :      RHEL50
Language:                  Korean
Releated Test Case #:    01 BIRT - DATE STEP 
Same problem in English:	No

===== DEFECT DESCRIPTION =====
When preview the bar chart report, it is blank on the preview panel
and an error msg is on the bottom of panel. "Unable to use a non-datetime
data to render a datetime axis."

The 20070321 build will crash Eclipse by the same steps below.

===== STEPS TO RECREATE =====
Step 1:  Start Eclipse and if the current perspective is not the Report Designer,
              set the perspective to Report Designer from Window->Open Perspective->Other...

Step 2:  On Navigator view, right click the project and select Import, select File 
              System, and select the Test_Report_Chart_Date_Step.rptdesign. Then, click Finish.

Step 3:  Copy either orders_DMY.csv, orders_MDY.csv, or orders_YMD.csv to 
   	  orders.csv depends on the Date format of your locale.

Step 4:  Double click the Test_Report_Chart_Date_Step.rptdesign on Navigator view.
              The report design is displayed. Then, double click the Data Source and set the 
              “Select Folder” to the path you have copied order.csv file in Step 3.

Step 5:  Preview the report by clicking Preview tab.

===== EXPECTED RESULT =====
the bar chart should be displayed.
Comment 1 Geoffrey Hung CLA 2007-04-02 09:24:02 EDT
Created attachment 62656 [details]
image for reference
Comment 2 Geoffrey Hung CLA 2007-04-02 09:25:19 EDT
Created attachment 62657 [details]
java snap for reference
Comment 3 Geoffrey Hung CLA 2007-04-02 09:34:10 EDT
This problem happens in Linux only
Comment 4 Yasuo Doshiro CLA 2007-04-02 16:28:31 EDT
This happens on any locale on Linux.
I have tested on 20070402 build.

To reproduce:

1. Copy attached Test_Report_Chart_Format.rptdesign and Chart.csv into Linux file system.
2. Start eclipse on Linux and import Test_Report_Chart_Format.rptdesign.
3. Set the data source path to the directory where you have copied Chart.csv.
4. Preview the report.
--> Nothing displayed.
5. Clock Layout tab
--> Core dump.

Comment 5 Yasuo Doshiro CLA 2007-04-02 16:29:10 EDT
Created attachment 62711 [details]
Report to reproduce this problem
Comment 6 Yasuo Doshiro CLA 2007-04-02 18:08:46 EDT
View Report in Web Viewer works with Korean(and other) on Linux.
So to continue testing, please preview the report as View Report in Web Viewer from File->View report menu.
Comment 7 Cheng-Yee Lin CLA 2007-04-03 13:46:08 EDT
Geoffrey, can you use the web viewer as a workaround for continuing tests?  (Preview and web viewer follow similar logic and have similar output.)

Doshiro-san, since this could cause a crash, it should be deemed as a major issue.
Comment 8 Cheng-Yee Lin CLA 2007-04-09 11:49:06 EDT
Can this bug be given a higher priority for investigation and fix?  That would help completing the globalization enablement test for this feature.
Comment 9 Geoffrey Hung CLA 2007-04-16 08:48:07 EDT
We still get Eclipse crashed by using web preview
Comment 10 Yulin Wang CLA 2007-04-17 05:07:29 EDT
There is a bug, BIRT V2.2 can't run in Linux, so I can't reproduce it.
I will fix it after the bug#162039 fixing.
Comment 11 Cheng-Yee Lin CLA 2007-04-17 10:13:14 EDT
According to Bug 162039, the crash problem on Linux has happened sporadically for a few months (as early as October 2006), and it may be caused by SWT.

Is there a bug submitted for SWT/platform on the specific symptom?
Comment 12 Yulin Wang CLA 2007-04-17 22:48:16 EDT
This bug is duplicate of 162039, but not resolved yet.
Jerry, could you find or file a bug for SWT/platform issue?
Comment 13 Jerry Cheng CLA 2007-04-17 23:15:34 EDT
Because eclipse SWT isn't stable, you can switch to use external browser to prerview report. It can avoid this crash issue.

Please open window->preference->Report Design->Preview
Then check "always use external browsers".

Input command line "mozilla %1" in the below text field.
Comment 14 Kant Liu CLA 2007-04-18 04:25:58 EDT
A quick update for the crash problem, it is gone when we use the 20070413 build.
However, the orginal problem, exception "Unable to use a non-datetime data to render a datetime axis." is still there. 

Also, one point should be highlighted is this exception will occure if we use orders_YMD.csv as test data, but will be perfect if we use orders_MDY.csv. However, according to the Korea locale setting, we should use the YMD data.
Hopefully, this can help to narrow down the problem. 
Comment 15 Yulin Wang CLA 2007-04-18 04:56:55 EDT
(In reply to comment #14)
> A quick update for the crash problem, it is gone when we use the 20070413
> build.
> However, the orginal problem, exception "Unable to use a non-datetime data to
> render a datetime axis." is still there. 
> 
> Also, one point should be highlighted is this exception will occure if we use
> orders_YMD.csv as test data, but will be perfect if we use orders_MDY.csv.
> However, according to the Korea locale setting, we should use the YMD data.
> Hopefully, this can help to narrow down the problem. 
> 

Please attach your report to reproduce the issue you mentioned or file another bug.
If crash issue has been resolved by eclipse, I will mark it as resolved.

Comment 16 Geoffrey Hung CLA 2007-04-20 07:28:26 EDT
Created attachment 64413 [details]
report file and order with different format

This exception will occur if we use orders_YMD.csv as test data.
Comment 17 Yulin Wang CLA 2007-04-22 23:28:19 EDT
The exception is caused by the wrong column type of null date.
This has been fixed already.



*** This bug has been marked as a duplicate of bug 181361 ***
Comment 18 Cindy Liu CLA 2007-04-27 02:25:04 EDT
Created attachment 65150 [details]
before workaround Test_Report_Chart_Date_Step.rptdesign

Before workaround Test_Report_Chart_Date_Step.rptdesign, the version="3.2.10"
Comment 19 Cindy Liu CLA 2007-04-27 02:27:55 EDT
Created attachment 65151 [details]
before workaround, choose layout option error message

before workaround, choose layout option error message.
Comment 20 Cindy Liu CLA 2007-04-27 02:30:25 EDT
Created attachment 65152 [details]
modify Test_Refport_Chart_Date_Step.rptdesign

Our work around consists in modifying the version in Test_Report_Chart_Step.rtpdesign panel  to version="3.2.7"
Comment 21 Cindy Liu CLA 2007-04-27 02:31:37 EDT
Created attachment 65153 [details]
after workaround, successful view when browsing layout option

after workaround, successful view when browsing layout option.