-
Bug
-
Resolution: Fixed
-
P3
-
8
Controls.TableView-Keyboard benchmark fails with NullPointerException starting from
build 8.0-graphics-scrum-h471. The stack trace is:
java.lang.NullPointerException
at com.sun.javafx.sg.prism.RegionImageCache.getImage(RegionImageCache.java:105)
at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:472)
at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:387)
at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:65)
See full log also here:
http://aurora-ds.ru.oracle.com:9500/runs/143212.FX2-graphics-scrum-6/20121219183812.143212.FX2-graphics-scrum.7u4b22.win-mid.Controls.TableView-Keyboard.app-adhoc.prism-hw-fullspeed.runBenchmark/.workload.log
It looks like the issue is caused by
"Fix forRT-25178: Background of controls becomes black after waking from sleep
Specifically this is a bug on windows due to images who's backing surface is lost (XP and Vista, or when D3DEx9 is disabled). The RegionImageCache takes care of making sure images are only returned for the right Screen, and that images who's surface is lost are thrown away. I also added PulseLogger instrumentation to know how often that happens, and how often we are creating new images and reusing images.
"
Steps to run the benchmark:
> cd JFX_WS/tests/performance/Controls/
> ant
> java
-cp "JFX_HOME/rt/lib/jfxrt.jar;./dist/Controls.jar;../FXBenchmark/dist/FXBenchmark.jar;../../../import/benchmarks-2.1.1/benchmarks-2.1.1.jar"
jrockit.bm.Main controls.bm.TableViewBenchmark -i 1 -wt 3 -tr 10 -mode keyboard -usePulse true -keysPerInjection 1 -cells 150
build 8.0-graphics-scrum-h471. The stack trace is:
java.lang.NullPointerException
at com.sun.javafx.sg.prism.RegionImageCache.getImage(RegionImageCache.java:105)
at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:472)
at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:387)
at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:65)
See full log also here:
http://aurora-ds.ru.oracle.com:9500/runs/143212.FX2-graphics-scrum-6/20121219183812.143212.FX2-graphics-scrum.7u4b22.win-mid.Controls.TableView-Keyboard.app-adhoc.prism-hw-fullspeed.runBenchmark/.workload.log
It looks like the issue is caused by
"Fix for
Specifically this is a bug on windows due to images who's backing surface is lost (XP and Vista, or when D3DEx9 is disabled). The RegionImageCache takes care of making sure images are only returned for the right Screen, and that images who's surface is lost are thrown away. I also added PulseLogger instrumentation to know how often that happens, and how often we are creating new images and reusing images.
"
Steps to run the benchmark:
> cd JFX_WS/tests/performance/Controls/
> ant
> java
-cp "JFX_HOME/rt/lib/jfxrt.jar;./dist/Controls.jar;../FXBenchmark/dist/FXBenchmark.jar;../../../import/benchmarks-2.1.1/benchmarks-2.1.1.jar"
jrockit.bm.Main controls.bm.TableViewBenchmark -i 1 -wt 3 -tr 10 -mode keyboard -usePulse true -keysPerInjection 1 -cells 150