-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
(iOS 12 beta 2) Multiple call of "MagicalRecord saveWithBlock:" freezes UI #1331
Comments
Same issue on beta 3 |
As I can see, code stuck at NSManagedObjectContext func "save:" |
Is this still an issue in the latest iOS 12 beta? |
Running the latest iOS beta I'm having the same issue. @laGrave @fatourosfotis Did either of you ever figure out a workaround for this? |
To close the loop for anyone that is experiencing this issue. Seems like this is a bigger issue than Magical Record (https://forums.developer.apple.com/message/324460#324460). Our temporary solution was to make the root context a main queue concurrency type and to have MR_defaultContext to return the root context instead. It's a bad fix but at least no more UI deadlocks. |
I've stuck with that issue and decided to quickly migrate to the Realm DB. |
i'm facing the same issue as you said but not sure why did happen anyway. Please tell me the reason if possible. thx |
Is there still no solution yet? I'm facing the same issue with three simple "SaveWithBlockAndWait" calls. |
I'm facing the same issue, since changing the rootContext to a mainContext is not a good solution, I have to look for an alternate solution. Any advice >.< |
This is what I basically did. I remade all my operations to work in synchronous mode in one background thread, which is fixed my issue, since all concurrent writings are gone. Not sure if that's a good one, probably will migrate to other DB as well.
|
Having the same issue in iOS 12 @AKyashkinCherryhome the above solution didn't work. |
Hello,
In iOS 12 beta 2 I face the following issue.
I call from UI a method to update some data in my database with the following code:
The problem is when this function is called multiple times, the app freezes.
The console output is:
That was working for 2 years.
Is something that I missing, or there are changes in core data in iOS 12?
Τhanks in advance.
The text was updated successfully, but these errors were encountered: