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

Need to fix misleading Texture exception message when the require size exceeds the maximum size limit

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • 8u20
    • 7u6
    • javafx
    • None

      The following exception message is misleading to user (require dimension (0x0)):

      java.lang.RuntimeException: Requested texture dimensions (10004x10967) require dimensions (0x0) that exceed maximum texture size (8192)
      at com.sun.prism.es2.ES2Texture.create(ES2Texture.java:141)
      at com.sun.prism.es2.ES2ResourceFactory.createTexture(ES2ResourceFactory.java:60)
      at com.sun.prism.impl.BaseResourceFactory.createTexture(BaseResourceFactory.java:126)

      Why can "0x0" be an issue? This is puzzling to end user. We need to report the actual require size; not reset the height and width to zero and report those values.

            ckyang Chien Yang (Inactive)
            ckyang Chien Yang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: