EmuNewz Network
Improvements in error handling - Printable Version

+- EmuNewz Network (https://www.emunewz.net/forum)
+-- Forum: PSP Emulation (https://www.emunewz.net/forum/forumdisplay.php?fid=191)
+--- Forum: JPCSP Official Forum (https://www.emunewz.net/forum/forumdisplay.php?fid=51)
+---- Forum: svn trunk discussion (https://www.emunewz.net/forum/forumdisplay.php?fid=56)
+---- Thread: Improvements in error handling (/showthread.php?tid=2282)



Improvements in error handling - Hykem - 09-28-2010

As of r1777, I've done some cleanup in JPCSP's MainGUI in order to restore the ability to use the "Reset" button and to allow users to load a game after having another one already running.
Since some time ago, attempting to load a game after another would trigger a "Critical Error" due to lack of memory space, which would also happen when using the "Reset" button.

Hopefully, this bug is now fixed, but not when using shaders. If you have shaders enabled, expect an error to occur on the console, due to the repeated linking of the shader programs caused by the multiple loadings (still looking into this issue).

Anyway, I've run some tests with a couple of applications, but could someone please post their results and confirm if this issue is solved?
Thanks! Smile


RE: Improvements in error handling - MaXiMu - 09-29-2010

I can confirmed resolved the error in the load and he is right if the shaders enable an error occurs

Exception in thread "Thread Display Async" javax.media.opengl.GLException: java.lang.ArrayIndexOutOfBoundsException: 12
at javax.media.opengl.Threading.invokeOnOpenGLThread (Threading.java: 271)
at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround (GLCanvas.java: 410)
at javax.media.opengl.GLCanvas.display (GLCanvas.java: 244)
jpcsp.HLE.modules150.sceDisplay at $ AsyncDisplayThread.run (sceDisplay.java: 199)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 12
at jpcsp.graphics.Uniforms.allocateId (Uniforms.java: 65)
at jpcsp.graphics.RE.REShader.initShader (REShader.java: 83)
at jpcsp.graphics.RE.REShader. <init> (REShader.java: 63)
at jpcsp.graphics.RE.RenderingEngineFactory.createRenderingEngine (RenderingEngineFactory.java: 40)
at jpcsp.HLE.modules150.sceDisplay.display (sceDisplay.java: 1041)
at com.sun.opengl.impl.GLDrawableHelper.display (GLDrawableHelper.java: 78)
javax.media.opengl.GLCanvas at $ DisplayAction.run (GLCanvas.java: 435)
at com.sun.opengl.impl.GLDrawableHelper.invokeGL (GLDrawableHelper.java: 194)
javax.media.opengl.GLCanvas at $ DisplayOnEventDispatchThreadAction.run (GLCanvas.java: 452)
at java.awt.event.InvocationEvent.dispatch (InvocationEvent.java: 199)
at java.awt.EventQueue.dispatchEvent (EventQueue.java: 597)
at java.awt.EventDispatchThread.pumpOneEventForFilters (EventDispatchThread.java: 269)
at java.awt.EventDispatchThread.pumpEventsForFilter (EventDispatchThread.java: 184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy (EventDispatchThread.java: 174)
at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java: 169)
at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java: 161)
at java.awt.EventDispatchThread.run (EventDispatchThread.java: 122)