Slick Forums

Discuss the Slick 2D Library
It is currently Thu Jun 01, 2023 10:08 pm

All times are UTC

Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu May 24, 2012 1:55 pm 

Joined: Thu May 24, 2012 1:34 pm
Posts: 1
I have been playing around Pedigree editor and I found that when I move growth factor down (to the left) or change something down in Rendering, preview stops updating. After running it in netbeans it showed me that it throws "Exception in thread "AWT-EventQueue-0" org.lwjgl.opengl.OpenGLException: Invalid operation (1282)" (number in brackets may change).
I'm not very good in opengl so I don't know what does that exception mean, but when I was browsing sources for possible solution, I found that in class org.newdawn.slick.CanvasGameContainer on line 91 (scheduleUpdate) only SlickExceptions are caught. Wouldn't be better to catch every exception, or add catch for OpenGLException, for higher stability? SlickExceptions may be equally critical as any other, so I don't see any reason why to catch only them.

Btw. I'm running Mac OS X 10.6.8 with afaik highest Java version possible

Thanks, Darkyen

PostPosted: Wed May 30, 2012 4:28 pm 
Slick Zombie

Joined: Sat Jan 27, 2007 7:10 pm
Posts: 1482
Can't reproduce the error. If you find a more consistent way to reproduce it, I can look into a fix.

Until then, the editor should catch all variety of exceptions, instead of just SlickExceptions. Change in dev branch.

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group