JDK-8119879 : Scene Builder's Preview window does not refresh correctly
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: fx2.0
  • Priority: P2
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2011-10-16
  • Updated: 2015-06-17
  • Resolved: 2011-10-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
fx2.0.2Resolved
Related Reports
Duplicate :  
Relates :  
Description
Scene Builder's Preview window does not refresh correctly

(Using JavaFX Scene Builder 1.0 ea b10 on WinXP SP3 + JDK 1.6.0_25)

1. When previewing a fxml file, if I drag the corner of the preview window to enlarge it, the preview
    window is not refreshed

2. Sometimes the toolbar of the Builder's main window(not the preview window) disppeared

3. When switching the preview window and the main window from/to back/front, the preview window
    is not refreshed, but if you resize the preview window a little(one pixel is enough) the preview
    window will be refreshed

Meanwhile, the console repeatedly printed out below

java.lang.NullPointerException
        at com.sun.prism.impl.BaseGraphics.drawTextureVO(BaseGraphics.java:365)
        at com.sun.prism.impl.BaseGraphics.drawTexture(BaseGraphics.java:334)
        at com.sun.prism.impl.ps.BaseShaderGraphics.drawTexture(BaseShaderGraphics.java:103)
        at com.sun.prism.impl.BaseGraphics.drawTexture(BaseGraphics.java:325)
        at com.sun.prism.d3d.D3DSwapChain.present(D3DSwapChain.java:35)
        at com.sun.javafx.tk.quantum.PaintRunnable.run(PaintRunnable.java:332)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
        at com.sun.prism.render.RenderJob.run(RenderJob.java:29)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at com.sun.javafx.tk.quantum.QuantumRenderer$ObservedRunnable.run(QuantumRenderer.java:67)
        at java.lang.Thread.run(Thread.java:662)

I recorded the screen as a video, please see attached SceneBuilderIssue.wmv(6,946,810 bytes)

Below are answers to Engineering's questions:

Q1) Was screen lock (or a screen saver) ever activated after you started the program?
A1) No, screen saver was not activated, but I realized that something related to screen saver was
changed - the timeout for turning off the power of screen was changed to 1 min if battery is used,
and 15 min if AC power is used.

I guess if this is caused by that something was "broken" by the program and the settings
are all reset.

Q2) Is this consistently reproducible? On more than one system?
A2) Yes, it is always re-producible. I have 2 XP laptops(I have only XP laptops), the slower one is
Lenovo 3000 V200(CPU is Core2Duo T7100) on which I need 10 seconds to re-produced it, while,
the faster one is Thinkpad T61(Core2Duo T9300) on which I need over 60 seconds to re-produced
Comments
Yes I did the same tests and could not reproduce the problems. I think we can close this one.
19-10-2011

please close then
19-10-2011

Tested with scenebuilder-1_0-ea-b12-windows-i586-17_oct_2011.zip and it was not re-producible any more. This must have been fixed already.
19-10-2011

This is probably a duplicate of RT-15961 but we are waiting for confirmation of this before resolving the issue.
18-10-2011

can you test with the latest scrum build with my latest fixes integrated ?
18-10-2011

