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

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

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b26

      Description

      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

        Attachments

        1. Test.java
          4 kB
          Dmitry Bessonov

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: