NitrogenEmulator / Nitrogen

Nitrogen Emulator
123 stars 23 forks source link

Crash when launching a ROM on iOS 8.3 #23

Closed benjamincrozat closed 6 years ago

benjamincrozat commented 9 years ago

Hello,

Thank you for making this emulator. I wanted to get my hands on it so I compiled it and tried to launch a game but it crashes as soon as I select a game. Tried on iPhone 5c and iPad mini. I gave up to try it on my 6 Plus. Any tip for this problem?

Gito12 commented 9 years ago

Hello i am running an I5 IOS 8.1.2 Jailbroken and i am also facing the same issue where the application will crash at launch when opening a ROM

sethhoward commented 9 years ago

Try turning off audio sync

vixducis commented 9 years ago

EDIT: this seems to bo related to another issue, please ignore my comment.

I have the same issue, please to look at the attached screenshot for where it went wrong. I'm running on the iPad 4, iOS 8.3, non-jailbroken, with the all-new free provisioning of Xcode 7.

schermafbeelding 2015-06-10 om 21 02 12

sofakng commented 9 years ago

Exact same issue and breaks at the same spot as vixducis.

I'm running iOS 8.3 on my iPad Air 2. It crashes immediately after selecting a ROM.

EDIT: I've also tried disabling sound and synchronous audio is also off.

tragessere commented 9 years ago

In case anyone is still using this, I just commented out the entire if statement and it seems to be working fine. (Though I honestly have no idea what the repercussions of this are)

Anyway, the code to comment out is:

Nitrogen/Main/DeSmuME/SPU.cpp lines: 235-238

(I guess this was mentioned in the other issue thread, but I'll leave this here anyway)

yoshisuga commented 8 years ago

If you comment out the entire if statement, you don't get sound when resuming from a save state.

The SPU_core is NULL when it crashes, so to fix this, I changed it to the following:

    if(SPU_user && SPU_core) {
        memcpy(SPU_user->channels,SPU_core->channels,sizeof(SPU_core->channels));
        SPU_user->regs = SPU_core->regs;
    }

I now get sound when resuming from a save state :)

her commented 8 years ago

yoshisuga thanks for the edit here this allowed me to launch the game however after a quick restart all sound has cut off now.

iOS 9.0.1 iPhone 6

PS after changing this line and adding "$$ SPU_core" Xcode reported nearly 200 fewer (!) issues when compiling