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

assertion while accessing awt_canvas_track_motif_focus_changes with bad klas

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1 P1
    • 1.4.0
    • solaris_9, 1.4.0
    • client-libs
    • None
    • beta2
    • sparc
    • solaris_8
    • Verified

      assertion/NPE while accessing awt_canvas_track_motif_focus_changes with bad klas
      This bug was filed because original bug 4368588 now crashes with assert/NPE.

      To repoduce:

      1, Download example Attachment example.tar

      2, Unpack the tar-file with tar -xf example.tar This will create the subdirectory 'example'.

      3, Do a 'cd example' and unpack the src.jar file using 'unzip src.jar'.

      4, Compile the java source code with 'javac *.java'.

      5, Start the application with 'java PPMApp'.

      Run a fresh debug1 vm (2pm edt, 6/14/01) in a b68 jdk. Click on
      'Open Report', select folder 'Report' and file 'example1.ppm'. When the
      report comes up, click on middle tab at the top of the window.
      You'll get an assertion failure on what appears to be a bad klassoop
      ultimately generated by a jni call from awt_canvas_track_motif_focus_changes.
      See the attached file trace.txt.




      Got an assertion failure generating a
      handle for an address passed in by awt_canvas_track_motif_focus_changes.
      See the attached file gary.txt, search for 'current thread: t@12'.

      An example of the NullPointerException is
      java.lang.NullPointerException
      at sun.java2d.SunGraphics2D.checkFontInfo(SunGraphics2D.java:578)
      at sun.java2d.SunGraphics2D.<init>(SunGraphics2D.java:229)
      at sun.awt.image.OffScreenImage.getGraphics(OffScreenImage.java:74)
      at jclass.base.BaseComponent.getDoubleBufferGraphics(BaseComponent.java:346)
      at jclass.base.TransientComponent.paint(TransientComponent.java:662) 19:06:24 Deb PreDefReportDialog created.

      at jclass.base.BaseComponent.repaint(BaseComponent.java:404)
      at jclass.base.BaseComponent.paintImmediately(BaseComponent.java:384)
      at jclass.bwt.JCButton.armAction(JCButton.java:303)
      at jclass.bwt.JCButton.mouseDown(JCButton.java:486)
      at jclass.base.TransientComponent.processMouseEvent(TransientComponent.java:281)
      at java.awt.Component.processEvent(Component.java:4762)
      at java.awt.Component.dispatchEventImpl(Component.java:3492)
      at java.awt.Component.dispatchEvent(Component.java:3353)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:439)
      at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:150)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:131)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

      It appears there are bad oops floating around.

      This is the Bug Eric Hawkes asked me to file.

            dmikhalksunw Denis Mikhalkin (Inactive)
            collins Gary Collins (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: