JDK-6545748 : Label displays garbled on RHEL 5
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 6u2
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: linux_2.6
  • CPU: x86
  • Submitted: 2007-04-13
  • Updated: 2010-07-29
  • Resolved: 2009-11-30
Related Reports
Relates :  
Description
Please refer to attached screenshot [CharView_RH5.png]. You can see the garbled labels displayed. When run this same test on RedHat 4, not 5, it will render okay as in another screenshot [CharView_RH4.png].
In order to reproduce, please follow below steps.

$ cp /net/sqe1.sfbay/quality2/i18n/workspaces/archive/i18n_ws/OverSea/Japan/FJ/fj-test.tar .
$ tar xf fj-test.tar ./fj_new/kison_1/awt
$ cd !$
$ java CharView
choice font size larger than 20.
select "Label" then you should see the problem. If not, please try some variation.

Original testcase: http://tula.red.iplanet.com/tcm2/tcm_testcase.cgi?tcm_config=java&action=query_testcase&product_id=2&category_id=39

Tested environment:
[root@bols ~]# uname -a
Linux bols.japan.sun.com 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:14 EST 2007 x86_64 x86_64 x86_64 GNU/Linux
[root@bols ~]# more /etc/redhat-release
Red Hat Enterprise Linux Server release 5 (Tikanga)
[root@bols ~]# java -version
java version "1.6.0_02-ea"
Java(TM) SE Runtime Environment (build 1.6.0_02-ea-b01)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_02-ea-b01, mixed mode)

Comments
EVALUATION So far we have only the original test system that reproduces it. This looks to be specific to using the i810 video driver which is what is used for the Intel E7221/i915 integrated graphics chip (and others) Probably this isn't specific to RHEL 5 but to any system that uses the same combination of X.org 7.1.1 and i180_drv version 1.6.5, or similar versions. There are three other RHEL5 systems here, two with Nvidia cards and the other with an "ASPEED AST2000". These don't show the problem. Also the problem is reminiscent of these bugs which were specific to some cards : 5046469: JDK on Linux: doesn't draw a rotated/tall string completely 4844952: drawString corruption on Matrox video cards on linux But there are probably some differences. I can reproduce the problem with a simpler program than 'charview', ie one that calls drawString a number of times and get similar corruption and show that calling Toolkit.sync() between calls completely cures it. I don't believe Toolkit.sync() helped in those earlier cases.
19-04-2007

EVALUATION Tried with CharView from test/java/awt/font/CharView, couldn't reproduce the problem. Also tried with the version the submitter described, with 6u2 b01 and b02, couldn't reproduce either. The host tested with: i18n-gw700-8.
17-04-2007