Posted by
scott+jogamp@vorthmann.org on
Jan 26, 2023; 5:41am
URL: https://forum.jogamp.org/reshape-not-called-in-2nd-GLCanvas-tp4042121p4042123.html
Here is the result of setting -Djogl.debug.GLCanvas=true. The reshape events corresponding to resizing the window are the last few lines.
AWT-EventQueue-0-FPSAWTAnimator#00-Timer0: Info: GLCanvas display - skipped GL render, drawable not valid yet
AWT-EventQueue-0-FPSAWTAnimator#01-Timer1: Info: GLCanvas display - skipped GL render, drawable not valid yet
AWT-EventQueue-0-FPSAWTAnimator#00-Timer0: Info: GLCanvas display - skipped GL render, drawable not valid yet
AWT-EventQueue-0-FPSAWTAnimator#01-Timer1: Info: GLCanvas display - skipped GL render, drawable not valid yet
AWT-EventQueue-0-FPSAWTAnimator#00-Timer0: Info: GLCanvas display - skipped GL render, drawable not valid yet
AWT-EventQueue-0-FPSAWTAnimator#01-Timer1: Info: GLCanvas display - skipped GL render, drawable not valid yet
AWT-EventQueue-0-FPSAWTAnimator#00-Timer0: Info: GLCanvas display - skipped GL render, drawable not valid yet
AWT-EventQueue-0-FPSAWTAnimator#01-Timer1: Info: GLCanvas display - skipped GL render, drawable not valid yet
AWT-EventQueue-0-FPSAWTAnimator#00-Timer0: Info: GLCanvas display - skipped GL render, drawable not valid yet
AWT-EventQueue-0-FPSAWTAnimator#01-Timer1: Info: GLCanvas display - skipped GL render, drawable not valid yet
AWT-EventQueue-0-FPSAWTAnimator#00-Timer0: Info: GLCanvas display - skipped GL render, drawable not valid yet
AWT-EventQueue-0-FPSAWTAnimator#01-Timer1: Info: GLCanvas display - skipped GL render, drawable not valid yet
AWT-EventQueue-0-FPSAWTAnimator#00-Timer0: Info: GLCanvas display - skipped GL render, drawable not valid yet
AWT-EventQueue-0-FPSAWTAnimator#01-Timer1: Info: GLCanvas display - skipped GL render, drawable not valid yet
AWT-EventQueue-0: Info: addNotify - start, bounds: java.awt.Rectangle[x=0,y=0,width=0,height=0], isBeansDesignTime false
AWT-EventQueue-0-FPSAWTAnimator#00-Timer0: Info: GLCanvas display - skipped GL render, drawable not valid yet
AWT-EventQueue-0-FPSAWTAnimator#01-Timer1: Info: GLCanvas display - skipped GL render, drawable not valid yet
AWT-EventQueue-0: Context created: has shared false
AWT-EventQueue-0-FPSAWTAnimator#00-Timer0: Info: GLCanvas display - skipped GL render, drawable not valid yet
AWT-EventQueue-0: Info: addNotify - end
AWT-EventQueue-0: Info: addNotify - start, bounds: java.awt.Rectangle[x=0,y=0,width=0,height=0], isBeansDesignTime false
AWT-EventQueue-0: Context created: has shared false
AWT-EventQueue-0: Info: addNotify - end
AWT-EventQueue-0-FPSAWTAnimator#01-Timer1: Info: GLCanvas display - skipped GL render, drawable not valid yet
AWT-EventQueue-0-FPSAWTAnimator#00-Timer0: Info: GLCanvas display - skipped GL render, drawable not valid yet
reshape: 2000 2000
AWT-EventQueue-0: GLCanvas.reshape.0 canvas0 resize [ this 2000x2000, pixelScale [1.0, 1.0]] -> 2000x2000 * [1.0, 1.0] -> 2000x2000 - surfaceHandle 0x7ff6421bdfb0
AWT-EventQueue-0: Realized Drawable: isRealized true, GLFBODrawableImpl[Initialized false, realized true, texUnit 0, samples 4,
Factory jogamp.opengl.macosx.cgl.MacOSXCGLDrawableFactory@597e8c1c,
Handle 0x7ff6421bdfb0,
Caps GLCaps[rgba 8/8/8/1, opaque, accum-rgba 0/0/0/0, dp/st/ms 24/0/4, sample-ext default, dbl, mono , hw, GLProfile[GL2/GL2.hw], offscr[fbo]],
fboI back 0, front 0, num 0,
FBO front read 0, null,
FBO back write 0, null,
Surface JAWTWindow[0x4193e818][JVM version: 17.0.4 (17.0.4 update 0)
JAWT version: 0x80010004, CA_LAYER: true, isLayeredSurface true, bounds [ 0 / 0 2000 x 2000 ], insets [ l 0, r 0 - t 0, b 0 - 0x0], pixelScale 1.0x1.0, shallUseOffscreenLayer false, isOffscreenLayerSurface true, attachedSurfaceLayer 0x0, windowHandle 0x7ff64505b2e0, surfaceHandle 0x7ff6421bdfb0, bounds [ 0 / 0 2000 x 2000 ], insets [ l 0, r 0 - t 0, b 0 - 0x0], window [0/0 2000x2000], pixels[scale 1.0, 1.0 -> 2000x2000], visible true, lockedExt false,
config AWTGraphicsConfiguration[AWTGraphicsScreen[AWTGraphicsDevice[type .awt, connection Display 458651144, unitID 0, awtDevice sun.awt.CGraphicsDevice@22321a07, handle 0x0], idx 0],
chosen GLCaps[rgba 8/8/8/1, opaque, accum-rgba 0/0/0/0, dp/st/ms 24/0/4, sample-ext default, dbl, mono , hw, GLProfile[GL2/GL2.hw], offscr[fbo]],
requested GLCaps[rgba 8/8/8/1, opaque, accum-rgba 0/0/0/0, dp/st/ms 24/0/4, sample-ext default, dbl, mono , hw, GLProfile[GL2/GL2.hw], on-scr[.]],
CGLGraphicsConfig[Display 458651144],
encapsulated MacOSXCGLGraphicsConfiguration[DefaultGraphicsScreen[MacOSXGraphicsDevice[type .macosx, connection decon, unitID 0, handle 0x0, owner false, NullToolkitLock[obj 0x5feb4155]], idx 0],
chosen GLCaps[rgba 8/8/8/1, opaque, accum-rgba 0/0/0/0, dp/st/ms 24/0/4, sample-ext default, dbl, mono , hw, GLProfile[GL2/GL2.hw], offscr[fbo]],
requested GLCaps[rgba 8/8/8/1, opaque, accum-rgba 0/0/0/0, dp/st/ms 24/0/4, sample-ext default, dbl, mono , hw, GLProfile[GL2/GL2.hw], on-scr[.]]]],
awtComponent AWT-GLCanvas[Realized true,
jogamp.opengl.GLFBODrawableImpl,
Factory jogamp.opengl.macosx.cgl.MacOSXCGLDrawableFactory@597e8c1c,
handle 0x7ff6421bdfb0,
Drawable size 2000x2000 surface[2000x2000],
AWT[pos 0/0, size 2000x2000,
visible true, displayable true, showing false,
AWTGraphicsConfiguration[AWTGraphicsScreen[AWTGraphicsDevice[type .awt, connection Display 458651144, unitID 0, awtDevice sun.awt.CGraphicsDevice@22321a07, handle 0x0], idx 0],
chosen GLCaps[rgba 8/8/8/1, opaque, accum-rgba 0/0/0/0, dp/st/ms 24/0/4, sample-ext default, dbl, mono , hw, GLProfile[GL2/GL2.hw], offscr[fbo]],
requested GLCaps[rgba 8/8/8/1, opaque, accum-rgba 0/0/0/0, dp/st/ms 24/0/4, sample-ext default, dbl, mono , hw, GLProfile[GL2/GL2.hw], on-scr[.]],
CGLGraphicsConfig[Display 458651144],
encapsulated MacOSXCGLGraphicsConfiguration[DefaultGraphicsScreen[MacOSXGraphicsDevice[type .macosx, connection decon, unitID 0, handle 0x0, owner false, NullToolkitLock[obj 0x5feb4155]], idx 0],
chosen GLCaps[rgba 8/8/8/1, opaque, accum-rgba 0/0/0/0, dp/st/ms 24/0/4, sample-ext default, dbl, mono , hw, GLProfile[GL2/GL2.hw], offscr[fbo]],
requested GLCaps[rgba 8/8/8/1, opaque, accum-rgba 0/0/0/0, dp/st/ms 24/0/4, sample-ext default, dbl, mono , hw, GLProfile[GL2/GL2.hw], on-scr[.]]]]]],
surfaceLock <72d838d8, 2c55cdb3>[count 0, qsz 0, owner <NULL>]]]
AWT-EventQueue-0-FPSAWTAnimator#01-Timer1: Info: GLCanvas display - skipped GL render, drawable not valid yet
reshape: 199 176
AWT-EventQueue-0: GLCanvas.reshape.0 canvas1 resize [ this 199x176, pixelScale [1.0, 1.0]] -> 199x176 * [1.0, 1.0] -> 199x176 - surfaceHandle 0x7ff642333ad0
AWT-EventQueue-0: Realized Drawable: isRealized true, GLFBODrawableImpl[Initialized false, realized true, texUnit 0, samples 4,
Factory jogamp.opengl.macosx.cgl.MacOSXCGLDrawableFactory@597e8c1c,
Handle 0x7ff642333ad0,
Caps GLCaps[rgba 8/8/8/1, opaque, accum-rgba 0/0/0/0, dp/st/ms 24/0/4, sample-ext default, dbl, mono , hw, GLProfile[GL2/GL2.hw], offscr[fbo]],
fboI back 0, front 0, num 0,
FBO front read 0, null,
FBO back write 0, null,
Surface JAWTWindow[0x1e85081c][JVM version: 17.0.4 (17.0.4 update 0)
JAWT version: 0x80010004, CA_LAYER: true, isLayeredSurface true, bounds [ 6 / 18 199 x 176 ], insets [ l 0, r 0 - t 0, b 0 - 0x0], pixelScale 1.0x1.0, shallUseOffscreenLayer false, isOffscreenLayerSurface true, attachedSurfaceLayer 0x0, windowHandle 0x7ff6421c2ec0, surfaceHandle 0x7ff642333ad0, bounds [ 6 / 18 199 x 176 ], insets [ l 0, r 0 - t 0, b 0 - 0x0], window [6/18 199x176], pixels[scale 1.0, 1.0 -> 199x176], visible true, lockedExt false,
config AWTGraphicsConfiguration[AWTGraphicsScreen[AWTGraphicsDevice[type .awt, connection Display 458651144, unitID 0, awtDevice sun.awt.CGraphicsDevice@22321a07, handle 0x0], idx 0],
chosen GLCaps[rgba 8/8/8/1, opaque, accum-rgba 0/0/0/0, dp/st/ms 24/0/4, sample-ext default, dbl, mono , hw, GLProfile[GL2/GL2.hw], offscr[fbo]],
requested GLCaps[rgba 8/8/8/1, opaque, accum-rgba 0/0/0/0, dp/st/ms 24/0/4, sample-ext default, dbl, mono , hw, GLProfile[GL2/GL2.hw], on-scr[.]],
CGLGraphicsConfig[Display 458651144],
encapsulated MacOSXCGLGraphicsConfiguration[DefaultGraphicsScreen[MacOSXGraphicsDevice[type .macosx, connection decon, unitID 0, handle 0x0, owner false, NullToolkitLock[obj 0x5feb4155]], idx 0],
chosen GLCaps[rgba 8/8/8/1, opaque, accum-rgba 0/0/0/0, dp/st/ms 24/0/4, sample-ext default, dbl, mono , hw, GLProfile[GL2/GL2.hw], offscr[fbo]],
requested GLCaps[rgba 8/8/8/1, opaque, accum-rgba 0/0/0/0, dp/st/ms 24/0/4, sample-ext default, dbl, mono , hw, GLProfile[GL2/GL2.hw], on-scr[.]]]],
awtComponent AWT-GLCanvas[Realized true,
jogamp.opengl.GLFBODrawableImpl,
Factory jogamp.opengl.macosx.cgl.MacOSXCGLDrawableFactory@597e8c1c,
handle 0x7ff642333ad0,
Drawable size 199x176 surface[199x176],
AWT[pos 6/18, size 199x176,
visible true, displayable true, showing false,
AWTGraphicsConfiguration[AWTGraphicsScreen[AWTGraphicsDevice[type .awt, connection Display 458651144, unitID 0, awtDevice sun.awt.CGraphicsDevice@22321a07, handle 0x0], idx 0],
chosen GLCaps[rgba 8/8/8/1, opaque, accum-rgba 0/0/0/0, dp/st/ms 24/0/4, sample-ext default, dbl, mono , hw, GLProfile[GL2/GL2.hw], offscr[fbo]],
requested GLCaps[rgba 8/8/8/1, opaque, accum-rgba 0/0/0/0, dp/st/ms 24/0/4, sample-ext default, dbl, mono , hw, GLProfile[GL2/GL2.hw], on-scr[.]],
CGLGraphicsConfig[Display 458651144],
encapsulated MacOSXCGLGraphicsConfiguration[DefaultGraphicsScreen[MacOSXGraphicsDevice[type .macosx, connection decon, unitID 0, handle 0x0, owner false, NullToolkitLock[obj 0x5feb4155]], idx 0],
chosen GLCaps[rgba 8/8/8/1, opaque, accum-rgba 0/0/0/0, dp/st/ms 24/0/4, sample-ext default, dbl, mono , hw, GLProfile[GL2/GL2.hw], offscr[fbo]],
requested GLCaps[rgba 8/8/8/1, opaque, accum-rgba 0/0/0/0, dp/st/ms 24/0/4, sample-ext default, dbl, mono , hw, GLProfile[GL2/GL2.hw], on-scr[.]]]]]],
surfaceLock <1b610370, 28cce63c>[count 0, qsz 0, owner <NULL>]]]
reshape: 1575 921
AWT-EventQueue-0: GLCanvas.reshape.0 canvas0 resize [ this 1575x921, pixelScale [1.0, 1.0]] -> 1575x921 * [1.0, 1.0] -> 1575x921 - surfaceHandle 0x7ff6421bdfb0
AWT-EventQueue-0: Reshape: 1575x921
AWT-EventQueue-0: Reshape: 199x176
reshape: 1561 921
AWT-EventQueue-0: GLCanvas.reshape.0 canvas0 resize [ this 1561x921, pixelScale [1.0, 1.0]] -> 1561x921 * [1.0, 1.0] -> 1561x921 - surfaceHandle 0x7ff6421bdfb0
AWT-EventQueue-0: Reshape: 1561x921
reshape: 1542 921
AWT-EventQueue-0: GLCanvas.reshape.0 canvas0 resize [ this 1542x921, pixelScale [1.0, 1.0]] -> 1542x921 * [1.0, 1.0] -> 1542x921 - surfaceHandle 0x7ff6421bdfb0
AWT-EventQueue-0: Reshape: 1542x921
reshape: 1533 921
AWT-EventQueue-0: GLCanvas.reshape.0 canvas0 resize [ this 1533x921, pixelScale [1.0, 1.0]] -> 1533x921 * [1.0, 1.0] -> 1533x921 - surfaceHandle 0x7ff6421bdfb0
AWT-EventQueue-0: Reshape: 1533x921
reshape: 1527 921
AWT-EventQueue-0: GLCanvas.reshape.0 canvas0 resize [ this 1527x921, pixelScale [1.0, 1.0]] -> 1527x921 * [1.0, 1.0] -> 1527x921 - surfaceHandle 0x7ff6421bdfb0
AWT-EventQueue-0: Reshape: 1527x921