WilliamLCobb / iNDS

Legacy Repo for iNDS
http://willcobb.me/iNDS.html
236 stars 60 forks source link

Infinite Crash Loop #29

Closed WilliamLCobb closed 8 years ago

WilliamLCobb commented 8 years ago

I was unaware this was a thing. Has this happened to anyone else? img_0326

ghost commented 8 years ago

Ask them what device and ios version and whether it's jailbroken (some jailbreak tweaks affect multitasking) I haven't experienced this issue.

SuperOkazaki commented 8 years ago

This has never happened to me. I compile with Xcode though, so it may not apply to me.

brujo5 commented 8 years ago

No issue here tested in jalibroken and unjalibroken phones.

WilliamLCobb commented 8 years ago

I think it only happens when the app is downloaded from the build store. Maybe it's a problem on their end

I'll leave this open just incase

microbug commented 8 years ago

Definitely happens to me (iOS 9.2, downloaded from build store). Very frustrating. When working, the app says its version 1.2.1 .

WilliamLCobb commented 8 years ago

It's either iOS 9.2 or Buildstore. Has anyone here tried building from source on iOS 9.2?

Pepperoony commented 8 years ago

I swear I'm able to use the app for a while only to later have it continually crash, and I can't tell what's triggering it. Sometimes it's when importing a new game from a rom website, other times I could just be playing to have the app crash and never open again, the only way to fix it is to delete and download again from the build store

I have an iPhone 6s and run iOS 9.2

ghost commented 8 years ago

@Pepperoony did you download from buildstore, cydia, or the source?

ghost commented 8 years ago

@WilliamLCobb does the buildstore add advertisement to INDS?

WilliamLCobb commented 8 years ago

I downloaded from buildstore on iOS 9.0.2 and had no problems. So I think it's something with iOS 9.2. I'll try to borrow a friends phone tomorrow and see if I can figure it out.

WilliamLCobb commented 8 years ago

I don't think so. Why?

ghost commented 8 years ago

I wanted to see because if they were adding ads to your code it could be messing with something. I am running on 9.2.1 (beta) and haven't experienced this issue and I never experienced it while I was on 9.2.

WilliamLCobb commented 8 years ago

Do you have Dropbox sync enabled?

ghost commented 8 years ago

I do on 9.2.1 but didn't on 9.2 since it wasn't available during that time. Is the build store distributing the latest versions?

Pepperoony commented 8 years ago

I downloaded the app from the buildstore

Pepperoony commented 8 years ago

It's happened four times, is there anything I could tell you that could help?

WilliamLCobb commented 8 years ago

It has to be something with the build store. I moved a bunch of things out of the main que at startup and I hope that will will fix it

Pepperoony commented 8 years ago

I'll redownload and try right now

WilliamLCobb commented 8 years ago

Not right now but I'll be releasing version 1.3.0 in a little bit. When they update it on the build store can you post here saying if it's fixed or not

Pepperoony commented 8 years ago

Sure sure, thanks

ghost commented 8 years ago

it might be a signature problem , when a signature is revoked an app won't open. Idk if it causes looping but it could be a signature issue I mean that's really all they (buildstore) add is a different signature.

WilliamLCobb commented 8 years ago

I think build store does something different where they create a developer account with 100 test accounts that aren't revoked or something.

I think the crashing he was referring to is just random crashing that is expected but not being able to open it back up makes no sense. If I had to guess something in the bundle is being overwritten as a result of the crash and when that happens it invalidates the signature and the app can't open until you redownload it. But I could be completely wrong

ghost commented 8 years ago

Is there a way to get a crash log?

WilliamLCobb commented 8 years ago

I don't think it even produces a crash log when this happens. Which would explain why I've never received one. Hopefully it's not that though and the changes I made will fix it

Pepperoony commented 8 years ago

When will the latest update launch? The next couple of days?

WilliamLCobb commented 8 years ago

It's up on buildstore now

Pepperoony commented 8 years ago

I'll try it out and report if I get any crashes

Pepperoony commented 8 years ago

When exporting a rom zip file from another app into the iNDS app, it no longer saves to the app, like it doesn't appear in the main menu. And when exporting another time, the app crashed like it usually would, but this time thankfully I could open it again.

WilliamLCobb commented 8 years ago

Yea I messed up 7z in the last version by accident. It'll be fixed in the next version though

Pepperoony commented 8 years ago

Even worse I can't download roms from anywhere through the in-app browser making the app useless :/ it'll start to download and then stall on 'opening' and I'll try leaving the app then opening it again, and the file will just be gone

microbug commented 8 years ago

I updated to 1.3.0 via the build store. I am getting a random crash loop, but it's different this time. Like before, deleting the app and reinstalling fixed the problem, but (unlike before) transferring the old data to it didn't break it again. To clarify, once the crash loop started, I connected my phone to iTunes and transferred all the data from iNDS to my PC. I deleted and reinstalled it, and transferred the data back to iNDS and it works.

Edit: if you want to take a look at the data, I can link it for you.

WilliamLCobb commented 8 years ago

Thank you so much for this! Could you possible zip that folder causing the problem and email it to me?

WilliamLCobb commented 8 years ago

Are you saying this time it's not because of the data?

microbug commented 8 years ago

It seems so; once I restored the data it didn't crash. I did have some weird issues with sound not playing though. I'll send you and anyone else who can contribute a link; I don't think it's a good idea to post it here since it contains ROMs.

Edit: email me at richardcoleman7 {at} icloud {dot} com if you want a copy.

Edit 2: The sound issues happened when I opened Pokemon Black on the autosave file (saved 14:15 on 1/1/2016). Resolved them by saving properly, messing around with sound options (enabling/disabling sound and synchronous audio a few times) and then quitting and restarting the app, loading from new save.

