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

GraphicsDevice.setDisplayMode(REFRESH_RATE_UNKNOWN) throws IAE: Unable to set display mode!

XMLWordPrintable

    • 2d
    • b26

      When running on a remote macos-aarch64 system, using JDK17 the attached test program generates:

      =================
      GraphicsDevice: sun.awt.CGraphicsDevice@6e8cf4c6
      DisplayMode: 1920x1080x32bpp@60Hz
      Exception in thread "main" java.lang.IllegalArgumentException: Unable to set display mode!
      at java.desktop/sun.awt.CGraphicsDevice.nativeSetDisplayMode(Native Method)
      at java.desktop/sun.awt.CGraphicsDevice.setDisplayMode(CGraphicsDevice.java:315)
      at Test.main(Test.java:43)
      =================

      This doesn't seem to be reproducible on an macos-aarch64 / JDK17 using a physical display

            prr Philip Race
            dbessono Dmitry Bessonov
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: