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

IllegalArgumentException in java.awt.image.ReplicateScaleFilter

    Details

    • Subcomponent:
    • Resolved In Build:
      b163

      Backports

        Description


        For a Java appliction on Debian GNU/Linux 8 (OS) on Linux mde 4.7.5 (kernel)
        with JRE 1.7.0_121-b31, the application crashes when restarting the
        application without restarting the device. The following exception is thrown
        when setting javax.swing.jcomponent cursor:

        java.lang.IllegalArgumentException: Width (0) and height (0) must be non-zero
                        at
        java.awt.image.ReplicateScaleFilter.<init>(ReplicateScaleFilter.java:102)
                        at java.awt.Image.getScaledInstance(Image.java:173)
                        at sun.awt.CustomCursor.<init>(CustomCursor.java:69)
                        at sun.awt.X11CustomCursor.<init>(X11CustomCursor.java:43)
                        at sun.awt.X11.XCustomCursor.<init>(XCustomCursor.java:42)
                        at
        sun.awt.X11.XToolkit.createCustomCursor(XToolkit.java:1069)

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dmarkov Dmitry Markov
                  Reporter:
                  shadowbug Shadow Bug
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Due:
                    Created:
                    Updated:
                    Resolved: