JDK-8126138 : Mac Lion window flickering and NPE in upload pixels
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: fx2.1,7u6
  • Priority: P4
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2012-05-07
  • Updated: 2015-06-17
  • Resolved: 2012-06-28
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.
JDK 7
7u6Resolved
Related Reports
Duplicate :  
Description
Currently I'm using the JavaFX 2.1 GA Build with Mac OS X Lion (10.7.3) on my MacBook Pro (2.33 GHz Intel Core 2 Duo, 4GB 667 MHz DDR2 SDRAM, ATI Radeon X1600 256 MB) an run into some performance and ui problems. The overall rendering framerate is arround ~30fps (which is normally 60fps on my desktop computer) and if I try to resize the main window the window starts to flicker and I get the following exception:

Glass detected outstanding Java exception at -[GlassRunnable run]:src/com/sun/mat/ui/GlassApplication.m:163
Exception in thread "AWT-AppKit" java.lang.NullPointerException
 at com.sun.glass.ui.mac.MacView._uploadPixels(MacView.java:72)
 at com.sun.glass.ui.View.uploadPixels(View.java:706)
 at com.sun.prism.j2d.J2DPresentable$Glass$1.run(J2DPresentable.java:99)
Comments
The NPE happens in the implementation of MacView._uploadPixels() because the 'pixels' object passed to the View.uploadPixels() method is null. The j2d pipeline should not pass 'null' as the pixels object to Glass. Reassigning back to Graphics team to take a look at the J2D Prism pipeline implementation and make sure they never pass null to Glass.
11-05-2012

This is a very old graphics card that is not supported by the Prism-HW renderer, so we fall back to a Java2D-based SW renderer which is certainly responsible for the drop in frame rate. Assign to the glass team to take a look at the NullPointerException, which may be responsible the flickering.
07-05-2012