[Source] NPE fix proposal

Norbraten, Terry (CIV) tdnorbra at nps.edu
Thu Jun 7 13:39:07 PDT 2012


Nope, not using apps/replica, though we should.

He's using the browser app with the following switch: -captureViewpoints

<java classname="xj3d.browser.Xj3DBrowser" fork="${fork}" dir=".">
  <classpath>
    <pathelement path="${classpath}"/>
    <fileset refid="xj3d.jars.all"/>
  </classpath>
  <!-- -Djava.library.path needs to point to jogl.dll driver -->
  <jvmarg 
value="-Djava.library.path=${xj3d.dir}/../${native.library.path}"/>
  <arg value="-captureViewpoints"/>
  <arg value="${relative.path1}/${relative.path2}/${name.short}.x3d"/>
                        </java>



On 6/7/12 1:25 PM, "Alan Hudson" <alan at shapeways.com> wrote:

>On 6/7/2012 1:07 PM, Don Brutzman wrote:
>> Offline rendering triggers a bug in line (195/197) of OGLInline.java,
>> here is a fix.  Note that root cause isn't addressed...
>>
>>        if (implGroup.isLive()) {
>>            stateManager.addEndOfThisFrameListener(this);
>>        } else {
>>            updateNodeBoundsChanges(null);
>>        }
>>
>> to
>>        // avoid occasional null-pointer exception (NPE) when offline
>> rendering scenes, such as
>>        // 
>> 
>>http://www.web3d.org/x3d/content/examples/Basic/Vrml97Specification/Chopp
>>erRotor.x3d
>>        if ((implGroup != null) && implGroup.isLive()) {
>> etc.
>>
>> 
>>C:\Xj3D.nps\src\java\org\web3d\vrml\renderer\ogl\nodes\networking\OGLInli
>>ne.java 
>>
>>
>when you say offline rendering are you referring to replica in
>apps/replica?  Just want to make sure I understand the context.
>
>
>-- 
>Alan Hudson, Director 3D Tools
>www.shapeways.com
>
>
>_______________________________________________
>Source mailing list
>Source at web3d.org
>http://web3d.org/mailman/listinfo/source_web3d.org




More information about the Source mailing list