Hi Roland,

    What OS and graphics card are you runing on ?
What if directx version of Java3D is use in case
you are not using windows NT/Solaris ?

Please also send us a complete test case to investiagate.

Thanks.

- Kelvin
-------------
Java 3D Team
Sun Microsystems Inc.

Roland Sarrazin wrote:
> Hello,
>
> I've got a problem with the following combination: Java3D 1.3
> (java3d-1_3-windows-i586-opengl-sdk.exe) and JDK 1.4
> (j2sdk-1_4_0_02-windows-i586.exe), both downloaded yesterday.
>
> It crashes while executing this piece of code:
>
>         Canvas3D canvas=new
> Canvas3D(SimpleUniverse.getPreferredConfiguration(),true);
>         BufferedImage img=new
> BufferedImage(this.xNum+1,this.yNum+1,BufferedImage.TYPE_INT_RGB);
>         ImageComponent2D buffer=new
> ImageComponent2D(ImageComponent2D.FORMAT_RGB,img);
>         canvas.getScreen3D().setSize(this.xNum+1,this.yNum+1);
>         canvas.getScreen3D().setPhysicalScreenHeight(0.0254/90.0 *
> (this.xNum+1));
>         canvas.getScreen3D().setPhysicalScreenWidth(0.0254/90.0 *
> (this.yNum+1));
>         canvas.setOffScreenBuffer(buffer);
>
>         SimpleUniverse universe=new SimpleUniverse(canvas);
>
>         View view=universe.getViewer().getView();
>         view.setCompatibilityModeEnable(true);
>
>         Transform3D transf=new Transform3D();
>         int[] myTab;
>         for(int z=0;z<zNum+1;z++)
>         {
>             float near=this.zMax-(float)(z)*this.zStep;
>             float far=this.zMin;
>
>
> transf.ortho(this.xMin,this.xMax,this.yMin,this.yMax,-near,-far);
>
>             view.setLeftProjection(transf);
>
>             canvas.renderOffScreenBuffer();
>             canvas.waitForOffScreenRendering();
>
>
> myTab=buffer.getImage().getRGB(0,0,this.xNum+1,this.yNum+1,null,0,this.xNum+
> 1);
>         }
>
> I've snipped out the pieces of code that do not call any of Java3D's
> functions, so that this piece of code might appear useless at first sight
> (what it is, as is!).
>
> I used to use Java3D 1.2 with a former version of JDK's 1.4, and this
> process worked without any problem. It looks as if it would crash during the
> renderOffScreenBuffer() call.
>
> Any clue? Since the problem is outside the virtual machine, I'm afraid I
> can't figure out what I shall do by myself.
>
> Thanks for any help!
>
> Roland
>
> Following is the log file created by Java indicating (?) that the problem
> lies in Java3D, not in JDK 1.4. Presently I don't have time to try the
> combination JDK 1.4/Java3D 1.2, but if necessary I'll do it.
> --
> An unexpected exception has been detected in native code outside the VM.
> Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x69576093
> Function=DrvSwapLayerBuffers+0x1C3
> Library=C:\WINNT\System32\nvoglnt.dll
>
> Current Java thread:
>  at javax.media.j3d.Canvas3D.swapBuffers(Native Method)
>  at javax.media.j3d.Renderer.doWork(Renderer.java:253)
>  - locked <034B2330> (a javax.media.j3d.DrawingSurfaceObjectAWT)
>  at javax.media.j3d.J3dThread.run(J3dThread.java:250)
>
> Dynamic libraries:
> 0x00400000 - 0x00406000  C:\Programme\j2sdk1.4.0_02\bin\javaw.exe
> 0x77880000 - 0x77901000  C:\WINNT\System32\ntdll.dll
> 0x77DA0000 - 0x77DFC000  C:\WINNT\system32\ADVAPI32.dll
> 0x77E70000 - 0x77F32000  C:\WINNT\system32\KERNEL32.DLL
> 0x77D30000 - 0x77DA0000  C:\WINNT\system32\RPCRT4.DLL
> 0x77E00000 - 0x77E64000  C:\WINNT\system32\USER32.dll
> 0x77F40000 - 0x77F7C000  C:\WINNT\system32\GDI32.DLL
> 0x78000000 - 0x78046000  C:\WINNT\system32\MSVCRT.dll
> 0x6D330000 - 0x6D445000  C:\Programme\j2sdk1.4.0_02\jre\bin\client\jvm.dll
> 0x77540000 - 0x77571000  C:\WINNT\System32\WINMM.dll
> 0x6D1D0000 - 0x6D1D7000  C:\Programme\j2sdk1.4.0_02\jre\bin\hpi.dll
> 0x6D300000 - 0x6D30D000  C:\Programme\j2sdk1.4.0_02\jre\bin\verify.dll
> 0x6D210000 - 0x6D228000  C:\Programme\j2sdk1.4.0_02\jre\bin\java.dll
> 0x6D320000 - 0x6D32D000  C:\Programme\j2sdk1.4.0_02\jre\bin\zip.dll
> 0x6D000000 - 0x6D0F6000  C:\Programme\j2sdk1.4.0_02\jre\bin\awt.dll
> 0x777F0000 - 0x7780D000  C:\WINNT\System32\WINSPOOL.DRV
> 0x75DF0000 - 0x75E0A000  C:\WINNT\System32\IMM32.dll
> 0x77A40000 - 0x77B36000  C:\WINNT\system32\ole32.dll
> 0x6D180000 - 0x6D1D0000  C:\Programme\j2sdk1.4.0_02\jre\bin\fontmanager.dll
> 0x77580000 - 0x777C8000  C:\WINNT\system32\shell32.dll
> 0x70BD0000 - 0x70C1C000  C:\WINNT\system32\SHLWAPI.DLL
> 0x716F0000 - 0x7177A000  C:\WINNT\system32\COMCTL32.DLL
> 0x779A0000 - 0x77A3B000  C:\WINNT\system32\OLEAUT32.DLL
> 0x784A0000 - 0x78525000  C:\WINNT\System32\CLBCATQ.DLL
> 0x77840000 - 0x7787D000  C:\WINNT\System32\cscui.dll
> 0x77090000 - 0x770B3000  C:\WINNT\System32\CSCDLL.DLL
> 0x76DC0000 - 0x76DD1000  C:\WINNT\System32\mydocs.dll
> 0x71500000 - 0x7161C000  C:\WINNT\System32\SHDOCVW.DLL
> 0x75000000 - 0x75010000  C:\WINNT\system32\MPR.DLL
> 0x750D0000 - 0x750DC000  C:\WINNT\System32\ntlanman.dll
> 0x75180000 - 0x75195000  C:\WINNT\System32\NETUI0.DLL
> 0x75140000 - 0x75178000  C:\WINNT\System32\NETUI1.DLL
> 0x750E0000 - 0x7512F000  C:\WINNT\System32\NETAPI32.DLL
> 0x77BD0000 - 0x77BDF000  C:\WINNT\System32\SECUR32.DLL
> 0x75130000 - 0x75136000  C:\WINNT\System32\NETRAP.DLL
> 0x750C0000 - 0x750D0000  C:\WINNT\System32\SAMLIB.DLL
> 0x74FA0000 - 0x74FB3000  C:\WINNT\System32\WS2_32.DLL
> 0x74F90000 - 0x74F98000  C:\WINNT\System32\WS2HELP.DLL
> 0x77940000 - 0x7796B000  C:\WINNT\system32\WLDAP32.DLL
> 0x77970000 - 0x77994000  C:\WINNT\System32\DNSAPI.DLL
> 0x74FC0000 - 0x74FC9000  C:\WINNT\System32\WSOCK32.DLL
> 0x76F70000 - 0x76F7F000  C:\WINNT\System32\ntshrui.dll
> 0x773B0000 - 0x773C2000  C:\WINNT\System32\ATL.DLL
> 0x72810000 - 0x72816000  C:\WINNT\System32\DCIMAN32.dll
> 0x69500000 - 0x69680000  C:\WINNT\System32\nvoglnt.dll
> 0x51000000 - 0x5104A000  C:\WINNT\System32\ddraw.dll
> 0x10000000 - 0x10022000  C:\Programme\j2sdk1.4.0_02\jre\bin\J3D.dll
> 0x693A0000 - 0x69467000  C:\WINNT\System32\OPENGL32.dll
> 0x6F9F0000 - 0x6FA10000  C:\WINNT\System32\GLU32.dll
> 0x6D230000 - 0x6D235000  C:\Programme\j2sdk1.4.0_02\jre\bin\jawt.dll
> 0x77910000 - 0x77933000  C:\WINNT\system32\imagehlp.dll
> 0x72970000 - 0x7299D000  C:\WINNT\system32\DBGHELP.dll
> 0x68F30000 - 0x68F3B000  C:\WINNT\System32\PSAPI.DLL
>
> Local Time = Thu Sep 12 11:02:09 2002
> Elapsed Time = 32
> #
> # The exception above was detected in native code outside the VM
> #
> # Java VM: Java HotSpot(TM) Client VM (1.4.0_02-b02 mixed mode)
> #
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JAVA3D-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to