Closed GoogleCodeExporter closed 9 years ago
Yeah, that seems to be an issue with BufferStrategy in Java.. I am not sure
what causes it, but it never made my program crash or work incorrectly. Does
your program not work when that message appears?
Original comment by samuel.a...@gmail.com
on 30 Sep 2010 at 1:59
Actually, it freezes when the error occur. Disabling the instruction
"canvasFrame.showImage(image)" make it works fine. Another detail I've noticed
is that if I wait a low time before compile and run again the program (10 sec
for example), it works without error. Maybe it's a problem with Garbage
Collection or something related?
Original comment by sleeping...@gmail.com
on 30 Sep 2010 at 2:04
Ah, no, if it freezes it's probably a problem with your video card driver..
You can also try to use OpenGL instead of X11 SHM by setting the _JAVA_OPTIONS
environment variable before executing your program, something like this in bash:
export _JAVA_OPTIONS="-Dsun.java2d.opengl=True"
or put it in ~/.bashrc and relog in.
Original comment by samuel.a...@gmail.com
on 30 Sep 2010 at 2:13
Okay, I will try this evening then I will show the results! Thanks for help! :)
Original comment by sleeping...@gmail.com
on 30 Sep 2010 at 2:18
Closing this long-standing issue, assuming that OpenGL or a better video driver
did the trick. Please reopen the issue if that is not the case, thank you.
Original comment by samuel.a...@gmail.com
on 4 Nov 2010 at 10:32
Original issue reported on code.google.com by
sleeping...@gmail.com
on 30 Sep 2010 at 10:40