Edit 3: I just tried putting a backup of my save files which (under 1.2.1) did cause the crash loop. It now runs fine. If anyone wants those files, shoot me an email, but I doubt they're useful.

Pepperoony commented 8 years ago

Any idea when audio will be as stable as the fps. I've noticed most music in games is a bit off, could be the roms themselves but I've noticed it in most games, specifically professor layton, whose voice acting is completely messed up

brujo5 commented 8 years ago

I think that normal because the emulator uses fast forward to speed up emulation.(1x,2x,3x) for that reason they are not synchronized sound and video, all this will be resolved by itself in a future when JIT code is finalized. (time to time). I prefer better FPS than perfect Audio. From nds4ios to inds the change has been immense. Thx

WilliamLCobb commented 8 years ago

Which games do you notice it most? I can use them to test it

brujo5 commented 8 years ago

@ Pepperoony says almost all but most noticed in professor layton game

Pepperoony commented 8 years ago

I'm grateful the fps is constantly a rock solid 60 fps in every game I've played, I remember trying NDS4iOS a year ago and it was pretty much unplayable.

However the audio is just a little off, sometimes it's very easily forgettable. Such as the ace attorney games, everything sounds perfect but there's a few stutters in the music I can hear.

As I mentioned, Professor Layton and the Curious Village has voice acting that is quite ruined by the audio glitches. I turn on synchronous audio and that helps a lot, but ruins sound affects in other parts of the game, so I have to turn it off and on a lot.

What I'm describing is in the first five minutes of the game. So defiantly just give it a try @WilliamLCobb

microbug commented 8 years ago

Pokémon 4th gen music sounds very odd, especially without synchronous audio on. There are also graphical glitches in the form of black pixels on the screen, which move randomly when you move; this makes it unplayable for me.

On 2 Jan 2016, at 04:37, SE2Dev notifications@github.com wrote:

I've never even been able launch it on iOS 8.4 on a 5s - it just crashes at the splash screen.

— Reply to this email directly or view it on GitHub.

microbug commented 8 years ago

I've worked out how to reproduce the crash bug I experienced before. I have two profiles with the same name, 'Pokémon'. When I try to delete them, the app crashes when I tap to get rid of the second one. If I try to reopen it crashes again, but just going to the build store and reinstalling it solves the problem (despite it being the same data). This is on 3.0.2 (thanks for the Taptic feedback BTW). Will send you the current zip of save files.

microbug commented 8 years ago

Oops, update: redownloading didn't fix it this time. Will send files.

WilliamLCobb commented 8 years ago

Thanks so much for this! The culprit is definitely Dropbox. I'll start working a on a replacement

microbug commented 8 years ago

Ok, great. I have noticed some odd things with Dropbox, e.g., sometimes if you click link but then cancel it the app pops up with 'linked successfully'.

On 2 Jan 2016, at 22:57, Will Cobb notifications@github.com wrote:

Thanks so much for this! The culprit is definitely Dropbox. I'll start working a on a replacement

— Reply to this email directly or view it on GitHub.

WilliamLCobb commented 8 years ago

I think I fixed it! Thank you guys for all the help.

What was happening was when a file in the directory synced by dropbox was deleted, the dropbox manager deleted the file locally and then queued it to be deleted remotely. It then reloaded the remote file list and if the dropbox server responded quickly enough, it would say it still had that file. The dropbox sync library was dumb and thought since dropbox still had the file it must be new and it should be redownloaded. But once it tried to redownload it, dropbox freaked out because it was supposed to delete the file remotely but also download it back to the device. It then ends up panicking and just crashing the phone over and over again until you reset your local files by deleting and reinstalling the app.

Hopefully this will all be fixed now in the next version.

Pepperoony commented 8 years ago

Eta on the update?

Luke Rooney/ Manager of Marketing luke.rooney@servitehs.org(mailto:luke_rooney@icloud.com)/(562)-360-4258(tel:(562)-360-4258)

Trinity Corporation ServiteHS.org 1952 W La Palma Ave, Anaheim(x-apple-data-detectors://5/2)

On Jan 3, 2016, 12:22 AM -0800, Will Cobbnotifications@github.com, wrote:

I think I fixed it! Thank you guys for all the help.

What was happening was when a file in the directory synced by dropbox was deleted, the dropbox manager deleted the file locally and then queued it to be deleted remotely. It then reloaded the remote file list and if the dropbox server responded quickly enough, it would say it still had that file. The dropbox sync library was dumb and thought since dropbox still had the file it must be new and it should be redownloaded. But once it tried to redownload it, dropbox freaked out because it was supposed to delete the file remotely but also download it back to the device. It then ends up panicking and just crashing the phone over and over again until you reset your local files by deleting and reinstalling the app.

Hopefully this will all be fixed now in the next version.

— Reply to this email directly orview it on GitHub(https://github.com/WilliamLCobb/iNDS/issues/29#issuecomment-168476797).

WilliamLCobb commented 8 years ago

I'll try to get it out tonight or tomorrow morning. The build store will probably then release it tomorrow

NickantX commented 8 years ago

I'm using iNDS on non-jailbroken iOS 9.2 from Buildstore and it was working great, until I enabled Dropbox sync. No matter what I tried (aside from restoring my iPhone) Dropbox syncing would start and crash the app. I even disconnected it and deleted the folder, still crashing. Please help!

WilliamLCobb commented 8 years ago

I'll take another look at the Dropbox sync code. Can you remember anything you did that started the crash loop?

addirg commented 8 years ago

Hey, I've downloaded the app from the build store as I've payed for that service but for some reason it's crashes every time I go to open it preventing me from even entering the app! Any help would be greatly appreciated!!