Login  Register

Re: jogl crashes video card driver

Posted by runiter on Jan 09, 2013; 3:39pm
URL: https://forum.jogamp.org/jogl-crashes-video-card-driver-tp4026980p4027758.html

gouessej wrote
This code is called within the next GLAutoDrawable.display() call. I don't know what you do in your code, sorry.
okay, here is an easy test-case for you. If you run Ardor3D JoglAwtExample it will render nothing. If you click and drag on any of the canvas you get the following exception which is due to null Camera:

Exception in thread "main" java.lang.NullPointerException
        at com.ardor3d.input.control.FirstPersonControl.applyDx(FirstPersonControl.java:149)
        at com.ardor3d.input.control.FirstPersonControl.rotate(FirstPersonControl.java:135)
        at com.ardor3d.input.control.FirstPersonControl$1.perform(FirstPersonControl.java:234)
        at com.ardor3d.input.logical.InputTrigger.performIfValid(InputTrigger.java:67)
        at com.ardor3d.input.logical.BasicTriggersApplier.checkAndPerformTriggers(BasicTriggersApplier.java:22)
        at com.ardor3d.input.logical.LogicalLayer.checkTriggers(LogicalLayer.java:83)
        at com.ardor3d.example.canvas.RotatingCubeGame.update(RotatingCubeGame.java:179)
        at com.ardor3d.framework.FrameHandler.updateFrame(FrameHandler.java:68)
        at com.ardor3d.example.canvas.JoglAwtExample.main(JoglAwtExample.java:132)

The above problem exists in both Intel and nvidia video cards, so it should be easy to reproduce in any machine.
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D