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

Frequent canvas updates lead to NullPointerExceptions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P4
    • None
    • 7u6
    • javafx
    • None
    • java.runtime.version=1.7.0_06-ea-b17
      javafx.runtime.version=2.2.0-beta-b16
      nvidia gtx460
      win7

    Description

      If I run an animation which updates a canvas each pulse via setting pixels from a buffer using a PixelWriter. After a few seconds I start to get exceptions and the animation pauses for a while before continuing. Exceptions relate to texture drawing and caching.

      I only get exceptions when java is launched with the -server flag, but not with a -client flag. This leads me to believe that this issue is related to garbage collection in some way.

      A sample test application to demonstrate the issue is attached.
      On my machine (when launched with a java -server flag), the app runs fine for six seconds, then starts printing exceptions.
      Sample exceptions generated by the app are attached.

      Attachments

        Issue Links

          Activity

            People

              ckyang Chien Yang (Inactive)
              josmithjfx John Smith (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: