ceaseless-prayer / CeaselessIOS

This is the iOS application code for Ceaseless.
http://www.ceaselessprayer.com
MIT License
5 stars 2 forks source link

Installing the app and terminating it before the background job is finished seems to cause it to be unable to load #90

Closed chrislim closed 9 years ago

chrislim commented 9 years ago

I installed the app and before it was done syncing the address book, I terminated it. Then when I tried to re-open it, it would not load at all. Even trying to reinstall failed.

chrislim commented 9 years ago

I tried reinstalling and doing this again. This time I tap the icon, but the app is not starting. I originally did this to test something with the removing of a contact from the card array--so it could have to do with modifying objects that are being modified in the background.

chrislim commented 9 years ago

Reproduction steps:

  1. Install app
  2. Remove a chosen person from Ceaseless
  3. Terminate the app
  4. Try to load the app

It just crashes.

chrislim commented 9 years ago

Actually this may be due to some changes I'm making to removing a person from ceaseless where I'm trying to remove it from the PeopleQueue as well.

chrislim commented 9 years ago

Ah, we had a cascade delete rule on the relationship from the PersonIdentifier to the PeopleQueue...looking into making that go null instead.

chrislim commented 9 years ago

Instead of setting it to nil, I delete the destination object and this seems to have solved the crash.