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: wrong background context for exporting and filtering entities #259

Merged

Conversation

jasesuperhero
Copy link
Contributor

Context

In my project, I enabled the "-com.apple.CoreData.ConcurrencyDebug" option, and the app started crashing. I was puzzled by this because everything seemed fine at first glance.

After some investigation, I realized the issue: we are creating a new entity for the store while using a shared store and its background context to remove unnecessary session entities. This mismatch in the queue is causing the crash.

Afterward, I added CoreData debug flags to the demo targets to identify and resolve the issue more quickly and easily.

@kean
Copy link
Owner

kean commented Jun 3, 2024

Great catch, and thank you for enabling the debug flags.

@kean kean merged commit fb1002a into kean:main Jun 3, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants