-
Notifications
You must be signed in to change notification settings - Fork 84
When app is hot restarted getting different kinds of errors #72
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
Comments
a) I do have a fix for avoiding the NoSuchElementException on hot reload (will merge in the near future).
I'm not 100% sure (I need to look into it a bit further), but I strongly suspect you should kill any isolate after it's finished its work. This is the approach taken in Flutter |
@nmfisher what about the Platformexception ?
|
I suspect the PlatformException is simply thrown due to the NoSuchElementException being thrown, so fixing the latter should fix the former. For the "application may be doing too much work on its main thread", do you see this in profile/release mode or just debug mode? I encounter this regularly and just attribute it to the usual sluggishness of Flutter's debug mode. I believe it's a warning propagated from Android's main thread (which is different from Flutter's main thread), which is intended to tell Android developers that they should be moving certain work off-thread. Unless it's causing noticeable jank in a release build, I would ignore it. |
Do i need to wait for
Yes i'm seeing it on debug mode . I haven't tried with profile/release mode |
Yes, you will need to wait for the next version for the hot reload fix.
… On 25 Apr 2021, at 3:14 PM, Mr_Robot ***@***.***> wrote:
@nmfisher
I suspect the PlatformException is simply thrown due to the NoSuchElementException being thrown, so fixing the latter should fix the former.
Do i need to wait for flutter_isolate new version ?
do you see this in profile/release mode or just debug mode?
Yes i'm seeing it on debug mode . I haven't tried with profile/release mode
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
UP! |
This should be fixed by #78, you can try |
plugin version : 2.0.0
flutter doctor -v`
Error when hot restarted :
Code :
The text was updated successfully, but these errors were encountered: