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

Java 8 Javafx Raspberry Pi GPU error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • emb-8u26
    • 8
    • javafx
    • None
    • java 8, raspberry pi

      Raspberry pi embedded with Java 8

      The setup is, 512 pi, GPU split is 50/50 and overclocked to 900mHz running off 16gig class 10 card.

      after a while of looping over images the prism begins to throw the gl505 error from the graphics classes as well as the screen blanks out, as if it can't keep up.

      I believe there maybe a memory leak on the graphics side of the code, just not sure how to debug it. I pretty much have two imageviews and the fade across to one and another.

      It gets around to 16 to 17 transitions before it begins to dump in the output.

      java.lang.NullPointerException
      at com.sun.prism.impl.BaseGraphics.drawTexture(BaseGraphics.java:389)
      at com.sun.prism.impl.ps.BaseShaderGraphics.drawTexture(BaseShaderGraphics.java:138)
      at com.sun.javafx.sg.prism.NGImageView.renderContent(NGImageView.java:122)
      at com.sun.javafx.sg.prism.NGNode$CacheFilter.impl_renderNodeToCache(NGNode.java:1996)
      at com.sun.javafx.sg.prism.BaseCacheFilter.render(BaseCacheFilter.java:238)
      at com.sun.javafx.sg.prism.NGNode$CacheFilter.render(NGNode.java:1939)
      at com.sun.javafx.sg.prism.NGNode.renderCached(NGNode.java:1880)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:1592)
      at com.sun.javafx.sg.prism.NGImageView.doRender(NGImageView.java:102)
      at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1520)
      at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:233)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:199)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1249)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:1598)

      You just need to create a folder called images in the /home/pi directory. My test images were pngs and all over 3mb.

      To run use the following:

      java -jar -Dcom.sun.javafx.transparentFramebuffer=true -Dprism.verbose=true "whateveryoucallthejarfile"

      See http://www.raspberrypi.org/forums/viewtopic.php?p=530084#p530084 for test source code

            ddhill David Hill (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: