Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4864295

PIT: TextLayout test failed in Thai locale

XMLWordPrintable

    • 2d
    • tiger
    • sparc
    • solaris_10
    • Verified

      Run i18n GlobalSuite/test/ThaiTest/TextLayoutLTest1.java, the test ran into infinite loop.

      To reproduce:
      1. untar thai-textlayout.tar (attached)
      2. javac -classpath gslib.jar *.java
      3. java -classpath .:gslib.jar -Djava.security.policy=policy.all sun.applet.AppletViewer TextLayoutLTest1.html

      See the detailed information as belows.

      =======================================================================
      java version "2d-merlin64-13-May-03.tiger"
      Java(TM) 2 Runtime Environment, Standard Edition (build 2d-merlin64-13-May-03.tiger)
      Java HotSpot(TM) Client VM (build 1.5.0-beta-b06, mixed mode)
      =============================================================================
      i18n-u5-10a:/home/minchit/i18n_PIT/2d-pit-thai-verify 73 % locale
      LANG=th_TH.TIS620
      LC_CTYPE="th_TH.TIS620"
      LC_NUMERIC="th_TH.TIS620"
      LC_TIME="th_TH.TIS620"
      LC_COLLATE="th_TH.TIS620"
      LC_MONETARY="th_TH.TIS620"
      LC_MESSAGES="th_TH.TIS620"
      LC_ALL=
      ============================================================================
      i18n-u5-10a:/home/minchit/i18n_PIT/2d-pit-thai-verify 72 % xset q
      Keyboard Control:
        auto repeat: on key click percent: 0 LED mask: 00000000
        auto repeating keys: 00faaf8becff67f2
                              ff7bf0ff1ff89f03
                              1100000000000000
                              0000000000000000
        bell percent: 50 bell pitch: 400 bell duration: 100
      Pointer Control:
        acceleration: 2/1 threshold: 4
      Screen Saver:
        prefer blanking: no allow exposures: yes
        timeout: 900 cycle: 600
      Colors:
        default colormap: 0x21 BlackPixel: 1 WhitePixel: 0
      Font Path:
        /usr/openwin/lib/locale/th_TH/X11/fonts/75dpi,/usr/openwin/lib/X11/fonts/Type1/,/usr/openwin/lib/X11/fonts/Type1/sun/,/usr/openwin/lib/X11/fonts/F3bitmaps/,/usr/openwin/lib/X11/fonts/Speedo/,/usr/openwin/lib/X11/fonts/misc/,/usr/openwin/lib/X11/fonts/75dpi/,/usr/openwin/lib/X11/fonts/100dpi/,/usr/openwin/lib/locale/th_TH/X11/fonts/TrueType,/usr/openwin/lib/X11/fonts/TrueType/
      Bug Mode: compatibility mode is disabled
      DPMS (Energy Star):
        Standby: 1440 Suspend: 1620 Off: 1800
        DPMS is enabled
        Monitor is on
      FBPM (Frame Buffer Power Management):
        System is not capable of FBPM
      =====================================================================
      stack crawl:
      "AWT-EventQueue-1" prio=4 tid=0x002eb070 nid=0x11 runnable [f0dfe000..f0dffc2c]
              at sun.io.CharToByteSingleByte.convert(CharToByteSingleByte.java:199)
              at sun.font.XMap.<init>(XMap.java:202)
              at sun.font.XMap.getXMapperInternal(XMap.java:147)
              at sun.font.XMap.getXMapper(XMap.java:35)
              - locked <0xf60e8c18> (a java.lang.Class)
              at sun.font.NativeGlyphMapper.<init>(NativeGlyphMapper.java:36)
              at sun.font.NativeFont.getMapper(NativeFont.java:224)
              at sun.font.NativeStrike.<init>(NativeStrike.java:139)
              at sun.font.FileFontStrike.<init>(FileFontStrike.java:117)
              at sun.font.FileFont.createStrike(FileFont.java:74)
              at sun.font.Font2D.getStrike(Font2D.java:323)
              at sun.font.Font2D.getStrike(Font2D.java:254)
              at sun.font.CompositeStrike.getStrikeForSlot(CompositeStrike.java:59)
              at sun.font.CompositeStrike.getFontMetrics(CompositeStrike.java:75)
              at sun.font.Font2D.getFontMetrics(Font2D.java:355)
              at java.awt.Font.defaultLineMetrics(Font.java:1626)
              at java.awt.Font.getLineMetrics(Font.java:1692)
              at java.awt.font.TextLayout.fastInit(TextLayout.java:675)
              at java.awt.font.TextLayout.<init>(TextLayout.java:475)
              at TextLayoutLTest1$TextLayoutCanvas.paint(TextLayoutLTest1.java:105)
              at sun.awt.RepaintArea.paint(RepaintArea.java:177)
              at sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:407)
              at java.awt.Component.dispatchEventImpl(Component.java:3677)
              at java.awt.Component.dispatchEvent(Component.java:3476)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
              at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:208)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:157)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:151)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:143)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:104)

      ===========================================================================

      verified in b08, fixed.

      ###@###.### 2003-06-24

            prr Philip Race
            mtiensunw Minchi Tien (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: