Skip to content
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

Fix swipe-down crash #443

Open
vdhamer opened this issue Aug 11, 2024 · 0 comments
Open

Fix swipe-down crash #443

vdhamer opened this issue Aug 11, 2024 · 0 comments
Assignees
Labels
Bug Something isn't working CoreData On-device database Help wanted Extra attention is needed

Comments

@vdhamer
Copy link
Owner

vdhamer commented Aug 11, 2024

Swiping down currently does 2 things:

  1. Deletes the content of the database
  2. Reloads the content of the database

When adding #1, the crash started showing up. It is CoreData complaining about mixing threads aka contexts.
Probably not a data race issue, because Swift 6 doesn’t have any warnings.
Seems to happen if swiping down takes place during either reloading or before prev deletion finishes.

Questions:
? Does crash go away when compiling for Swift 6 (unlikely, but maybe error message is more specific) ?
? Does it happen when deletion and reloading occur simultaneously ?
? Under what thread is deletion done anyway ? Reloading is done on multiple background threads.
? Any pattern visible in when it happens ? Doesn’t seen to crash if everything has completed before swipe.

@vdhamer vdhamer added Bug Something isn't working CoreData On-device database labels Aug 11, 2024
@vdhamer vdhamer self-assigned this Aug 11, 2024
@vdhamer vdhamer added the Help wanted Extra attention is needed label Aug 11, 2024
@vdhamer vdhamer pinned this issue Aug 11, 2024
@vdhamer vdhamer unpinned this issue Aug 16, 2024
@vdhamer vdhamer pinned this issue Oct 4, 2024
@vdhamer vdhamer unpinned this issue Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working CoreData On-device database Help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant