Hi, I have encounted an error in an app I was writing and have narrowed it down to an extremely basic test case (code is inline at the end). The code below uses a SimpleUniverse to display a ColorCube. If I uncomment the line adding the color cube to a branch group then the app terminates with the error below (I have attached the error file).
I am running jdk1.4,0 j3d 1.3 beta OpenGL, winNT with a tnt 2. I have had no other problems running j3d code. Cheers, Brad ----------------------------------------------------------------------------- import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.media.j3d.*; import javax.vecmath.*; import com.sun.j3d.utils.universe.SimpleUniverse; import com.sun.j3d.utils.behaviors.vp.OrbitBehavior; import com.sun.j3d.utils.geometry.ColorCube; /** * * @author christia */ public class Viewer extends JFrame { /** Creates a new instance of Viewer */ public Viewer() { GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration(); Canvas3D canvas3D = new Canvas3D(config); BranchGroup scene = createSceneGraph(); // SimpleUniverse is a Convenience Utility class SimpleUniverse simpleU = new SimpleUniverse(canvas3D); // This will move the ViewPlatform back a bit so the // objects in the scene can be viewed. simpleU.getViewingPlatform().setNominalViewingTransform(); simpleU.addBranchGraph(scene); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent evt) { System.exit(0); } }); getContentPane().setLayout(new BorderLayout()); getContentPane().add(canvas3D, BorderLayout.CENTER); setSize(400, 400); setVisible(true); } private BranchGroup createSceneGraph() { BranchGroup root = new BranchGroup(); //add this line in to get error //root.addChild(new ColorCube(0.4f)); return root; } public static void main(String[] args) { new Viewer(); } } -------------------------------------------------------- An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x69552CD2 Function=[Unknown.] Library=C:\WINNT\system32\nvoglnt.dll NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: at javax.media.j3d.Canvas3D.callDisplayList(Native Method) at javax.media.j3d.DisplayListRenderMethod.render(DisplayListRenderMetho d.java:57) at javax.media.j3d.DisplayListRenderMethod.render(DisplayListRenderMetho d.java:46) at javax.media.j3d.RenderMolecule.render(RenderMolecule.java:1856) at javax.media.j3d.TextureBin.renderList(TextureBin.java:1305) at javax.media.j3d.TextureBin.renderList(TextureBin.java:1277) at javax.media.j3d.TextureBin.render(TextureBin.java:1267) at javax.media.j3d.TextureBin.render(TextureBin.java:1213) at javax.media.j3d.AttributeBin.render(AttributeBin.java:387) at javax.media.j3d.EnvironmentSet.render(EnvironmentSet.java:422) at javax.media.j3d.LightBin.render(LightBin.java:361) at javax.media.j3d.RenderBin.renderOpaque(RenderBin.java:4833) at javax.media.j3d.Renderer.doWork(Renderer.java:1171) at javax.media.j3d.J3dThread.run(J3dThread.java:256) Dynamic libraries: 0x00400000 - 0x00406000 C:\WINNT\system32\java.exe 0x77F60000 - 0x77FBE000 C:\WINNT\System32\ntdll.dll 0x77DC0000 - 0x77DFF000 C:\WINNT\system32\ADVAPI32.dll 0x77F00000 - 0x77F5E000 C:\WINNT\system32\KERNEL32.dll 0x77E70000 - 0x77EC5000 C:\WINNT\system32\USER32.dll 0x77ED0000 - 0x77EFC000 C:\WINNT\system32\GDI32.dll 0x77E10000 - 0x77E67000 C:\WINNT\system32\RPCRT4.dll 0x78000000 - 0x78043000 C:\WINNT\system32\MSVCRT.dll 0x6D330000 - 0x6D442000 C:\Program Files\Java\j2re1.4.0\bin\client\jvm.d ll 0x77FD0000 - 0x77FFA000 C:\WINNT\system32\WINMM.dll 0x6BC00000 - 0x6BC11000 C:\WINNT\system32\SMNT40.dll 0x69F00000 - 0x69FBA000 C:\WINNT\system32\adisynth.dll 0x6D1D0000 - 0x6D1D7000 C:\Program Files\Java\j2re1.4.0\bin\hpi.dll 0x6D300000 - 0x6D30D000 C:\Program Files\Java\j2re1.4.0\bin\verify.dll 0x6D210000 - 0x6D228000 C:\Program Files\Java\j2re1.4.0\bin\java.dll 0x6D320000 - 0x6D32D000 C:\Program Files\Java\j2re1.4.0\bin\zip.dll 0x6D000000 - 0x6D0F6000 C:\Program Files\Java\j2re1.4.0\bin\awt.dll 0x77C00000 - 0x77C18000 C:\WINNT\system32\WINSPOOL.DRV 0x76AB0000 - 0x76AB5000 C:\WINNT\system32\IMM32.dll 0x77B20000 - 0x77BD7000 C:\WINNT\system32\ole32.dll 0x6D180000 - 0x6D1D0000 C:\Program Files\Java\j2re1.4.0\bin\fontmanager. dll 0x10000000 - 0x10021000 C:\Program Files\Java\j2re1.4.0\bin\J3D.dll 0x755B0000 - 0x75678000 C:\WINNT\system32\OPENGL32.dll 0x76C80000 - 0x76CA2000 C:\WINNT\system32\GLU32.dll 0x77160000 - 0x77167000 C:\WINNT\system32\DCIMAN32.dll 0x6D230000 - 0x6D235000 C:\Program Files\Java\j2re1.4.0\bin\jawt.dll 0x77130000 - 0x77156000 C:\WINNT\system32\ddraw.dll 0x69500000 - 0x69642000 C:\WINNT\system32\nvoglnt.dll 0x76AC0000 - 0x76ADD000 C:\WINNT\system32\imagehlp.dll 0x731B0000 - 0x731BA000 C:\WINNT\system32\PSAPI.DLL Local Time = Fri Apr 26 17:00:12 2002 Elapsed Time = 3 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed mode) # # An error report file has been saved as hs_err_pid258.log. # Please refer to the file for further information. # ---------------------------------------------------------------------------- This Email may contain confidential and/or privileged information and is intended solely for the addressee(s) named. If you have received this information in error, or are advised that you have been posted this Email by accident, please notify the sender by return Email, do not redistribute it, delete the Email and keep no copies. ----------------------------------------------------------------------------
hs_err_pid258.log
Description: application/unknown-content-type-txtfile