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

Calling gd.setFullScreenWindow(null) throws a NPE on SuSE 10

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 6
    • client-libs
    • None
    • 2d
    • x86
    • linux_suse_sles_10

      I have test which loops through all the GraphicsDevices available on the platform. For each GD, it obtains all the GCs and loops through all the GCs and does the following -

      - Create a JFrame specific to the GC
      - Add a few swing components to it
      - Push the JFrame to fullscreen mode
      - Restore the frame to normal mode
      - Dispose the frame

      This is done repeatedly for all the GCS and for all the GDs as well. After a couple of loops, this throws a NullPointerException at the setFullScreenWindow(null) method call on SuSE10.0. This works fine on Win32. Not sure if this is specific to the video card. I have ATI Radeon 9600 installed on this machine with the latest ATI driver - 8.34.8 and I have turned on dual-head.

      Here is the exception-
      Exception in thread "main" java.lang.NullPointerException
      at sun.awt.image.VolatileSurfaceManager.displayChanged(VolatileSurfaceManager.java:310)
      at sun.awt.SunDisplayChanger.notifyListeners(SunDisplayChanger.java:102)
      at sun.awt.X11GraphicsEnvironment.displayChanged(X11GraphicsEnvironment.java:1068)
      at sun.awt.X11GraphicsDevice.setDisplayMode(X11GraphicsDevice.java:380)
      at sun.awt.X11GraphicsDevice.setFullScreenWindow(X11GraphicsDevice.java:284)
      at SwingMultiFullScreenTest.startTest(SwingMultiFullScreenTest.java:72)
      at SwingMultiFullScreenTest.main(SwingMultiFullScreenTest.java:83)

      I am able to reproduce this since JDK6-b59d and on JDK7 as well. It works fine on JDK6-b40.

      I have attached a sample test. Execute the sample test and you will see the above exception after few loops.

            tdv Dmitri Trembovetski (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: