-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
macOS: PlatformException on Hot Restart #2405
Comments
For unknown reasons, the Flutter PlatformView is not disposed automatically on Hot Restart. |
I also found similar issues in my project |
Experiencing the same issue; wasn't aware it only happens on hot restart but a full rebuild helps |
Here is the relevant issue in the Flutter repo: flutter/flutter#110381 A particular problem with using PlatformView and Hot Restart on macOS has been fixed. The fix is only on the main branch right now. I'm not entirely certain that fix will address this issue here, but it would be worth retesting against the Flutter main branch. |
Is there an existing issue for this?
Current Behavior
When I run the example application on macOS and perform a hot restart, I get the following exception:
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(recreating_view, trying to create an already created view, view id: '0', null)
Expected Behavior
The widget tree is rebuilt and a fresh instance of
InAppWebView
is created without throwing an exception.Steps with code example to reproduce
Steps with code example to reproduce
// Paste your code here
Stacktrace/Logs
Stacktrace/Logs
Flutter version
3.24.4
Operating System, Device-specific and/or Tool
macOS
Plugin version
6.2.0-beta.1
Additional information
No response
Self grab
The text was updated successfully, but these errors were encountered: