On January 27th, this site will be read-only as we migrate to Oracle Forums for an improved community experience. You will not be able to initiate activity until January 30th, when you will be able to use this site as normal.

    Forum Stats

  • 3,889,629 Users
  • 2,269,769 Discussions
  • 7,916,800 Comments

Discussions

How to get around the limited canvas size (bug)

ee918144-bd34-400d-9048-264fff415ffb
edited Feb 23, 2016 3:04PM in JavaFX 2.0 and Later

Avê
I do have problems with Canvas.

(Info: I know of the canvas bug! This bug is still not fixed yet )

But first, what am I doing ?

I am drawing huge signal functions which I want to see. I'm using a Scroll Pane in which a canvas is placed, which is as big as the signal function is in width and height. As result I can scroll to get at every position at the canvas.

That's the simplest solution to see the whole signal function drawed with great performance. But .. maybe some people can image. Those signal functions aren't as that small. They're around 2^18 in width and in worst case szenarios with a height of 5000 ?

So now, if those canvas are as that big I get a NullPointer Exception

And also I do not see where the Null Pointer Exception is generated.

See->

java.lang.NullPointerException

  at com.sun.javafx.sg.prism.NGCanvas$RenderBuf.validate(Unknown Source)

  at com.sun.javafx.sg.prism.NGCanvas.initCanvas(Unknown Source)

  at com.sun.javafx.sg.prism.NGCanvas.renderContent(Unknown Source)

  at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)

  at com.sun.javafx.sg.prism.NGNode.render(Unknown Source)

  at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)

  at com.sun.javafx.sg.prism.NGRegion.renderContent(Unknown Source)

  at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)

  at com.sun.javafx.sg.prism.NGNode.render(Unknown Source)

  at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)

  at com.sun.javafx.sg.prism.NGRegion.renderContent(Unknown Source)

  at com.sun.javafx.sg.prism.NGNode.renderForClip(Unknown Source)

  at com.sun.javafx.sg.prism.NGNode.renderRectClip(Unknown Source)

  at com.sun.javafx.sg.prism.NGNode.renderClip(Unknown Source)

  at com.sun.javafx.sg.prism.CacheFilter.impl_renderNodeToCache(Unknown Source)

  at com.sun.javafx.sg.prism.CacheFilter.render(Unknown Source)

  at com.sun.javafx.sg.prism.NGNode.renderCached(Unknown Source)

  at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)

  at com.sun.javafx.sg.prism.NGNode.render(Unknown Source)

  at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)

  at com.sun.javafx.sg.prism.NGRegion.renderContent(Unknown Source)

  at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)

  at com.sun.javafx.sg.prism.NGNode.render(Unknown Source)

  at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)

  at com.sun.javafx.sg.prism.NGRegion.renderContent(Unknown Source)

  at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)

  at com.sun.javafx.sg.prism.NGNode.render(Unknown Source)

  at com.sun.javafx.tk.quantum.ViewPainter.doPaint(Unknown Source)

  at com.sun.javafx.tk.quantum.ViewPainter.paintImpl(Unknown Source)

  at com.sun.javafx.tk.quantum.PresentingPainter.run(Unknown Source)

  at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

  at java.util.concurrent.FutureTask.runAndReset(Unknown Source)

  at com.sun.javafx.tk.RenderJob.run(Unknown Source)

  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

  at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(Unknown Source)

  at java.lang.Thread.run(Unknown Source)

If the canvas is not as that big I do not have this problem.

Any suggestions to solve this problem ?

Aswell I have to ask, when this bug get's fixed.

Nachricht geändert durch ee918144-bd34-400d-9048-264fff415ffb

Answers

This discussion has been closed.