fullscreen/windowed exception

my project allows to switch from windowed to fullscreen mode… while the rendering is running. it works well but sometimes (too often) it throws an exception
net.java.games.jogl.GLException: Unable to enumerate pixel formats of window for GLCapabilitiesChooser.
and at this point, or the VM crash, or everything freeze.
any idea of why i get this exception?

seems the bug comes from the fact i call canvas.setSize() and not window.setSize()
but i need to call canvas.setSize() because if i resize the windows, the canvas will not have the same size because of the borders.
how could i do that?

Do you pause your animator when doing the switch?

sure i do. it s not a swapbuffer exception (the solution to prevent the exception is to resize the window and not the canvas) but on some ati cards changing the size of the windows make a non real canvas size due to the border… and it screws up the display (probably due to a bad pixel format after resizing)

Do you have a small test case that illustrates the problem? Could you please file a bug with the JOGL Issue Tracker on the JOGL home page? Please indicate at least the graphics card vendor, OS and version, and JVM version.