EmuNewz Network

Full Version: Improvements in error handling
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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)