EmuNewz Network

Full Version: Fix Memories Off loading(ThreadManForUser.java)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
r3140 ,read32 - Invalid memory address : 0x8 PC=08902F94 .
Need change HLE/modules150/ThreadManForUser.java line 1187
Code:
if (thread.status == PSP_THREAD_WAITING && newStatus != PSP_THREAD_WAITING_SUSPEND) {
change to
Code:
if (thread.status == PSP_THREAD_WAITING) {
Attach both info log(debug log black screen)
(This fix is found by my friend.)
Thank Sum2012‘post.
Another method
change HLE/modules150/ThreadManForUser.java line 1256
Code:
(line 1256) } else if (thread.isSuspended()){
            if (thread.wait.waitTimeoutAction != null) {
                Scheduler.getInstance().removeAction(thread.wait.microTimeTimeout, thread.wait.waitTimeoutAction);
                thread.wait.waitTimeoutAction = null;
            }
                thread.doCallbacks = false;
        }
Does it help to change ThreadManForUser line 947 from
Code:
hleChangeThreadState(thread, PSP_THREAD_READY);
to
Code:
hleChangeThreadState(thread, thread.isSuspended() ? PSP_THREAD_SUSPEND : PSP_THREAD_READY);
(05-15-2013, 08:47 AM)gid15 Wrote: [ -> ]Does it help to change ThreadManForUser line 947 from
Code:
hleChangeThreadState(thread, PSP_THREAD_READY);
to
Code:
hleChangeThreadState(thread, thread.isSuspended() ? PSP_THREAD_SUSPEND : PSP_THREAD_READY);

Yes,fixed.Thanks for providing better method.
(05-07-2013, 10:49 PM)sum2012 Wrote: [ -> ]r3140 ,read32 - Invalid memory address : 0x8 PC=08902F94 .
Need change HLE/modules150/ThreadManForUser.java line 1187
Code:
if (thread.status == PSP_THREAD_WAITING && newStatus != PSP_THREAD_WAITING_SUSPEND) {
change to
Code:
if (thread.status == PSP_THREAD_WAITING) {
Attach both info log(debug log black screen)
(This fix is found by my friend.)
Thank you to your friend Smile this lead me to the right fix.
The problem should now be fixed in r3141.
Thanks you for right fix Smile