b0.7 sometimes causes a crash upon closing, that I did not get with b0.6
in
Library and Tool Development
•
10 months ago
Hi!
I'm in the process of porting my Mother tool/library to Processing 2.0, and ran into a a crash that I'm not sure how to debug, so I thought I'd post here with the hope of getting a hint or two as to what it may be. Working wit b0.6 I did not get this. At the moment I don't have a concise code example to reproduce with, but I'll make one if it's not an error that's easy to track. My program runs fine, all functionality ok (developing in Eclipse with Jdk 1.6.024 and b0.7), until I close the program.
Then, I sometimes get the below dumped on the console (huge text dump warning):
Anyone have an idea of what it is I should be looking for to fix this?
Thank you!
I'm in the process of porting my Mother tool/library to Processing 2.0, and ran into a a crash that I'm not sure how to debug, so I thought I'd post here with the hope of getting a hint or two as to what it may be. Working wit b0.6 I did not get this. At the moment I don't have a concise code example to reproduce with, but I'll make one if it's not an error that's easy to track. My program runs fine, all functionality ok (developing in Eclipse with Jdk 1.6.024 and b0.7), until I close the program.
Then, I sometimes get the below dumped on the console (huge text dump warning):
- Catched: Context not current on current thread Animation Thread: WindowsOnscreenWGLContext [OpenGL 3.3, options 0x303, 3.3 (Compatibility profile, arb, ES2 compatible, FBO, hardware) - 3.3.0, this 0x1f95165, handle 0x20000, jogamp.opengl.gl4.GL4bcImpl@952905,
- quirks: [NoDoubleBufferedBitmap],
- Drawable: WindowsOnscreenWGLDrawable[Realized true,
- Factory jogamp.opengl.windows.wgl.WindowsWGLDrawableFactory@b83be0,
- Handle 0x0,
- Surface jogamp.newt.driver.windows.WindowDriver[Config WindowsWGLGraphicsConfiguration[DefaultGraphicsScreen[WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]], idx 0], pfdID 22, ARB-Choosen true,
- requested GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms: 24/8/2, sample-ext default, dbl, mono , hw, GLProfile[GL3bc/GL3bc.hw], on-scr[fbo]],
- chosen GLCaps[wgl vid 0x16 arb: rgba 0x8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms: 24/8/2, sample-ext default, dbl, mono , hw, GLProfile[GL3bc/GL3bc.hw], on-scr[.]]]
- , NEWT-Screen[.windows_nil-1-s0, idx 0, refCount 1, 3600x1080, DefaultGraphicsScreen[WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]], idx 0], NEWT-Display[.windows_nil-1, excl false, refCount 1, hasEDT true, edtRunning true, WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]]]]
- , ParentWindow JAWT-Window[windowHandle 0xe0b02, surfaceHandle 0x0, bounds [ 0 / 0 800 x 600 ], insets [ l 0, r 0 - t 0, b 0 - 0x0], shallUseOffscreenLayer false, isOffscreenLayerSurface false, pos 0/0, size 800x600, visible true, lockedExt false,
- config AWTGraphicsConfiguration[AWTGraphicsScreen[AWTGraphicsDevice[type .awt, connection \Display0, unitID 0, awtDevice Win32GraphicsDevice[screen=0], handle 0x0], idx 0],
- chosen GLCaps[wgl vid 0x15 arb: rgba 0x8/8/8/0, opaque, accum-rgba 16/16/16/16, dp/st/ms: 24/8/2, sample-ext default, dbl, mono , hw, GLProfile[GL3bc/GL3bc.hw], on-scr[.]],
- requested GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms: 24/8/2, sample-ext default, dbl, mono , hw, GLProfile[GL3bc/GL3bc.hw], on-scr[fbo]],
- sun.awt.Win32GraphicsConfig@1694eca[dev=Win32GraphicsDevice[screen=0],pixfmt=21],
- encapsulated WindowsWGLGraphicsConfiguration[DefaultGraphicsScreen[WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]], idx 0], pfdID 21, ARB-Choosen true,
- requested GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms: 24/8/2, sample-ext default, dbl, mono , hw, GLProfile[GL3bc/GL3bc.hw], on-scr[fbo]],
- chosen GLCaps[wgl vid 0x15 arb: rgba 0x8/8/8/0, opaque, accum-rgba 16/16/16/16, dp/st/ms: 24/8/2, sample-ext default, dbl, mono , hw, GLProfile[GL3bc/GL3bc.hw], on-scr[.]]]],
- awtComponent com.jogamp.newt.awt.NewtCanvasAWT[canvas0,0,0,800x600,invalid],
- surfaceLock <1631573, 1533c8>[count 0, qsz 0, owner <NULL>]]
- , ParentWindowHandle 0xe0b02 (true)
- , WindowHandle 0xe0ac8
- , SurfaceHandle 0x0 (lockedExt window false, surface false)
- , Pos 0/0 (auto false), size 800x600
- , Visible true, focus false
- , Undecorated false (true)
- , AlwaysOnTop false, Fullscreen false
- , WrappedWindow null
- , ChildWindows 0, SurfaceUpdatedListeners num 0 [], WindowListeners num 2 [com.jogamp.newt.opengl.GLWindow$1@1faa614, com.jogamp.newt.awt.NewtCanvasAWT$2@ad7d80, ], MouseListeners num 2 [jogamp.newt.driver.windows.WindowDriver$MouseTracker@a6d35, processing.opengl.PGL$NEWTMouseAdapter@87d472, ], KeyListeners num 1 [processing.opengl.PGL$NEWTKeyAdapter@18ca663, ], windowLock <ffc3eb, 1978933>[count 1, qsz 0, owner <Animation Thread>]]]]
- javax.media.opengl.GLException: Context not current on current thread Animation Thread: WindowsOnscreenWGLContext [OpenGL 3.3, options 0x303, 3.3 (Compatibility profile, arb, ES2 compatible, FBO, hardware) - 3.3.0, this 0x1f95165, handle 0x20000, jogamp.opengl.gl4.GL4bcImpl@952905,
- quirks: [NoDoubleBufferedBitmap],
- Drawable: WindowsOnscreenWGLDrawable[Realized true,
- Factory jogamp.opengl.windows.wgl.WindowsWGLDrawableFactory@b83be0,
- Handle 0x0,
- Surface jogamp.newt.driver.windows.WindowDriver[Config WindowsWGLGraphicsConfiguration[DefaultGraphicsScreen[WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]], idx 0], pfdID 22, ARB-Choosen true,
- requested GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms: 24/8/2, sample-ext default, dbl, mono , hw, GLProfile[GL3bc/GL3bc.hw], on-scr[fbo]],
- chosen GLCaps[wgl vid 0x16 arb: rgba 0x8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms: 24/8/2, sample-ext default, dbl, mono , hw, GLProfile[GL3bc/GL3bc.hw], on-scr[.]]]
- , NEWT-Screen[.windows_nil-1-s0, idx 0, refCount 1, 3600x1080, DefaultGraphicsScreen[WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]], idx 0], NEWT-Display[.windows_nil-1, excl false, refCount 1, hasEDT true, edtRunning true, WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]]]]
- , ParentWindow JAWT-Window[windowHandle 0xe0b02, surfaceHandle 0x0, bounds [ 0 / 0 800 x 600 ], insets [ l 0, r 0 - t 0, b 0 - 0x0], shallUseOffscreenLayer false, isOffscreenLayerSurface false, pos 0/0, size 800x600, visible true, lockedExt false,
- config AWTGraphicsConfiguration[AWTGraphicsScreen[AWTGraphicsDevice[type .awt, connection \Display0, unitID 0, awtDevice Win32GraphicsDevice[screen=0], handle 0x0], idx 0],
- chosen GLCaps[wgl vid 0x15 arb: rgba 0x8/8/8/0, opaque, accum-rgba 16/16/16/16, dp/st/ms: 24/8/2, sample-ext default, dbl, mono , hw, GLProfile[GL3bc/GL3bc.hw], on-scr[.]],
- requested GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms: 24/8/2, sample-ext default, dbl, mono , hw, GLProfile[GL3bc/GL3bc.hw], on-scr[fbo]],
- sun.awt.Win32GraphicsConfig@1694eca[dev=Win32GraphicsDevice[screen=0],pixfmt=21],
- encapsulated WindowsWGLGraphicsConfiguration[DefaultGraphicsScreen[WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]], idx 0], pfdID 21, ARB-Choosen true,
- requested GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms: 24/8/2, sample-ext default, dbl, mono , hw, GLProfile[GL3bc/GL3bc.hw], on-scr[fbo]],
- chosen GLCaps[wgl vid 0x15 arb: rgba 0x8/8/8/0, opaque, accum-rgba 16/16/16/16, dp/st/ms: 24/8/2, sample-ext default, dbl, mono , hw, GLProfile[GL3bc/GL3bc.hw], on-scr[.]]]],
- awtComponent com.jogamp.newt.awt.NewtCanvasAWT[canvas0,0,0,800x600,invalid],
- surfaceLock <1631573, 1533c8>[count 0, qsz 0, owner <NULL>]]
- , ParentWindowHandle 0xe0b02 (true)
- , WindowHandle 0xe0ac8
- , SurfaceHandle 0x0 (lockedExt window false, surface false)
- , Pos 0/0 (auto false), size 800x600
- , Visible true, focus false
- , Undecorated false (true)
- , AlwaysOnTop false, Fullscreen false
- , WrappedWindow null
- , ChildWindows 0, SurfaceUpdatedListeners num 0 [], WindowListeners num 2 [com.jogamp.newt.opengl.GLWindow$1@1faa614, com.jogamp.newt.awt.NewtCanvasAWT$2@ad7d80, ], MouseListeners num 2 [jogamp.newt.driver.windows.WindowDriver$MouseTracker@a6d35, processing.opengl.PGL$NEWTMouseAdapter@87d472, ], KeyListeners num 1 [processing.opengl.PGL$NEWTKeyAdapter@18ca663, ], windowLock <ffc3eb, 1978933>[count 1, qsz 0, owner <Animation Thread>]]]]
- at jogamp.opengl.GLContextImpl.release(GLContextImpl.java:279)
- at jogamp.opengl.GLContextImpl.release(GLContextImpl.java:272)
- at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:911)
- at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:822)
- at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:543)
- at processing.opengl.PGL.requestDraw(PGL.java:814)
- at processing.opengl.PGraphicsOpenGL.requestDraw(PGraphicsOpenGL.java:1566)
- at processing.core.PApplet.run(PApplet.java:2020)
- at java.lang.Thread.run(Thread.java:662)
- Catched: Context not current on current thread Animation Thread: WindowsOnscreenWGLContext [OpenGL 3.3, options 0x303, 3.3 (Compatibility profile, arb, ES2 compatible, FBO, hardware) - 3.3.0, this 0x1f95165, handle 0x20000, jogamp.opengl.gl4.GL4bcImpl@952905,
- quirks: [NoDoubleBufferedBitmap],
- Drawable: WindowsOnscreenWGLDrawable[Realized true,
- Factory jogamp.opengl.windows.wgl.WindowsWGLDrawableFactory@b83be0,
- Handle 0x0,
- Surface jogamp.newt.driver.windows.WindowDriver[Config WindowsWGLGraphicsConfiguration[DefaultGraphicsScreen[WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]], idx 0], pfdID 22, ARB-Choosen true,
- requested GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms: 24/8/2, sample-ext default, dbl, mono , hw, GLProfile[GL3bc/GL3bc.hw], on-scr[fbo]],
- chosen GLCaps[wgl vid 0x16 arb: rgba 0x8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms: 24/8/2, sample-ext default, dbl, mono , hw, GLProfile[GL3bc/GL3bc.hw], on-scr[.]]]
- , NEWT-Screen[.windows_nil-1-s0, idx 0, refCount 1, 3600x1080, DefaultGraphicsScreen[WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]], idx 0], NEWT-Display[.windows_nil-1, excl false, refCount 1, hasEDT true, edtRunning true, WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]]]]
- , ParentWindow JAWT-Window[windowHandle 0xe0b02, surfaceHandle 0x0, bounds [ 0 / 0 800 x 600 ], insets [ l 0, r 0 - t 0, b 0 - 0x0], shallUseOffscreenLayer false, isOffscreenLayerSurface false, pos 0/0, size 800x600, visible true, lockedExt false,
- config AWTGraphicsConfiguration[AWTGraphicsScreen[AWTGraphicsDevice[type .awt, connection \Display0, unitID 0, awtDevice Win32GraphicsDevice[screen=0], handle 0x0], idx 0],
- chosen GLCaps[wgl vid 0x15 arb: rgba 0x8/8/8/0, opaque, accum-rgba 16/16/16/16, dp/st/ms: 24/8/2, sample-ext default, dbl, mono , hw, GLProfile[GL3bc/GL3bc.hw], on-scr[.]],
- requested GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms: 24/8/2, sample-ext default, dbl, mono , hw, GLProfile[GL3bc/GL3bc.hw], on-scr[fbo]],
- sun.awt.Win32GraphicsConfig@1694eca[dev=Win32GraphicsDevice[screen=0],pixfmt=21],
- encapsulated WindowsWGLGraphicsConfiguration[DefaultGraphicsScreen[WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]], idx 0], pfdID 21, ARB-Choosen true,
- requested GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms: 24/8/2, sample-ext default, dbl, mono , hw, GLProfile[GL3bc/GL3bc.hw], on-scr[fbo]],
- chosen GLCaps[wgl vid 0x15 arb: rgba 0x8/8/8/0, opaque, accum-rgba 16/16/16/16, dp/st/ms: 24/8/2, sample-ext default, dbl, mono , hw, GLProfile[GL3bc/GL3bc.hw], on-scr[.]]]],
- awtComponent com.jogamp.newt.awt.NewtCanvasAWT[canvas0,0,0,800x600,invalid],
- surfaceLock <1631573, 1533c8>[count 0, qsz 0, owner <NULL>]]
- , ParentWindowHandle 0xe0b02 (true)
- , WindowHandle 0xe0ac8
- , SurfaceHandle 0x0 (lockedExt window false, surface false)
- , Pos 0/0 (auto false), size 800x600
- , Visible true, focus false
- , Undecorated false (true)
- , AlwaysOnTop false, Fullscreen false
- , WrappedWindow null
- , ChildWindows 0, SurfaceUpdatedListeners num 0 [], WindowListeners num 2 [com.jogamp.newt.opengl.GLWindow$1@1faa614, com.jogamp.newt.awt.NewtCanvasAWT$2@ad7d80, ], MouseListeners num 2 [jogamp.newt.driver.windows.WindowDriver$MouseTracker@a6d35, processing.opengl.PGL$NEWTMouseAdapter@87d472, ], KeyListeners num 1 [processing.opengl.PGL$NEWTKeyAdapter@18ca663, ], windowLock <ffc3eb, 1978933>[count 1, qsz 0, owner <Animation Thread>]]]]
- javax.media.opengl.GLException: Context not current on current thread Animation Thread: WindowsOnscreenWGLContext [OpenGL 3.3, options 0x303, 3.3 (Compatibility profile, arb, ES2 compatible, FBO, hardware) - 3.3.0, this 0x1f95165, handle 0x20000, jogamp.opengl.gl4.GL4bcImpl@952905,
- quirks: [NoDoubleBufferedBitmap],
- Drawable: WindowsOnscreenWGLDrawable[Realized true,
- Factory jogamp.opengl.windows.wgl.WindowsWGLDrawableFactory@b83be0,
- Handle 0x0,
- Surface jogamp.newt.driver.windows.WindowDriver[Config WindowsWGLGraphicsConfiguration[DefaultGraphicsScreen[WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]], idx 0], pfdID 22, ARB-Choosen true,
- requested GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms: 24/8/2, sample-ext default, dbl, mono , hw, GLProfile[GL3bc/GL3bc.hw], on-scr[fbo]],
- chosen GLCaps[wgl vid 0x16 arb: rgba 0x8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms: 24/8/2, sample-ext default, dbl, mono , hw, GLProfile[GL3bc/GL3bc.hw], on-scr[.]]]
- , NEWT-Screen[.windows_nil-1-s0, idx 0, refCount 1, 3600x1080, DefaultGraphicsScreen[WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]], idx 0], NEWT-Display[.windows_nil-1, excl false, refCount 1, hasEDT true, edtRunning true, WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]]]]
- , ParentWindow JAWT-Window[windowHandle 0xe0b02, surfaceHandle 0x0, bounds [ 0 / 0 800 x 600 ], insets [ l 0, r 0 - t 0, b 0 - 0x0], shallUseOffscreenLayer false, isOffscreenLayerSurface false, pos 0/0, size 800x600, visible true, lockedExt false,
- config AWTGraphicsConfiguration[AWTGraphicsScreen[AWTGraphicsDevice[type .awt, connection \Display0, unitID 0, awtDevice Win32GraphicsDevice[screen=0], handle 0x0], idx 0],
- chosen GLCaps[wgl vid 0x15 arb: rgba 0x8/8/8/0, opaque, accum-rgba 16/16/16/16, dp/st/ms: 24/8/2, sample-ext default, dbl, mono , hw, GLProfile[GL3bc/GL3bc.hw], on-scr[.]],
- requested GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms: 24/8/2, sample-ext default, dbl, mono , hw, GLProfile[GL3bc/GL3bc.hw], on-scr[fbo]],
- sun.awt.Win32GraphicsConfig@1694eca[dev=Win32GraphicsDevice[screen=0],pixfmt=21],
- encapsulated WindowsWGLGraphicsConfiguration[DefaultGraphicsScreen[WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]], idx 0], pfdID 21, ARB-Choosen true,
- requested GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms: 24/8/2, sample-ext default, dbl, mono , hw, GLProfile[GL3bc/GL3bc.hw], on-scr[fbo]],
- chosen GLCaps[wgl vid 0x15 arb: rgba 0x8/8/8/0, opaque, accum-rgba 16/16/16/16, dp/st/ms: 24/8/2, sample-ext default, dbl, mono , hw, GLProfile[GL3bc/GL3bc.hw], on-scr[.]]]],
- awtComponent com.jogamp.newt.awt.NewtCanvasAWT[canvas0,0,0,800x600,invalid],
- surfaceLock <1631573, 1533c8>[count 0, qsz 0, owner <NULL>]]
- , ParentWindowHandle 0xe0b02 (true)
- , WindowHandle 0xe0ac8
- , SurfaceHandle 0x0 (lockedExt window false, surface false)
- , Pos 0/0 (auto false), size 800x600
- , Visible true, focus false
- , Undecorated false (true)
- , AlwaysOnTop false, Fullscreen false
- , WrappedWindow null
- , ChildWindows 0, SurfaceUpdatedListeners num 0 [], WindowListeners num 2 [com.jogamp.newt.opengl.GLWindow$1@1faa614, com.jogamp.newt.awt.NewtCanvasAWT$2@ad7d80, ], MouseListeners num 2 [jogamp.newt.driver.windows.WindowDriver$MouseTracker@a6d35, processing.opengl.PGL$NEWTMouseAdapter@87d472, ], KeyListeners num 1 [processing.opengl.PGL$NEWTKeyAdapter@18ca663, ], windowLock <ffc3eb, 1978933>[count 1, qsz 0, owner <Animation Thread>]]]]
- at jogamp.opengl.GLContextImpl.release(GLContextImpl.java:279)
- at jogamp.opengl.GLContextImpl.release(GLContextImpl.java:272)
- at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:911)
- at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:822)
- at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:543)
- at processing.opengl.PGL.requestDraw(PGL.java:814)
- at processing.opengl.PGraphicsOpenGL.requestDraw(PGraphicsOpenGL.java:1566)
- at processing.core.PApplet.run(PApplet.java:2020)
- at java.lang.Thread.run(Thread.java:662)
Anyone have an idea of what it is I should be looking for to fix this?
Thank you!
1