mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-13 23:23:29 +01:00
Crash on iOS9 after refetch on sectioned listMonitor #185
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zalogatomek on GitHub (Nov 8, 2017).
So, I've added simple sectioned monitor to
StackSetupDemoViewControllerlike this:I also added a
UIBarButtonItemin Storyboard which performsrefetchaction.Lastly, in
viewWillAppear:Now, every refetch fails with
EXC_BAD_ACCESS:I didn't try it on iOS10, but on iOS11 works ok.
@JohnEstropia commented on GitHub (Nov 9, 2017):
@zalogatomek Does this still happen if you add a
monitor.removeObserver(self)from the observer'sdeinit?@zalogatomek commented on GitHub (Nov 9, 2017):
@JohnEstropia Yes, it does.
@JohnEstropia commented on GitHub (Nov 9, 2017):
@zalogatomek Thanks, I'll investigate. Can you tell which CoreStore branch or version you are using?
@zalogatomek commented on GitHub (Nov 9, 2017):
@JohnEstropia I'm on
master,4.2.2. I have also checkedprototype/Swift_4_0in some other project.In my observation: this does not happen when using
CoreStoreObject. In particular List Observer Demo usesCoreStoreObjectwith sectionedListMonitor, but it works fine on iOS9.But I can't (at least at the moment) check
CoreStoreObjectin mentioned project.@JohnEstropia commented on GitHub (Nov 9, 2017):
@zalogatomek Fixed this in the latest
4.2.3version (master). Let me know if it works for you@JohnEstropia commented on GitHub (Nov 9, 2017):
For reference, this issue also had been haunting the
prototype/Swift_4_0branch. The commit above was also merged there and I have confirmed that the Swift 4 branch is also fixed now.@zalogatomek commented on GitHub (Nov 10, 2017):
@JohnEstropia Works great, thanks