-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with to-many relationship cascade deletes #181
Comments
@prvnl hello there!, I'll be building a sample app to reproduce the two issues you're experiencing. May i ask you a couple questions? 1. 'Cascade crash' bug: 2. 'Weird Behavior' bug: Thanks in advance! P.s.: How did you architect your app? is the UI attached to the mainMOC? or you're using a child context? |
Thanks for your help!
My UI is attached to the main MOC, I using the Core Data code from the AppDelegate of SimpletodoFinal to initialize Core Data |
Hereby the stack trace for 'Cascade crash' bug. As I mentioned before, I just start the app to a menu screen, not even loaded/showing the UITableViewControllers. It seems that the exception is easier to generate when I have more then 1 related to-many objects (e.g. 4 related to-many objects):
|
Hereby another stack trace for 'Cascade crash' bug:
|
@prvnl hello there!. Would you please verify the fix for the cascade crash?. ('Dupes' issue still in the works). Thanks for the feedback!! P.s.: By the way, just in case, the patch is in 'develop' branch. |
Just tried the fix you committed to the develop branch. My first testing was successful and the crash did not occur. Only after e.g. 100 deletes the crash came back. So in the previous version it took around 10 deletes to reproduce the crash, in the new version it takes a lot longer to reproduce the crash but it's still there... Hereby the stack trace:
Maybe it's not related, but I get a lot of the following logging messages (also after restart of the app). I think this is because the object is already deleted by the cascade:
|
@prvnl sorry about the delay!. Added unit tests + (both) issues should be fixed now, in develop. Would it be possible to verify the fix in your end?. _Thanks_!!! |
Yessss!!! This resolved both issues! Thanks @jleandroperez for the fix, now I can use the new Simperium version in my apps! Regards Patrick |
@prvnl thanks for the feedback (and again, thanks for reporting this issue)!! Best, |
Since I’m using the new master branch (also the with the current develop branch), I’m experiencing two problems with to-many relationships. These problems did not occur when I was using the older Simperium Framework (dated 02-06-2013) and using the same database model and same app version.
Steps to reproduce:
Database model has to-many relationship between ‘Work’ -> ‘WorkActivities’. The relationship is using the Cascade delete rule. The inverse relationship is optional and uses the nullify delete rule.
If you need additional logging or something else, just let me know!
Thanks,
Patrick
The text was updated successfully, but these errors were encountered: