I sometimes get this error when starting my Java3D app. When this happens the Canvas3D doesn't render anything (remains black). Is there a workaround for this?
com.jogamp.nativewindow.NativeWindowException: null window handle: GDISurface[ displayHandle 0x0
, surfaceHandle 0x0
, size 100x100
, UOB[ WINDOW_INVISIBLE ]
, WindowsWGLGraphicsConfiguration[DefaultGraphicsScreen[WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, owner false, NullToolkitLock[obj 0x81ae8ff]], idx 0], pfdID 9, ARB-Choosen true,
requested GLCaps[rgba 8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms 24/0/8, sample-ext default, dbl, mono , hw, GLProfile[GL4bc/GL4bc.hw], offscr[fbo]],
chosen GLCaps[wgl vid 9 arb: rgba 8/8/8/0, opaque, accum-rgba 16/16/16/16, dp/st/ms 24/0/0, dbl, mono , hw, GLProfile[GL4bc/GL4bc.hw], on-scr[.]]]
, surfaceLock <19d7a112, 66caca87>[count 1, qsz 0, owner <J3D-Renderer-1>]
, GDIDummyUpstreamSurfaceHook[pixel 100x100]
, upstreamSurface false ]
at jogamp.nativewindow.windows.GDISurface.lockSurfaceImpl(GDISurface.java:102)
at jogamp.nativewindow.ProxySurfaceImpl.lockSurface(ProxySurfaceImpl.java:208)
at jogamp.opengl.GLDrawableImpl.lockSurface(GLDrawableImpl.java:307)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:607)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:591)
at j3dcore/org.jogamp.java3d.JoglPipeline.useCtx(JoglPipeline.java:7264)
at j3dcore/org.jogamp.java3d.Canvas3D.useCtx(Canvas3D.java:4861)
at j3dcore/org.jogamp.java3d.Canvas3D.makeCtxCurrent(Canvas3D.java:2420)
at j3dcore/org.jogamp.java3d.Canvas3D.makeCtxCurrent(Canvas3D.java:2406)
at j3dcore/org.jogamp.java3d.Renderer.doWork(Renderer.java:997)
at j3dcore/org.jogamp.java3d.J3dThread.run(J3dThread.java:271)