|
Quick Lists
|
|
Bug ID:
|
6667607
|
|
Votes
|
0
|
|
Synopsis
|
D3D/OGL: NPE is thrown when running PerspectiveTest from the effects project [RSL]
|
|
Category
|
java:classes_2d
|
|
Reported Against
|
|
|
Release Fixed
|
6u10(b20)
|
|
State
|
10-Fix Delivered,
Verified,
bug
|
|
Priority:
|
3-Medium
|
|
Related Bugs
|
6635805
|
|
Submit Date
|
26-FEB-2008
|
|
Description
|
an NPE is thrown after playing with PerspectiveTest demo from
the effects project:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at sun.java2d.SunGraphics2D.validateColor(SunGraphics2D.java:1646)
at sun.java2d.SunGraphics2D.<init>(SunGraphics2D.java:237)
at sun.awt.image.SunVolatileImage.createGraphics(SunVolatileImage.java:192)
at sun.java2d.pipe.hw.AccelTypedVolatileImage.createGraphics(AccelTypedVolatileImage.java:54)
at sun.awt.image.VolatileSurfaceManager.initContents(VolatileSurfaceManager.java:263)
at sun.java2d.d3d.D3DVolatileSurfaceManager.initContents(D3DVolatileSurfaceManager.java:209)
at sun.awt.image.SunVolatileImage.<init>(SunVolatileImage.java:74)
at sun.java2d.pipe.hw.AccelTypedVolatileImage.<init>(AccelTypedVolatileImage.java:38)
at sun.java2d.d3d.D3DGraphicsConfig.createCompatibleVolatileImage(D3DGraphicsConfig.java:273)
at com.sun.scenario.effect.impl.hw.HWRenderer$1.run(HWRenderer.java:75)
Posted Date : 2008-02-26 01:13:26.0
|
|
Work Around
|
N/A
|
|
Evaluation
|
The effects framework creates too many VIs and we run out
of vram, and the bug is that that we try to initialize these
"special" VolatileImages if their accelerated surface is null.
They're "special" because they are created via the RSL API
(AccelGraphicsConfig.createCompatibleVI()) which is supposed to
return null if requested image type can not be created.
So for these images we do not create a heap-based backup surface
if an accelerated surface couldn't be created since they will not
be used if they aren't accelerated.
One way to fix this is to check if the sdCurrent is null in
VSM.initContents() and don't attempt to initialize the image.
Posted Date : 2008-02-26 01:13:26.0
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |