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

X11Renderer.doFillPoly : java.lang.InternalError using uk.co.ist.mwt.FramedPanel

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • client-libs
    • 2d
    • x86
    • linux



      Name: bsC130419 Date: 07/27/2001


      java version "1.4.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
      Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)

      On Linux (SuSe 7.1 with KDE and java-version 1.4.0_beta)
      the following source-code causes:
      Exception in thread "main" java.lang.InternalError: Drawable is NULL

      On Windows NT (SP5) with the same java-version it does not.

      The problem is reproducible with the option -Xint (java -Xint TestFramedPanel).
      And it is still reproducible with the option -Xfuture (java -Xfuture
      TestFramedPanel).

      On the same Linux with java-version 1.3.1 the source works fine!

      On Windows NT (SP5) with different java-versions (1.1.8, 1.2.1, 1.3.1,
      1.4.0_beta) the source works fine:

      --- begin source ---

      import java.awt.*;
      import uk.co.ist.mwt.*;

      class TestFramedPanel extends Frame
      {
        Label testLabel = new Label("Test");
        FramedPanel testFrame = new FramedPanel();
          
        public TestFramedPanel()
        {
      testFrame = new FramedPanel();
      testFrame.add( testLabel );

      this.add( testFrame );
        }

        public static void main( String args[] )
        {
      TestFramedPanel myTestFramedPanel = new TestFramedPanel();
      myTestFramedPanel.pack();
      myTestFramedPanel.show();
        }

      }

      --- end source ---

      On Linux the source-code causes this message:
      Exception in thread "main" java.lang.InternalError: Drawable is NULL
         at sun.awt.X11Renderer.doFillPoly(Native Method)
         at sun.awt.X11Renderer.fillPolygon(X11Renderer.java:192)
         at sun.java2d.pipe.ValidatePipe.fillPolygon(ValidatePipe.java:105)
         at sun.java2d.SunGraphics2D.fillPolygon(SunGraphics2D.java:1985)
         at uk.co.ist.mwt.ShadowDrawer.drawShadow(ShadowDrawer.java:147)
         at uk.co.ist.mwt.ShadowDrawer.draw3DRect(ShadowDrawer.java:169)
         at uk.co.ist.mwt.ShadowDrawer.draw3DRect(ShadowDrawer.java:161)
         at
      uk.co.ist.mwt.FrameLayoutManager.drawFrameShadow(FrameLayoutManager.java:249)
         at
      uk.co.ist.mwt.FrameLayoutManager.layoutContainer(FrameLayoutManager.java:311)
         at java.awt.Container.layout(Container.java:798)
         at java.awt.Container.doLayout(Container.java:788)
         at java.awt.Container.validateTree(Container.java:865)
         at java.awt.Container.validateTree(Container.java:872)
         at java.awt.Container.validate(Container.java:840)
         at java.awt.Window.pack(Window.java:412)
         at TestFramedPanel.main(TestFramedPanel.java:20)


      The package uk.co.ist.mwt.* is shipped with XDesigner,
      which is similar to Sun WorkShop Visual. In this package which is
      also called the MWT Library there is the class FramedPanel().
      The identical package is shipped with Sun WorkShop Visual.

      For further information about Workshop Visual and Java see:
      http://docs.sun.com/htmlcoll/coll.82.5/iso-8859-1/SWVISUG/JavaDesigning_1.html

      For further information about Frame see:
      http://docs.sun.com/htmlcoll/coll.82.5/iso-8859-1/SWVISUG/WidgetReference_1.html
      and search for "Frame".


      I can not describe the problem more exact, because I don't have the
      source files of the MWT library and the class ShadowDrawer is
      not public. I do not think that it is an error
      in the class FramedPanel().But I think this is a problem of
      the new java-version (1.4.0) on Linux and has something to do with
      native code, because with version 1.3.1 on the same(!) Linux
      the method sun.awt.X11Renderer.doFillPoly(Native Method) works fine.
      (Review ID: 128879)
      ======================================================================

            Unassigned Unassigned
            bstrathesunw Bill Strathearn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: