You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was hesitant to report it since I can't reproduce it consistently, but I thought I'd flag it anyway just in case you:
(a) wanted to know, and/or
(b) had any insight as to what might be causing the issue.
It definitely does crash with the same error if I comment out the Task in didFinishLaunching and then run a query.
My guess therefore is that it is some sort of issue with the login task being de-prioritised over some other Parse function like a query.
Line 106 is the following:
l104 /// The current `ParseConfiguration` for the ParseSwift client.
l105 publicvarconfiguration:ParseConfiguration{l106 Parse.configuration
l107 }
Questions
Is my AppDelegate code the intended way for Parse to be initialised?
Is there a way to guarantee the login task completes either before returning from didFinishLaunching, or at least completes first before any other Tasks?
Is it wise/possible to 'bake' into ParseSwift a means of ensuring that a query won't run until after the initialize function has completed? For example, a flag that makes those other tasks continue waiting until after initialize has returned.
The text was updated successfully, but these errors were encountered:
This issue occurs when using the == query constraint mixed with using the old appDelegate` lifecycle. Workarounds for this are described in #167 (reply in thread)
A fix requiring the ==QueryConstraint to try await will be added to the SDK in 6.0.0
Discussed in #167
Originally posted by project-saf March 28, 2024
Very infrequently, I run in to a crash along the lines of:
Here is my AppDelegate:
I was hesitant to report it since I can't reproduce it consistently, but I thought I'd flag it anyway just in case you:
(a) wanted to know, and/or
(b) had any insight as to what might be causing the issue.
It definitely does crash with the same error if I comment out the Task in
didFinishLaunching
and then run a query.My guess therefore is that it is some sort of issue with the login task being de-prioritised over some other Parse function like a query.
Line 106 is the following:
Questions
didFinishLaunching
, or at least completes first before any other Tasks?initialize
function has completed? For example, a flag that makes those other tasks continue waiting until after initialize has returned.The text was updated successfully, but these errors were encountered: