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

Kestrel Build I, NullPtrException while quitting GraphLayoutDemo

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.3.0
    • 1.3.0
    • client-libs
    • None
    • beta
    • x86, sparc
    • generic, solaris_2.6, solaris_7, windows_nt

      I ran the JDK 1.3 GraphLayout demo using HotSpot Client build I on Kestrel build I. When I was trying to quit the applet, the program crashed with a null pointer exception and dumped the following:

      D:\jdkdemos\local>java -Xmixed sun.applet.AppletViewer file:c:\jdk1.3/demo/appl
      ets/GraphLayout/example1.html
      Exception occurred during event dispatching:
      java.lang.NullPointerException
              at sun.java2d.SunGraphics2D.getFontRenderContext(..\..\..\..\src\share\c
      lasses\sun\java2d\SunGraphics2D.java:2328)
              at sun.awt.image.BufferedImageGraphics2D.computeFontOptimizations(..\..\
      ..\..\src\share\classes\sun\awt\image\BufferedImageGraphics2D.java:272)
              at sun.awt.image.BufferedImageGraphics2D.drawString(..\..\..\..\src\shar
      e\classes\sun\awt\image\BufferedImageGraphics2D.java:1077)
              at sun.java2d.SunGraphics2D.drawString(..\..\..\..\src\share\classes\sun
      \java2d\SunGraphics2D.java:2214)
              at GraphPanel.update(..\..\..\demo\applets\GraphLayout\Graph.java:239)
              at sun.awt.windows.WComponentPeer.handleEvent(..\..\..\..\src\win32\clas
      ses\sun\awt\windows\WComponentPeer.java:207)
              at java.awt.Component.dispatchEventImpl(..\..\..\..\src\share\classes\ja
      va\awt\Component.java:2552)
              at java.awt.Container.dispatchEventImpl(..\..\..\..\src\share\classes\ja
      va\awt\Container.java:1282)
              at java.awt.Component.dispatchEvent(..\..\..\..\src\share\classes\java\a
      wt\Component.java:2412)
              at java.awt.EventQueue.dispatchEvent(..\..\..\..\src\share\classes\java\
      awt\EventQueue.java:302)
              at java.awt.EventDispatchThread.pumpOneEvent(..\..\..\..\src\share\class
      es\java\awt\EventDispatchThread.java:105)
              at java.awt.EventDispatchThread.pumpEvents(..\..\..\..\src\share\classes
      \java\awt\EventDispatchThread.java:95)
              at java.awt.EventDispatchThread.run(..\..\..\..\src\share\classes\java\a
      wt\EventDispatchThread.java:86)


      STEPS TO REPRODUCE
      - Install Kestrel 1.3 build I on either Windows NT or Windows 95. I am running on a single processor Pentium 166.
      - Launch the Kestrel JDK GraphLayout Demo using the following command

      java -Xmixed sun.applet.AppletViewer file:c:\jdk1.3/demo/applets/GraphLayout/example1.html

      - When the demo is running, enable the Stress and Random checkboxes.
      - Click the Scramble button.
      - Quit the demo by clicking the close box in the upper right hand corner of the applet's window.
      - Result: The applet will crash. The crash does not happen all the time, but can be very reproducible if you do things at the right time. It appears to only crash when the applet is responding to events. To reproduce it, just click the check boxes, then click the buttons, and then hit the close box.

            dmendenhsunw David Mendenhall (Inactive)
            pchinsunw Philip Chin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: