This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Improvements in error handling
#1
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
Reply
#2
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)
[Image: 1388267.png]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)