NitrogenEmulator / Nitrogen

Nitrogen Emulator
123 stars 23 forks source link

Roms crash in SPU.cpp SPU_CloneUser() #20

Closed Joride closed 2 years ago

Joride commented 9 years ago

Crash in: SPU.cpp - SPU_CloneUser() line236: memcpy(SPU_user->channels,SPU_core->channels,sizeof(SPU_core->channels));

"Thread 1: EXC_BAD_ACCESS"

Diagnostics: iOS device: iPhone 6 Plus iOS version: iOS 8.1.3 (12B466) Jailbreak status: not jailbroken Download location: ROMs downloaded from emu paradise.com

Roms tested:

fnsroot commented 9 years ago

Had the same issue: here a "dirty fix". Line 260: [...] delete SPU_user; SPU_user = NULL;

if(synchmode == ESynchMode_DualSynchAsynch)
{
    SPU_user = new SPU_struct(buffersize);
    //SPU_CloneUser(); <-- comment out this line, line 260

}

}

[...]

Joride commented 9 years ago

Great, this makes the ROMs run. Can you explain briefly what I just changed?

nintyapple commented 9 years ago

@fnsroot Good workaround, but seems to crash settings when opened.