-
Notifications
You must be signed in to change notification settings - Fork 16
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
Production iOS app freezes #31
Comments
The question is whether this is true of isolates in general or anything specific to |
HI No solution for us yet, we are running the process in the main thread 😓 |
Well, I'm not proficient with Xcode at all (I can use it to ocasionally build my apps for iOS but otherwise, I don't use anything Apple), but on one hand, I suspect that you could try to debug it somehow, but, on the other hand, I also suspect that you're already doing this. :-) By adding lots of log output lines, do you have at least an idea which part of your code doesn't return? |
Yeah, I went down the rabbit hole for a while. Logging from inside Isolates would only work in development, so we accepted that this is probably a corner case we can't solve, at least for now! Thank you |
Consider trying out this PR with a dependency override. rmawatson/flutter_isolate#118 It handles obfuscation etc. But be sure to add pragmas to your top level functions when using obfuscation. |
Hello and thanks for the great project!
We are 72 hours into trying to understand what could cause the Isolate to freeze when our app is compiled and distributed with TestFlight. Everything works correctly in debug, profiling and distribution, but when we try
flutter build ipa
with our without the--obfuscate
option, going into the Isolate does not return.Initially I thought too many plugins where loaded inside the Isolate (MLKIt, TensorFlow and OpenCV), but even trying each of them individually, the result is the same.
Switching to a "non Isolated" execution of the same method works, but the UI is rightfully janky.
I don't think there is any issue with the code, but certainly something is missing/wrong in the build stage.
I am here to see if anyone else ran into the same issue!
The text was updated successfully, but these errors were encountered: