-
Notifications
You must be signed in to change notification settings - Fork 433
Description
Environment:
Flutter: 3.35.7 (Dart 3.9.2)
html_editor_enhanced: latest (2.7.1 / current pub.dev version)
flutter_inappwebview: indirect dependency
Platform: Android (tested on several devices, Android 9 - 10)
Problem:
When using HtmlEditor inside a page, everything works normally until I navigate back (pop the route) to another screen.
When using HtmlEditor inside a page, everything works normally while the editor is visible.
The internal WebView loads summernote-no-plugins.html correctly (onLoadStart, onProgressChanged, onLoadStop, etc.).
However, when I navigate back (pop the route), the WebView is disposed — and immediately after that, the Chromium renderer process crashes.
The editor content displays fine and the app doesn’t crash at the Flutter level, but logcat shows a renderer crash right after:
[AndroidInAppWebViewWidget] (android) AndroidInAppWebViewWidget calling "dispose"
E/chromium(...): [ERROR:android_webview/browser/aw_browser_terminator.cc:165] Renderer process (...) crash detected (code -1)
Sometimes this causes a short frame delay or flicker on transition (Slow Looper main: doFrame is XXXms late).
Expected behavior:
After calling dispose(), the WebView should cleanly release native resources.
No Chromium crash or “renderer process terminated” should occur.
Transition back should be smooth (no frame delay).
Questions:
Could the package provide a public API like controller.unload() or controller.disposeWebView()?
Is this a known issue from flutter_inappwebview (renderer crash during disposal of a local asset)?