Q1. What version of JavaFX were you running? A1. The JavaFX runtime jar file is scenebuilder-1_0-ea-b10-windows-i586\SceneBuilder\bin\lib\lib\jfxrt.jar (not yet directly using JavaFX) Q2. where to download "JavaFX Scene Builder" ? A2. https://java-partner.sun.com/portal/service/dc/packages/SCENE-BUILDER/ Q3. HW configuration. What video card do you use ? A3. The video card is NVIDIA Quadro NVS 140M Q4. Do you use latest driver, what prism prints with verbose level ? A4. Yes. I have upgraded to the latest 6.14.12.6658 (2011/01/07). When running with -Dprism.verbose=true, the logs are like below: Prism pipeline init order: d3d j2d Using t2k for text rasterization Using dirty region optimizations Prism pipeline name = com.sun.prism.d3d.D3DPipeline Loading D3D native library ... succeeded. OS Information: Windows XP build 2600 D3D Driver Information: NVIDIA Quadro NVS 140M \\.\DISPLAY1 Driver nv4_disp.dll, version 6.14.12.6658 Pixel Shader version 3.0 Device : ven_10DE, dev_0429, subsys_20D817AA Direct3D initialization succeeded (X) Got class = class com.sun.prism.d3d.D3DPipeline D3DPipeline:getInstance(), d3dEnabled=true Initialized prism pipeline: com.sun.prism.d3d.D3DPipeline RESIZE: 213075640619 w: 481 h: 228 java.net.MalformedURLException: no protocol: at java.net.URL.<init>(URL.java:567) at java.net.URL.<init>(URL.java:464) at java.net.URL.<init>(URL.java:413) at com.sun.javafx.iio.common.ImageTools.createInputStream(ImageTools.java:425) at com.sun.javafx.iio.ImageStorage.getLoaderBySignature(ImageStorage.java:321) at com.sun.javafx.iio.ImageStorage.loadAll(ImageStorage.java:259) at com.sun.javafx.tk.quantum.PrismImageLoader2.loadAll(PrismImageLoader2.java:89) at com.sun.javafx.tk.quantum.PrismImageLoader2.<init>(PrismImageLoader2.java:34) at com.sun.javafx.tk.quantum.QuantumToolkit.loadImage(QuantumToolkit.java:530) at javafx.scene.image.Image.loadImage(Image.java:862) at javafx.scene.image.Image.initialize(Image.java:660) at javafx.scene.image.Image.<init>(Image.java:564) at com.oracle.javafx.authoring.persist.SaveFxml.<clinit>(SaveFxml.java:395) at com.oracle.javafx.authoring.persist.LoadFxml.<clinit>(LoadFxml.java:113) at com.oracle.javafx.authoring.Project.forFxml(Project.java:407) at com.oracle.javafx.authoring.Project.forFxml(Project.java:389) at com.oracle.javafx.authoring.DesignerTool.loadFXMLLayout(DesignerTool.java:167) at com.oracle.javafx.authoring.DesignerTool.openExistingFxml(DesignerTool.java:312) at com.oracle.javafx.authoring.VTPopup$15$1.run(VTPopup.java:552) at com.oracle.javafx.authoring.VTPopup$6.run(VTPopup.java:371) at com.oracle.javafx.authoring.util.Utils$2.handle(Utils.java:456) at com.sun.scenario.animation.AbstractMasterTimer.timePulseImpl(AbstractMasterTimer.java:370) at com.sun.scenario.animation.AbstractMasterTimer$MainLoop.run(AbstractMasterTimer.java:280) at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:394) at com.sun.javafx.tk.quantum.QuantumToolkit$10.run(QuantumToolkit.java:330) at com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29) at com.sun.glass.ui.win.WinApplication$2$1.run(WinApplication.java:62) at java.lang.Thread.run(Thread.java:662) RESIZE: 220681889178 w: 1192 h: 766 new alphas new alphas RESIZE: 235637514823 w: 256 h: 258 new alphas RESIZE: 237429177451 w: 800 h: 600 ... ... RESIZE: 367664947081 w: 1287 h: 850 RESIZE: 367743919967 w: 1285 h: 847 java.lang.NullPointerException at com.sun.prism.impl.BaseGraphics.drawTextureVO(BaseGraphics.java:365) at com.sun.prism.impl.BaseGraphics.drawTexture(BaseGraphics.java:334) at com.sun.prism.impl.ps.BaseShaderGraphics.drawTexture(BaseShaderGraphics.java:103) at com.sun.prism.impl.BaseGraphics.drawTexture(BaseGraphics.java:325) at com.sun.prism.d3d.D3DSwapChain.present(D3DSwapChain.java:35) at com.sun.javafx.tk.quantum.PaintRunnable.run(PaintRunnable.java:332) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) at com.sun.prism.render.RenderJob.run(RenderJob.java:29) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at com.sun.javafx.tk.quantum.QuantumRenderer$ObservedRunnable.run(QuantumRenderer.java:67) at java.lang.Thread.run(Thread.java:662) RESIZE: 367761062090 w: 1068 h: 701 ...
18-10-2011

3 questions: 1. where to download "JavaFX Scene Builder" ? 2. HW configuration. What video card do you use ? 3. Do you use latest driver, what prism prints with verbose level ? Thanks
18-10-2011

Question for the submitter: what version of JavaFX were you running?
18-10-2011

This may be related to RT-15961 which is now fixed.
18-10-2011

This may be affected / fixed by recent changes in the graphics forest. Assign to Kirill to verify. Note that because of the exceptions I am raising the priority to Critical pending investigation.
18-10-2011