OatmealDome / dolphin-ios

Dolphin for iOS, reborn
Other
250 stars 27 forks source link

Need help with enabling JIT when using Xcode (Giving a CPU error) #131

Open EXELORD91 opened 3 months ago

EXELORD91 commented 3 months ago

Screenshot 2024-03-07 at 9 42 06 AM

So here Is My issue, I was able to open Xcode and use the "Debug" --> "Attach by Process" --> "DolphinIOS" in order to enable JIT, but whenever I try to run a game (In this instance I am running "Castlevania The Adventure: Rebirth") the screen freezes and I am given these error codes. One being "CPU-GPU thread (27): EXC_BAD_ACCESS (code=50, address=0x129044000)" and "CAReportingClient.mm:532 Attempted to remove a reporter not created by this client ‹careporter_id=3, 783, 866, 187,778 )". I have used other guides that showed how to enable JIT, but it just resulted in the aforementioned error, while the second video required that I get the Xcode build of DolphinIOS in the hopes that enabling JIT from the build itself with allow it to work. Sadly when following the guide, the terminal code I ran "git submodule update --init" did not result in me getting the "Sources" file which help the Xcode build I needed. I linked the video below to show which guide I used.

(Video showing how to enable JIT which I did) https://youtu.be/lfAP9guPF0M?si=cxQVMDqpZRgincey

(Video showing how to get the Xcode build, again I am stuck on the "git submodule update --init" part) https://youtu.be/dh_VN_LSJsE?si=fS1RINAUVYtfke72

I am actively looking for a solution but I have been stuck given the lack of resources about this online or even within the Discord. I am also using a M2 Pro Macbook Pro which is also up to date.

TellowKrinkle commented 3 months ago

That's probably fastmem, which uses segfaults to speed up emulation If you just want JIT, detach Xcode before starting the game (it doesn't undo the JIT enablement) If you want to debug things, disable fastmem

EXELORD91 commented 3 months ago

That's probably fastmem, which uses segfaults to speed up emulation If you just want JIT, detach Xcode before starting the game (it doesn't undo the JIT enablement) If you want to debug things, disable fastmem

That’s what I did since someone mentioned it in the discord. I tried it out and it would just crash the app, tried it in a number of ways, the way your first describe doing it, then just simply disconnect the wire off the phone, and nothing changed. Still would crash :(.