Skip to content
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

[webview_flutter] crashes while closing the webview: "Platform view hasn't been initialized from the platform view channel" #112542

Open
Hwan-seok opened this issue Sep 28, 2022 · 34 comments
Labels
a: platform-views Embedding Android/iOS views in Flutter apps c: crash Stack traces logged to the console c: fatal crash Crashes that terminate the process engine flutter/engine repository. See also e: labels. p: webview The WebView plugin P2 Important issues not at the top of the work list package flutter/packages repository. See also p: labels. platform-android Android applications specifically team-android Owned by Android platform team triaged-android Triaged by Android platform team

Comments

@Hwan-seok
Copy link

Hwan-seok commented Sep 28, 2022

The crash occurs very randomly while closing the Webview.

E/flutter (30629): [ERROR:flutter/fml/platform/android/jni_util.cc(204)] java.lang.IllegalStateException: Platform view hasn't been initialized from the platform view channel.

Unfortunately, I cannot reproduce it 100%. Sometimes it occurs at the first iteration(attempt) but sometimes it is OK with 100 iterations.

Additional

I found it on three devices(at least).

  1. Samsung Galaxy S10
  2. Samsung Galaxy A32 - SDK 30
  3. Samsung Galaxy Note10+ 5G - SDK 31

You can see detailed logs at the bottom.
I tested on stable & master and both are occured.

  • Webview versions
  webview_flutter:
    dependency: "direct main"
    description:
      name: webview_flutter
      url: "https://pub.dartlang.org"
    source: hosted
    version: "3.0.4"
  webview_flutter_android:
    dependency: transitive
    description:
      name: webview_flutter_android
      url: "https://pub.dartlang.org"
    source: hosted
    version: "2.10.2"
  webview_flutter_platform_interface:
    dependency: transitive
    description:
      name: webview_flutter_platform_interface
      url: "https://pub.dartlang.org"
    source: hosted
    version: "1.9.3"
  webview_flutter_wkwebview:
    dependency: transitive
    description:
      name: webview_flutter_wkwebview
      url: "https://pub.dartlang.org"
    source: hosted
    version: "2.9.4"

Steps to Reproduce

  1. Execute flutter run on the code sample
  2. tap the button to go to the webview page
  3. tap the leading back button to go back
  4. crash occurs

Expected results:

  • Not to crash

Actual results:

  • Crash occurs
Code sample
import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';

void main() => runApp(const MaterialApp(home: FirstPage()));

class FirstPage extends StatefulWidget {
  const FirstPage({super.key});

  @override
  State<FirstPage> createState() => _FirstPageState();
}

class _FirstPageState extends State<FirstPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
          child: ElevatedButton(
        onPressed: () {
          Navigator.of(context)
              .push(MaterialPageRoute(builder: (_) => const WebViewExample()));
        },
        child: const Text("go"),
      )),
    );
  }
}

class WebViewExample extends StatefulWidget {
  const WebViewExample({Key? key}) : super(key: key);

  @override
  State<WebViewExample> createState() => _WebViewExampleState();
}

class _WebViewExampleState extends State<WebViewExample> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      extendBody: true,
      appBar: AppBar(
        automaticallyImplyLeading: true,
        backgroundColor: Colors.transparent,
        title: const Text("aspdkof"),
      ),
      body: WebView(
        initialUrl:
            'https://form.typeform.com/to/E5VANoxV#id=xxxxx&nickname=xxxxx&live_count=xxxxx&phone_number=xxxxx&timer_count=xxxxx&tagr=xxxxx&device=xxxxx',
        backgroundColor: Colors.transparent,
        javascriptMode: JavascriptMode.unrestricted,
        navigationDelegate: (NavigationRequest req) async {
          final updatedUrl = req.url;
          print("updated: $updatedUrl");
          return NavigationDecision.navigate;
        },
      ),
    );
  }
}
Logs
/cr_AwContents(30629): WebView.destroy() called while WebView is still attached to window.
D/InputMethodManager(30629): HSIFW - flag : 0
E/flutter (30629): [ERROR:flutter/fml/platform/android/jni_util.cc(204)] java.lang.IllegalStateException: Platform view hasn't been initialized from the platform view channel.
E/flutter (30629): 	at io.flutter.plugin.platform.PlatformViewsController.initializePlatformViewIfNeeded(PlatformViewsController.java:990)
E/flutter (30629): 	at io.flutter.plugin.platform.PlatformViewsController.onDisplayPlatformView(PlatformViewsController.java:1060)
E/flutter (30629): 	at io.flutter.embedding.engine.FlutterJNI.onDisplayPlatformView(FlutterJNI.java:1380)
E/flutter (30629): 	at android.os.MessageQueue.nativePollOnce(Native Method)
E/flutter (30629): 	at android.os.MessageQueue.next(MessageQueue.java:335)
E/flutter (30629): 	at android.os.Looper.loop(Looper.java:206)
E/flutter (30629): 	at android.app.ActivityThread.main(ActivityThread.java:8633)
E/flutter (30629): 	at java.lang.reflect.Method.invoke(Native Method)
E/flutter (30629): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
E/flutter (30629): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
E/flutter (30629):
F/flutter (30629): [FATAL:flutter/shell/platform/android/platform_view_android_jni_impl.cc(1466)] Check failed: fml::jni::CheckException(env).
I/flutter (30629): 2022-09-28 15:05:11.907156 ℹ️ 🔌 Sending Event: health.check
I/flutter (30629): 2022-09-28 15:05:11.941289 ℹ️ 🔌 Needs to reconnect : false
I/flutter (30629): 2022-09-28 15:05:12.025306 ℹ️ 🔌 Event received: health.check
I/flutter (30629): 2022-09-28 15:05:12.026420 ℹ️ 🔌 HealthCheck received : 6316032b-0a0b-3231-0000-00000088b446
F/libc    (30629): Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 30629 (ty_app.sub.zani), pid 30629 (ty_app.sub.zani)

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/a32ks/a32:11/RP1A.200720.012/A325NKSU1AUJ3:user/release-keys'
Revision: '4'
ABI: 'arm64'
Timestamp: 2022-09-28 15:05:12+0900
pid: 30629, tid: 30629, name: ty_app.sub.zani  >>> live.lafity.lafity_app.sub.zani <<<
uid: 10731
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: '[FATAL:flutter/shell/platform/android/platform_view_android_jni_impl.cc(1466)] Check failed: fml::jni::CheckException(env).'
    x0  0000000000000000  x1  00000000000077a5  x2  0000000000000006  x3  0000007ff6f34fd0
    x4  0000007941bc1000  x5  0000007941bc1000  x6  0000007941bc1000  x7  000000000082b714
    x8  00000000000000f0  x9  000000793e5c9758  x10 ffffff80fffffbdf  x11 0000000000000001
    x12 0000000055a7fea8  x13 000000000000007e  x14 0000000000000000  x15 000010d27d89dcec
    x16 000000793e69b948  x17 000000793e67a860  x18 00000078127ccb99  x19 00000000000000ac
    x20 00000000000077a5  x21 00000000000000b2  x22 00000000000077a5  x23 00000000ffffffff
    x24 b400007940551500  x25 0000000000000000  x26 000000000000000d  x27 0000000000000081
    x28 0000007ff6f352e8  x29 0000007ff6f35050
    lr  000000793e62d6dc  sp  0000007ff6f34fb0  pc  000000793e62d70c  pst 0000000000000000

backtrace:
      #00 pc 000000000008a70c  /apex/com.android.runtime/lib64/bionic/libc.so (abort+180) (BuildId: 7c95cc0d17d92058007afa23409fd94e)
      #01 pc 00000000015bd44c  /data/app/~~d8EY0jRXjDyiWtqt8B1qVw==/live.lafity.lafity_app.sub.zani-UcX8LoXqbfUuiZ2qaNPoYA==/base.apk!libflutter.so (offset 0x9996000) (BuildId: 36a3f11c2e8288daf999b421e4196bf50667cb80)
      #02 pc 00000000015e388c  /data/app/~~d8EY0jRXjDyiWtqt8B1qVw==/live.lafity.lafity_app.sub.zani-UcX8LoXqbfUuiZ2qaNPoYA==/base.apk!libflutter.so (offset 0x9996000) (BuildId: 36a3f11c2e8288daf999b421e4196bf50667cb80)
      #03 pc 00000000015caba8  /data/app/~~d8EY0jRXjDyiWtqt8B1qVw==/live.lafity.lafity_app.sub.zani-UcX8LoXqbfUuiZ2qaNPoYA==/base.apk!libflutter.so (offset 0x9996000) (BuildId: 36a3f11c2e8288daf999b421e4196bf50667cb80)
      #04 pc 0000000001cf44dc  /data/app/~~d8EY0jRXjDyiWtqt8B1qVw==/live.lafity.lafity_app.sub.zani-UcX8LoXqbfUuiZ2qaNPoYA==/base.apk!libflutter.so (offset 0x9996000) (BuildId: 36a3f11c2e8288daf999b421e4196bf50667cb80)
      #05 pc 00000000019033cc  /data/app/~~d8EY0jRXjDyiWtqt8B1qVw==/live.lafity.lafity_app.sub.zani-UcX8LoXqbfUuiZ2qaNPoYA==/base.apk!libflutter.so (offset 0x9996000) (BuildId: 36a3f11c2e8288daf999b421e4196bf50667cb80)
      #06 pc 0000000001902aa0  /data/app/~~d8EY0jRXjDyiWtqt8B1qVw==/live.lafity.lafity_app.sub.zani-UcX8LoXqbfUuiZ2qaNPoYA==/base.apk!libflutter.so (offset 0x9996000) (BuildId: 36a3f11c2e8288daf999b421e4196bf50667cb80)
      #07 pc 0000000001903894  /data/app/~~d8EY0jRXjDyiWtqt8B1qVw==/live.lafity.lafity_app.sub.zani-UcX8LoXqbfUuiZ2qaNPoYA==/base.apk!libflutter.so (offset 0x9996000) (BuildId: 36a3f11c2e8288daf999b421e4196bf50667cb80)
      #08 pc 00000000019022dc  /data/app/~~d8EY0jRXjDyiWtqt8B1qVw==/live.lafity.lafity_app.sub.zani-UcX8LoXqbfUuiZ2qaNPoYA==/base.apk!libflutter.so (offset 0x9996000) (BuildId: 36a3f11c2e8288daf999b421e4196bf50667cb80)
      #09 pc 000000000190204c  /data/app/~~d8EY0jRXjDyiWtqt8B1qVw==/live.lafity.lafity_app.sub.zani-UcX8LoXqbfUuiZ2qaNPoYA==/base.apk!libflutter.so (offset 0x9996000) (BuildId: 36a3f11c2e8288daf999b421e4196bf50667cb80)
      #10 pc 0000000001903b8c  /data/app/~~d8EY0jRXjDyiWtqt8B1qVw==/live.lafity.lafity_app.sub.zani-UcX8LoXqbfUuiZ2qaNPoYA==/base.apk!libflutter.so (offset 0x9996000) (BuildId: 36a3f11c2e8288daf999b421e4196bf50667cb80)
      #11 pc 00000000015e4540  /data/app/~~d8EY0jRXjDyiWtqt8B1qVw==/live.lafity.lafity_app.sub.zani-UcX8LoXqbfUuiZ2qaNPoYA==/base.apk!libflutter.so (offset 0x9996000) (BuildId: 36a3f11c2e8288daf999b421e4196bf50667cb80)
      #12 pc 00000000015e9df8  /data/app/~~d8EY0jRXjDyiWtqt8B1qVw==/live.lafity.lafity_app.sub.zani-UcX8LoXqbfUuiZ2qaNPoYA==/base.apk!libflutter.so (offset 0x9996000) (BuildId: 36a3f11c2e8288daf999b421e4196bf50667cb80)
      #13 pc 000000000001a064  /system/lib64/libutils.so (android::Looper::pollInner(int)+916) (BuildId: f7e62c203d9645802caa9325d785d7c9)
      #14 pc 0000000000019c68  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+112) (BuildId: f7e62c203d9645802caa9325d785d7c9)
      #15 pc 000000000011961c  /system/lib64/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)+44) (BuildId: 26b68b6fde9c3ac92d6f7496ad4ebecd)
      #16 pc 000000000024e13c  /system/framework/arm64/boot-framework.oat (art_jni_trampoline+140) (BuildId: 2116da049f5f7fa6f22d5d68249524d136c9e1dc)
      #17 pc 0000000002009b14  /memfd:jit-cache (deleted) (offset 0x2000000) (android.os.MessageQueue.next+180)
      #18 pc 00000000020bb534  /memfd:jit-cache (deleted) (offset 0x2000000) (android.os.Looper.loop+484)
      #19 pc 000000000013587c  /apex/com.android.art/lib64/libart.so (art_quick_osr_stub+60) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #20 pc 000000000034b308  /apex/com.android.art/lib64/libart.so (art::jit::Jit::MaybeDoOnStackReplacement(art::Thread*, art::ArtMethod*, unsigned int, int, art::JValue*)+344) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #21 pc 00000000006a03e0  /apex/com.android.art/lib64/libart.so (MterpMaybeDoOnStackReplacement+208) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #22 pc 0000000000134350  /apex/com.android.art/lib64/libart.so (MterpHelpers+240) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #23 pc 000000000044d396  /system/framework/framework.jar (offset 0x9c8000) (android.os.Looper.loop+1082)
      #24 pc 0000000000313550  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.6193178744241938144)+264) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #25 pc 000000000031b8c0  /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+200) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #26 pc 000000000031cc1c  /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, true>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+1772) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #27 pc 000000000017a658  /apex/com.android.art/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<true, false>(art::interpreter::SwitchImplContext*)+58656) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #28 pc 00000000001417d8  /apex/com.android.art/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #29 pc 00000000001cb5b8  /system/framework/framework.jar (android.app.ActivityThread.main)
      #30 pc 0000000000313658  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.6193178744241938144)+528) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #31 pc 0000000000680168  /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+776) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #32 pc 000000000013eff8  /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #33 pc 00000000001357e8  /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #34 pc 00000000001ab804  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+228) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #35 pc 0000000000568924  /apex/com.android.art/lib64/libart.so (art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+1364) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #36 pc 00000000004e7030  /apex/com.android.art/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+48) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #37 pc 000000000008a6f4  /apex/com.android.art/javalib/arm64/boot.oat (art_jni_trampoline+180) (BuildId: 0cae2497df0f16857b4e365e8e8b783928301a0a)
      #38 pc 0000000000135564  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #39 pc 00000000001ab7e8  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #40 pc 00000000003260c0  /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+376) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #41 pc 000000000031c2a8  /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+912) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #42 pc 00000000006919e0  /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+848) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #43 pc 000000000012f814  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #44 pc 0000000000233c2a  /system/framework/framework.jar (offset 0x1bf0000) (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+22)
      #45 pc 0000000000313550  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.6193178744241938144)+264) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #46 pc 0000000000680168  /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+776) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #47 pc 000000000013eff8  /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #48 pc 0000000000af607c  /system/framework/arm64/boot-framework.oat (com.android.internal.os.ZygoteInit.main+2444) (BuildId: 2116da049f5f7fa6f22d5d68249524d136c9e1dc)
      #49 pc 00000000001357e8  /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #50 pc 00000000001ab804  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+228) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #51 pc 0000000000567340  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, std::__va_list)+448) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #52 pc 0000000000567804  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+92) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #53 pc 0000000000449804  /apex/com.android.art/lib64/libart.so (art::JNI<true>::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+652) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #54 pc 000000000009d48c  /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+124) (BuildId: 26b68b6fde9c3ac92d6f7496ad4ebecd)
      #55 pc 00000000000a5480  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+856) (BuildId: 26b68b6fde9c3ac92d6f7496ad4ebecd)
      #56 pc 00000000000035a0  /system/bin/app_process64 (main+1368) (BuildId: e97232e8f4c3641bada196dbd8803494)
      #57 pc 00000000000854b4  /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+108) (BuildId: 7c95cc0d17d92058007afa23409fd94e)

Lost connection to device.
flutter docter -v
flutter doctor -v     
[✓] Flutter (Channel stable, 3.3.2, on macOS 12.1 21C52 darwin-arm, locale ko-KR)
    • Flutter version 3.3.2 on channel stable at /Users/lafity101/flutter
    • Upstream repository https://github.com/flutter/flutter.gitFramework revision e3c29ec00c (2 weeks ago), 2022-09-14 08:46:55 -0500Engine revision a4ff2c53d8
    • Dart version 2.18.1DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    • Android SDK at /Users/lafity101/Library/Android/sdk
    • Platform android-33, build-tools 32.0.0Java binary at: /Users/lafity101/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/212.5712.43.2112.8815526/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
    • Xcode at /Applications/Xcode.app/Contents/DeveloperBuild 13F100
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.2)
    • Android Studio at /Users/lafity101/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/212.5712.43.2112.8815526/Android Studio.app/ContentsFlutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutterDart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dartJava version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] Android Studio (version 2021.2)
    • Android Studio at /Users/lafity101/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/212.5712.43.2112.8609683/Android Studio.app/ContentsFlutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutterDart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dartJava version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] IntelliJ IDEA Ultimate Edition (version 2022.2.1)
    • IntelliJ at /Users/lafity101/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutterDart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] IntelliJ IDEA Ultimate Edition (version 2022.2.1)
    • IntelliJ at /Users/lafity101/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/222.3739.54/IntelliJ IDEA.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutterDart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] IntelliJ IDEA Ultimate Edition (version 2022.2)
    • IntelliJ at /Users/lafity101/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/222.3345.118/IntelliJ IDEA.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutterDart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.71.2)
    • VS Code at /Applications/Visual Studio Code.app/ContentsFlutter extension version 3.48.0


[✓] HTTP Host AvailabilityAll required HTTP hosts are available

• No issues found!
@danagbemava-nc danagbemava-nc added the in triage Presently being triaged by the triage team label Sep 28, 2022
@danagbemava-nc
Copy link
Member

Hi @Hwan-seok, does this only reproduce on Samsung devices?

Also, does it occur in release/profile mode?

@danagbemava-nc danagbemava-nc added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Sep 28, 2022
@Hwan-seok
Copy link
Author

Hwan-seok commented Sep 28, 2022

Hi @danagbemava-nc,
Yes, so far. I do not have physical devices other than Samsung.

I edited the reproduced device list(added Samsung Galaxy Note10+ 5G)

I received this report through Play store(release mode) and I tested through debug mode and it occurs too.

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Sep 28, 2022
@barilki
Copy link

barilki commented Sep 29, 2022

Same, is there any solution?

@danagbemava-nc
Copy link
Member

Hi @barilki, are you also experiencing this on Samsung devices?

@barilki
Copy link

barilki commented Sep 29, 2022

The issue was fixed by upgrading the flutter version to channel master. @danagbemava-nc

@danagbemava-nc
Copy link
Member

@Hwan-seok, can you check if you can reproduce the issue on the master channel?

@danagbemava-nc danagbemava-nc added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Sep 29, 2022
@Akshay77380
Copy link

Not Working Man !!!!

@Hwan-seok
Copy link
Author

As written in the body, I reproduced this on the master channel(Yesterday).
I could do again if there could be a commit that potentially fixes this.

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Sep 29, 2022
@danagbemava-nc
Copy link
Member

Hi @Hwan-seok, the master channel is updated daily, so maybe there's a new commit that could have fixed it.
Kindly try again and let me know. If it still reproduces, kindly provide the version of master that you used.

Thank you

@danagbemava-nc danagbemava-nc added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Sep 29, 2022
@Hwan-seok
Copy link
Author

@danagbemava-nc Sorry for the late response.
I tested just now and unfortunately, it reproduces on the master channel(3.5.0-2.0.pre.17).

I feel like It is occurring more when repeatedly back and forth more than one webview.

Here is the crash log.
I/ty_app.sub.zan(18598): NativeAlloc concurrent copying GC freed 986(64KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 6745KB/13MB, paused 146us total 103.095ms
11
E/GPUAUX  (18598): [AUX]GuiExtAuxCheckAuxPath:630: Null anb
I/ty_app.sub.zan(18598): NativeAlloc concurrent copying GC freed 728(61KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 6745KB/13MB, paused 141us total 100.030ms
I/ty_app.sub.zan(18598): NativeAlloc concurrent copying GC freed 685(46KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 6745KB/13MB, paused 189us total 105.268ms
I/ty_app.sub.zan(18598): NativeAlloc concurrent copying GC freed 803(47KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 6762KB/13MB, paused 185us total 107.259ms
I/ty_app.sub.zan(18598): NativeAlloc concurrent copying GC freed 827(64KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 6746KB/13MB, paused 171us total 104.020ms
I/ty_app.sub.zan(18598): NativeAlloc concurrent copying GC freed 869(62KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 6747KB/13MB, paused 165us total 101.023ms
I/ty_app.sub.zan(18598): NativeAlloc concurrent copying GC freed 817(64KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 6745KB/13MB, paused 127us total 100.008ms
I/flutter (18598): 2022-10-06 17:16:05.909376 ℹ️ 🔌 Needs to reconnect : false 
I/ty_app.sub.zan(18598): NativeAlloc concurrent copying GC freed 689(46KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 6745KB/13MB, paused 286us total 101.003ms
I/ty_app.sub.zan(18598): NativeAlloc concurrent copying GC freed 850(61KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 6747KB/13MB, paused 113us total 103.742ms
I/ty_app.sub.zan(18598): NativeAlloc concurrent copying GC freed 990(63KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 6748KB/13MB, paused 226us total 100.438ms
I/ty_app.sub.zan(18598): NativeAlloc concurrent copying GC freed 819(48KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 6760KB/13MB, paused 148us total 100.035ms
I/ty_app.sub.zan(18598): NativeAlloc concurrent copying GC freed 887(63KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 6745KB/13MB, paused 370us total 105.428ms
I/ViewRootImpl@3765324[MainActivity](18598): ViewPostIme pointer 0
I/ViewRootImpl@3765324[MainActivity](18598): ViewPostIme pointer 1
[GETX] CLOSE TO ROUTE /GeneralWebviewPage
I/ty_app.sub.zan(18598): NativeAlloc concurrent copying GC freed 2256(209KB) AllocSpace objects, 2(40KB) LOS objects, 49% free, 6773KB/13MB, paused 361us total 101.644ms
W/cr_AwContents(18598): WebView.destroy() called while WebView is still attached to window.
E/flutter (18598): [ERROR:flutter/fml/platform/android/jni_util.cc(204)] java.lang.IllegalStateException: Platform view hasn't been initialized from the platform view channel.
E/flutter (18598): 	at io.flutter.plugin.platform.PlatformViewsController.initializePlatformViewIfNeeded(PlatformViewsController.java:1033)
E/flutter (18598): 	at io.flutter.plugin.platform.PlatformViewsController.onDisplayPlatformView(PlatformViewsController.java:1103)
E/flutter (18598): 	at io.flutter.embedding.engine.FlutterJNI.onDisplayPlatformView(FlutterJNI.java:1380)
E/flutter (18598): 	at android.os.MessageQueue.nativePollOnce(Native Method)
E/flutter (18598): 	at android.os.MessageQueue.next(MessageQueue.java:335)
E/flutter (18598): 	at android.os.Looper.loop(Looper.java:206)
E/flutter (18598): 	at android.app.ActivityThread.main(ActivityThread.java:8633)
E/flutter (18598): 	at java.lang.reflect.Method.invoke(Native Method)
E/flutter (18598): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
E/flutter (18598): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
E/flutter (18598): 
F/flutter (18598): [FATAL:flutter/shell/platform/android/platform_view_android_jni_impl.cc(1477)] Check failed: fml::jni::CheckException(env). 
F/libc    (18598): Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 18598 (ty_app.sub.zani), pid 18598 (ty_app.sub.zani)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/a32ks/a32:11/RP1A.200720.012/A325NKSU1AUJ3:user/release-keys'
Revision: '4'
ABI: 'arm64'
Timestamp: 2022-10-06 17:16:13+0900
pid: 18598, tid: 18598, name: ty_app.sub.zani  >>> live.lafity.lafity_app.sub.zani <<<
uid: 10737
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: '[FATAL:flutter/shell/platform/android/platform_view_android_jni_impl.cc(1477)] Check failed: fml::jni::CheckException(env). 
'
    x0  0000000000000000  x1  00000000000048a6  x2  0000000000000006  x3  0000007ff5fac220
    x4  0000006ff3e3e000  x5  0000006ff3e3e000  x6  0000006ff3e3e000  x7  00000000007c516a
    x8  00000000000000f0  x9  0000006ff0ef6758  x10 ffffff80fffffbdf  x11 0000000000000001
    x12 0000000062b6b938  x13 000000000000007e  x14 0000000000000000  x15 00003664944ed2d9
    x16 0000006ff0fc8948  x17 0000006ff0fa7860  x18 0000006ebcc31b99  x19 00000000000000ac
    x20 00000000000048a6  x21 00000000000000b2  x22 00000000000048a6  x23 00000000ffffffff
    x24 b400006ff27ce500  x25 0000000000000000  x26 0000000000000020  x27 0000000000000081
    x28 0000007ff5fac538  x29 0000007ff5fac2a0
    lr  0000006ff0f5a6dc  sp  0000007ff5fac200  pc  0000006ff0f5a70c  pst 0000000000000000
backtrace:
      #00 pc 000000000008a70c  /apex/com.android.runtime/lib64/bionic/libc.so (abort+180) (BuildId: 7c95cc0d17d92058007afa23409fd94e)
      #01 pc 00000000015dec4c  /data/app/~~NM3QSoWuKkpW0vUh0jBvFQ==/live.lafity.lafity_app.sub.zani-mkmHkQ9lCDY8DHQA8UO7Sg==/base.apk!libflutter.so (offset 0x14d5d000) (BuildId: 531e41720047bfc563709196b396ec2ef3069a6b)
      #02 pc 00000000016055c0  /data/app/~~NM3QSoWuKkpW0vUh0jBvFQ==/live.lafity.lafity_app.sub.zani-mkmHkQ9lCDY8DHQA8UO7Sg==/base.apk!libflutter.so (offset 0x14d5d000) (BuildId: 531e41720047bfc563709196b396ec2ef3069a6b)
      #03 pc 00000000015eb8f8  /data/app/~~NM3QSoWuKkpW0vUh0jBvFQ==/live.lafity.lafity_app.sub.zani-mkmHkQ9lCDY8DHQA8UO7Sg==/base.apk!libflutter.so (offset 0x14d5d000) (BuildId: 531e41720047bfc563709196b396ec2ef3069a6b)
      #04 pc 0000000001d49c70  /data/app/~~NM3QSoWuKkpW0vUh0jBvFQ==/live.lafity.lafity_app.sub.zani-mkmHkQ9lCDY8DHQA8UO7Sg==/base.apk!libflutter.so (offset 0x14d5d000) (BuildId: 531e41720047bfc563709196b396ec2ef3069a6b)
      #05 pc 0000000001923190  /data/app/~~NM3QSoWuKkpW0vUh0jBvFQ==/live.lafity.lafity_app.sub.zani-mkmHkQ9lCDY8DHQA8UO7Sg==/base.apk!libflutter.so (offset 0x14d5d000) (BuildId: 531e41720047bfc563709196b396ec2ef3069a6b)
      #06 pc 00000000019228ac  /data/app/~~NM3QSoWuKkpW0vUh0jBvFQ==/live.lafity.lafity_app.sub.zani-mkmHkQ9lCDY8DHQA8UO7Sg==/base.apk!libflutter.so (offset 0x14d5d000) (BuildId: 531e41720047bfc563709196b396ec2ef3069a6b)
      #07 pc 0000000001923680  /data/app/~~NM3QSoWuKkpW0vUh0jBvFQ==/live.lafity.lafity_app.sub.zani-mkmHkQ9lCDY8DHQA8UO7Sg==/base.apk!libflutter.so (offset 0x14d5d000) (BuildId: 531e41720047bfc563709196b396ec2ef3069a6b)
      #08 pc 000000000192247c  /data/app/~~NM3QSoWuKkpW0vUh0jBvFQ==/live.lafity.lafity_app.sub.zani-mkmHkQ9lCDY8DHQA8UO7Sg==/base.apk!libflutter.so (offset 0x14d5d000) (BuildId: 531e41720047bfc563709196b396ec2ef3069a6b)
      #09 pc 00000000019221e8  /data/app/~~NM3QSoWuKkpW0vUh0jBvFQ==/live.lafity.lafity_app.sub.zani-mkmHkQ9lCDY8DHQA8UO7Sg==/base.apk!libflutter.so (offset 0x14d5d000) (BuildId: 531e41720047bfc563709196b396ec2ef3069a6b)
      #10 pc 0000000001923990  /data/app/~~NM3QSoWuKkpW0vUh0jBvFQ==/live.lafity.lafity_app.sub.zani-mkmHkQ9lCDY8DHQA8UO7Sg==/base.apk!libflutter.so (offset 0x14d5d000) (BuildId: 531e41720047bfc563709196b396ec2ef3069a6b)
      #11 pc 0000000001606178  /data/app/~~NM3QSoWuKkpW0vUh0jBvFQ==/live.lafity.lafity_app.sub.zani-mkmHkQ9lCDY8DHQA8UO7Sg==/base.apk!libflutter.so (offset 0x14d5d000) (BuildId: 531e41720047bfc563709196b396ec2ef3069a6b)
      #12 pc 000000000160b6a4  /data/app/~~NM3QSoWuKkpW0vUh0jBvFQ==/live.lafity.lafity_app.sub.zani-mkmHkQ9lCDY8DHQA8UO7Sg==/base.apk!libflutter.so (offset 0x14d5d000) (BuildId: 531e41720047bfc563709196b396ec2ef3069a6b)
      #13 pc 000000000001a064  /system/lib64/libutils.so (android::Looper::pollInner(int)+916) (BuildId: f7e62c203d9645802caa9325d785d7c9)
      #14 pc 0000000000019c68  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+112) (BuildId: f7e62c203d9645802caa9325d785d7c9)
      #15 pc 000000000011961c  /system/lib64/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)+44) (BuildId: 26b68b6fde9c3ac92d6f7496ad4ebecd)
      #16 pc 000000000024e13c  /system/framework/arm64/boot-framework.oat (art_jni_trampoline+140) (BuildId: 2116da049f5f7fa6f22d5d68249524d136c9e1dc)
      #17 pc 0000000002017684  /memfd:jit-cache (deleted) (offset 0x2000000) (android.os.MessageQueue.next+180)
      #18 pc 000000000202cf84  /memfd:jit-cache (deleted) (offset 0x2000000) (android.os.Looper.loop+484)
      #19 pc 000000000013587c  /apex/com.android.art/lib64/libart.so (art_quick_osr_stub+60) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #20 pc 000000000034b308  /apex/com.android.art/lib64/libart.so (art::jit::Jit::MaybeDoOnStackReplacement(art::Thread*, art::ArtMethod*, unsigned int, int, art::JValue*)+344) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #21 pc 00000000006a03e0  /apex/com.android.art/lib64/libart.so (MterpMaybeDoOnStackReplacement+208) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #22 pc 0000000000134350  /apex/com.android.art/lib64/libart.so (MterpHelpers+240) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #23 pc 000000000044d396  /system/framework/framework.jar (offset 0x9c8000) (android.os.Looper.loop+1082)
      #24 pc 0000000000313550  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.6193178744241938144)+264) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #25 pc 000000000031b8c0  /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+200) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #26 pc 000000000031cc1c  /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, true>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+1772) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #27 pc 000000000017a658  /apex/com.android.art/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<true, false>(art::interpreter::SwitchImplContext*)+58656) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #28 pc 00000000001417d8  /apex/com.android.art/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #29 pc 00000000001cb5b8  /system/framework/framework.jar (android.app.ActivityThread.main)
      #30 pc 0000000000313658  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.6193178744241938144)+528) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #31 pc 0000000000680168  /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+776) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #32 pc 000000000013eff8  /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #33 pc 00000000001357e8  /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #34 pc 00000000001ab804  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+228) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #35 pc 0000000000568924  /apex/com.android.art/lib64/libart.so (art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+1364) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #36 pc 00000000004e7030  /apex/com.android.art/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+48) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #37 pc 000000000008a6f4  /apex/com.android.art/javalib/arm64/boot.oat (art_jni_trampoline+180) (BuildId: 0cae2497df0f16857b4e365e8e8b783928301a0a)
      #38 pc 0000000000135564  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #39 pc 00000000001ab7e8  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #40 pc 00000000003260c0  /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+376) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #41 pc 000000000031c2a8  /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+912) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #42 pc 00000000006919e0  /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+848) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #43 pc 000000000012f814  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #44 pc 0000000000233c2a  /system/framework/framework.jar (offset 0x1bf0000) (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+22)
      #45 pc 0000000000313550  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.6193178744241938144)+264) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #46 pc 0000000000680168  /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+776) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #47 pc 000000000013eff8  /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #48 pc 0000000000af607c  /system/framework/arm64/boot-framework.oat (com.android.internal.os.ZygoteInit.main+2444) (BuildId: 2116da049f5f7fa6f22d5d68249524d136c9e1dc)
      #49 pc 00000000001357e8  /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #50 pc 00000000001ab804  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+228) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #51 pc 0000000000567340  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, std::__va_list)+448) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #52 pc 0000000000567804  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+92) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #53 pc 0000000000449804  /apex/com.android.art/lib64/libart.so (art::JNI<true>::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+652) (BuildId: bd4bbcfee9112dc043c9dc3ab6bd8478)
      #54 pc 000000000009d48c  /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+124) (BuildId: 26b68b6fde9c3ac92d6f7496ad4ebecd)
      #55 pc 00000000000a5480  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+856) (BuildId: 26b68b6fde9c3ac92d6f7496ad4ebecd)
      #56 pc 00000000000035a0  /system/bin/app_process64 (main+1368) (BuildId: e97232e8f4c3641bada196dbd8803494)
      #57 pc 00000000000854b4  /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+108) (BuildId: 7c95cc0d17d92058007afa23409fd94e)
Lost connection to device.

Exited.

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Oct 6, 2022
@danagbemava-nc
Copy link
Member

Thanks for the info.
I'll be labeling this for further investigation as I cannot reproduce this issue locally.

@danagbemava-nc danagbemava-nc added c: crash Stack traces logged to the console platform-android Android applications specifically c: fatal crash Crashes that terminate the process engine flutter/engine repository. See also e: labels. plugin a: platform-views Embedding Android/iOS views in Flutter apps p: webview The WebView plugin and removed in triage Presently being triaged by the triage team labels Oct 6, 2022
@stuartmorgan stuartmorgan added the P1 High-priority issues at the top of the work list label Oct 6, 2022
@stuartmorgan
Copy link
Contributor

Sounds like we have a race where we are trying to display a platform view that has been destroyed. We'll need to either ensure the race can't happen, or leave a tombstone for the ID and ignore messages related to the zombie ID.

@Doflatango

This comment was marked as off-topic.

@sami-samcla
Copy link

I did more or less the same as @Manuito83 but i'm feel dirty 😄 I think it's one of worst workaround I have ever done, but it works. When user press back button, I change google maps widget by a Container widget with a CircularProgressIndicator inside. Something like this:

_isClosing ? MapPlaceHolderProgressIndicator(showProgressIndicator: false) : _mapWidget()!

Then I wait for one second and I pop the screen:

void delayedPop(context) { Future.delayed(Duration(seconds: 1), () => Navigator.of(context).pop()); }

I hope this bug gets solved soon.

Gracias @Manuito83!!!

@sami-samcla

This comment was marked as off-topic.

@RamzanTingku

This comment was marked as duplicate.

@olofumark

This comment was marked as off-topic.

@gmackall gmackall added P2 Important issues not at the top of the work list and removed P1 High-priority issues at the top of the work list labels Jun 15, 2023
@gmackall
Copy link
Member

Note from android triage: Dropping the priority from p3 to p4 as this is currently unassigned.

@flutter-triage-bot flutter-triage-bot bot added the package flutter/packages repository. See also p: labels. label Jul 5, 2023
@Hixie Hixie removed the plugin label Jul 6, 2023
@flutter-triage-bot flutter-triage-bot bot added multiteam-retriage-candidate team-android Owned by Android platform team triaged-android Triaged by Android platform team labels Jul 8, 2023
@asiteandroid
Copy link

I did more or less the same as @Manuito83 but i'm feel dirty 😄 I think it's one of worst workaround I have ever done, but it works. When user press back button, I change google maps widget by a Container widget with a CircularProgressIndicator inside. Something like this:

_isClosing ? MapPlaceHolderProgressIndicator(showProgressIndicator: false) : _mapWidget()!

Then I wait for one second and I pop the screen:

void delayedPop(context) { Future.delayed(Duration(seconds: 1), () => Navigator.of(context).pop()); }

I hope this bug gets solved soon.

Gracias @Manuito83!!!

App is Still crashing in Xiaomi Tablet

Crash Details :
E/flutter (25229): at io.flutter.plugin.platform.q.Q(Unknown Source:96)
E/flutter (25229): at io.flutter.plugin.platform.q.Z(Unknown Source:3)
E/flutter (25229): at io.flutter.embedding.engine.FlutterJNI.onDisplayPlatformView(Unknown Source:19)
E/flutter (25229): at android.os.MessageQueue.nativePollOnce(Native Method)
E/flutter (25229): at android.os.MessageQueue.next(MessageQueue.java:340)
E/flutter (25229): at android.os.Looper.loopOnce(Looper.java:169)
E/flutter (25229): at android.os.Looper.loop(Looper.java:300)
E/flutter (25229): at android.app.ActivityThread.main(ActivityThread.java:8250)
E/flutter (25229): at java.lang.reflect.Method.invoke(Native Method)
E/flutter (25229): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)
E/flutter (25229): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)
E/flutter (25229):
F/flutter (25229): [FATAL:flutter/shell/platform/android/platform_view_android_jni_impl.cc(1486)] Check failed: fml::jni::CheckException(env).
F/crashpad(25798): -----BEGIN CRASHPAD MINIDUMP-----
F/crashpad(25798): -----BEGIN CRASHPAD MINIDUMP-----```

@Nolan1357
Copy link

CustomWidget.showTipDialog(
context: context,
title: "提示",
visible: false,
onTap: () => Routes.finishPage(),
content: Container(
height: 300,
child: Expanded(
child: WebView(
backgroundColor: Colors.transparent,
initialUrl: url,
gestureRecognizers: {}..add(Factory(() => LongPressGestureRecognizer())),
//JS执行模式 是否允许JS执行
javascriptMode: JavascriptMode.unrestricted,
onWebViewCreated: (WebViewController controller) {
//页面加载的时候可以获取到controller可以用来reload等操作
_webViewController = controller;
},
//拦截页面url
navigationDelegate: (NavigationRequest request) {
// currentUrl = request.url;
if (request.url.startsWith('alipays:') || request.url.startsWith('weixin:')) {
return NavigationDecision.prevent;
}
return NavigationDecision.navigate;
},
))))

it's work

@Nolan1357
Copy link

version 3.0.4

@minseok-jeong-gn
Copy link

minseok-jeong-gn commented Nov 22, 2023

Same happening to me.

I'm not using webview but this siutaion is same as mine.

In my investigation in Flutter issue, this is General Platform View issue.

I hope to fixed this issue after 3.16.0 flutter upgrade... but still happening.

Siutaion:

  1. A widget is top of the stack
  • A widget have platform view as child widget
  1. push B widget (now B widget is top of stack)
  • B have platform view as child widget also. (like A widget)
  1. pop B widget
  • Then A widget is top of stack

During 3 (pop the widget) app crash is occuring.

This situation is not happening on iOS afeter flutter 3.13.x upgrade.

But in Android, randomly app crash happening...

Target device is Samsung Galaxy Note 10+.

Flutter Doctor Summary
[✓] Flutter (Channel stable, 3.16.0, on macOS 13.2.1 22D68 darwin-arm64, locale ko-KR)
    • Flutter version 3.16.0 on channel stable at /Users/mj/dev/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision db7ef5bf9f (6 days ago), 2023-11-15 11:25:44 -0800
    • Engine revision 74d16627b9
    • Dart version 3.2.0
    • DevTools version 2.28.2
Crash log below
I/SurfaceView@f6f9c08(22770): onWindowVisibilityChanged(8) false com.naver.maps.map.MapView$3{f6f9c08 V.E...... ........ 0,0-1299,1120} of ViewRootImpl@d55b8f1[MainActivity]
I/SurfaceView@f6f9c08(22770): pST: mTmpTransaction.apply, mTmpTransaction = android.view.SurfaceControl$Transaction@98fe5c6
I/SurfaceView@f6f9c08(22770): surfaceDestroyed callback.size 1 #2 com.naver.maps.map.MapView$3{f6f9c08 V.E...... ........ 0,0-1299,1120}
I/SurfaceView@f6f9c08(22770): updateSurface: mVisible = false mSurface.isValid() = true
I/SurfaceView@f6f9c08(22770): tryReleaseSurfaces: set mRtReleaseSurfaces = true
I/SurfaceView@f6f9c08(22770): onDetachedFromWindow: tryReleaseSurfaces()
I/SurfaceView@f6f9c08(22770): tryReleaseSurfaces: set mRtReleaseSurfaces = true
E/flutter (22770): [ERROR:flutter/fml/platform/android/jni_util.cc(206)] java.lang.IllegalStateException: Platform view hasn't been initialized from the platform view channel.
E/flutter (22770): 	at io.flutter.plugin.platform.PlatformViewsController.initializePlatformViewIfNeeded(PlatformViewsController.java:1082)
E/flutter (22770): 	at io.flutter.plugin.platform.PlatformViewsController.onDisplayPlatformView(PlatformViewsController.java:1152)
E/flutter (22770): 	at io.flutter.embedding.engine.FlutterJNI.onDisplayPlatformView(FlutterJNI.java:1461)
E/flutter (22770): 	at android.os.MessageQueue.nativePollOnce(Native Method)
E/flutter (22770): 	at android.os.MessageQueue.next(MessageQueue.java:335)
E/flutter (22770): 	at android.os.Looper.loopOnce(Looper.java:186)
E/flutter (22770): 	at android.os.Looper.loop(Looper.java:313)
E/flutter (22770): 	at android.app.ActivityThread.main(ActivityThread.java:8751)
E/flutter (22770): 	at java.lang.reflect.Method.invoke(Native Method)
E/flutter (22770): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
E/flutter (22770): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
E/flutter (22770):
F/flutter (22770): [FATAL:flutter/shell/platform/android/platform_view_android_jni_impl.cc(1694)] Check failed: fml::jni::CheckException(env).
F/libc    (22770): Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 22770 (sisnest.hhhhhhh), pid 22770 (sisnest.hhhhhhh)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/d2xks/d2x:12/SP1A.210812.016/N976NKSU2HWH5:user/release-keys'
Revision: '24'
ABI: 'arm64'
Processor: '5'
Timestamp: 2023-11-22 14:58:07.253015522+0900
Process uptime: 121s
Cmdline: com.genesisnest.hhhhhhh
pid: 22770, tid: 22770, name: sisnest.hhhhhhh  >>> com.genesisnest.hhhhhhh <<<
uid: 10838
signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
Abort message: '[FATAL:flutter/shell/platform/android/platform_view_android_jni_impl.cc(1694)] Check failed: fml::jni::CheckException(env).
'
    x0  0000000000000000  x1  00000000000058f2  x2  0000000000000006  x3  0000007fd11c5f30
    x4  0000007c675f1000  x5  0000007c675f1000  x6  0000007c675f1000  x7  0000000008cae4d6
    x8  00000000000000f0  x9  0000007c55982290  x10 ffffff00fffffbdf  x11 0000000000000001
    x12 0000fffffffff3ff  x13 000000000000007e  x14 0000000000000000  x15 000037022e757e66
    x16 0000007c55a23058  x17 0000007c559ffe00  x18 0000007c66e3e000  x19 00000000000000ac
    x20 00000000000058f2  x21 00000000000000b2  x22 00000000000058f2  x23 00000000ffffffff
    x24 00000000fffffada  x25 0000000000000460  x26 000000000000000e  x27 0000007fd11c6248
    x28 0000000000000095  x29 0000007fd11c5fb0
    lr  0000007c559b1394  sp  0000007fd11c5f10  pc  0000007c559b13c4  pst 0000000000000000
backtrace:
      #00 pc 00000000000513c4  /apex/com.android.runtime/lib64/bionic/libc.so (abort+180) (BuildId: 88b933fc529619f5e58bc6d5510017ee)
      #01 pc 0000000001b98050  /data/app/~~RpZZEq0BHlab0LKrjVV-Ig==/com.genesisnest.hhhhhhh-NBVtPW9rC-fqKdH7dzLWrA==/lib/arm64/libflutter.so (BuildId: 3e777a7c19ec6d7aafc795b6e1e47a8ace70a2c6)
      #02 pc 0000000001bc1f70  /data/app/~~RpZZEq0BHlab0LKrjVV-Ig==/com.genesisnest.hhhhhhh-NBVtPW9rC-fqKdH7dzLWrA==/lib/arm64/libflutter.so (BuildId: 3e777a7c19ec6d7aafc795b6e1e47a8ace70a2c6)
      #03 pc 0000000001ba7004  /data/app/~~RpZZEq0BHlab0LKrjVV-Ig==/com.genesisnest.hhhhhhh-NBVtPW9rC-fqKdH7dzLWrA==/lib/arm64/libflutter.so (BuildId: 3e777a7c19ec6d7aafc795b6e1e47a8ace70a2c6)
      #04 pc 00000000023378ec  /data/app/~~RpZZEq0BHlab0LKrjVV-Ig==/com.genesisnest.hhhhhhh-NBVtPW9rC-fqKdH7dzLWrA==/lib/arm64/libflutter.so (BuildId: 3e777a7c19ec6d7aafc795b6e1e47a8ace70a2c6)
      #05 pc 0000000001fdcdfc  /data/app/~~RpZZEq0BHlab0LKrjVV-Ig==/com.genesisnest.hhhhhhh-NBVtPW9rC-fqKdH7dzLWrA==/lib/arm64/libflutter.so (BuildId: 3e777a7c19ec6d7aafc795b6e1e47a8ace70a2c6)
      #06 pc 0000000001fdbc08  /data/app/~~RpZZEq0BHlab0LKrjVV-Ig==/com.genesisnest.hhhhhhh-NBVtPW9rC-fqKdH7dzLWrA==/lib/arm64/libflutter.so (BuildId: 3e777a7c19ec6d7aafc795b6e1e47a8ace70a2c6)
      #07 pc 0000000001fdc358  /data/app/~~RpZZEq0BHlab0LKrjVV-Ig==/com.genesisnest.hhhhhhh-NBVtPW9rC-fqKdH7dzLWrA==/lib/arm64/libflutter.so (BuildId: 3e777a7c19ec6d7aafc795b6e1e47a8ace70a2c6)
      #08 pc 0000000001fdd538  /data/app/~~RpZZEq0BHlab0LKrjVV-Ig==/com.genesisnest.hhhhhhh-NBVtPW9rC-fqKdH7dzLWrA==/lib/arm64/libflutter.so (BuildId: 3e777a7c19ec6d7aafc795b6e1e47a8ace70a2c6)
      #09 pc 0000000001fdbf84  /data/app/~~RpZZEq0BHlab0LKrjVV-Ig==/com.genesisnest.hhhhhhh-NBVtPW9rC-fqKdH7dzLWrA==/lib/arm64/libflutter.so (BuildId: 3e777a7c19ec6d7aafc795b6e1e47a8ace70a2c6)
      #10 pc 0000000001fdbd44  /data/app/~~RpZZEq0BHlab0LKrjVV-Ig==/com.genesisnest.hhhhhhh-NBVtPW9rC-fqKdH7dzLWrA==/lib/arm64/libflutter.so (BuildId: 3e777a7c19ec6d7aafc795b6e1e47a8ace70a2c6)
      #11 pc 0000000001bc2b28  /data/app/~~RpZZEq0BHlab0LKrjVV-Ig==/com.genesisnest.hhhhhhh-NBVtPW9rC-fqKdH7dzLWrA==/lib/arm64/libflutter.so (BuildId: 3e777a7c19ec6d7aafc795b6e1e47a8ace70a2c6)
      #12 pc 0000000001bc8600  /data/app/~~RpZZEq0BHlab0LKrjVV-Ig==/com.genesisnest.hhhhhhh-NBVtPW9rC-fqKdH7dzLWrA==/lib/arm64/libflutter.so (BuildId: 3e777a7c19ec6d7aafc795b6e1e47a8ace70a2c6)
      #13 pc 0000000000016bb0  /system/lib64/libutils.so (android::Looper::pollInner(int)+912) (BuildId: 176a88c64d70f517a4c1c58b40932d90)
      #14 pc 00000000000167b8  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+112) (BuildId: 176a88c64d70f517a4c1c58b40932d90)
      #15 pc 0000000000153f84  /system/lib64/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)+44) (BuildId: 4d247a29d7f86eb679b2a60064fc3f99)
      #16 pc 000000000023d57c  /system/framework/arm64/boot-framework.oat (art_jni_trampoline+108) (BuildId: 4b91d967447509b203d12e2f47755fc3cf80d81f)
      #17 pc 000000000200a9bc  /memfd:jit-cache (deleted) (android.os.MessageQueue.next+204)
      #18 pc 000000000200e8c8  /memfd:jit-cache (deleted) (android.os.Looper.loopOnce+168)
      #19 pc 00000000021370d0  /memfd:jit-cache (deleted) (android.os.Looper.loop+464)
      #20 pc 0000000000218c7c  /apex/com.android.art/lib64/libart.so (art_quick_osr_stub+60) (BuildId: 1724d2edb620afb8c3e8c5ea6c61ac19)
      #21 pc 000000000040bee0  /apex/com.android.art/lib64/libart.so (art::jit::Jit::MaybeDoOnStackReplacement(art::Thread*, art::ArtMethod*, unsigned int, int, art::JValue*)+344) (BuildId: 1724d2edb620afb8c3e8c5ea6c61ac19)
      #22 pc 0000000000769d88  /apex/com.android.art/lib64/libart.so (MterpMaybeDoOnStackReplacement+208) (BuildId: 1724d2edb620afb8c3e8c5ea6c61ac19)
      #23 pc 0000000000208350  /apex/com.android.art/lib64/libart.so (MterpHelpers+240) (BuildId: 1724d2edb620afb8c3e8c5ea6c61ac19)
      #24 pc 00000000004cb318  /system/framework/framework.jar (android.os.Looper.loop+160)
      #25 pc 0000000000763330  /apex/com.android.art/lib64/libart.so (MterpInvokeStatic+2352) (BuildId: 1724d2edb620afb8c3e8c5ea6c61ac19)
      #26 pc 0000000000203994  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 1724d2edb620afb8c3e8c5ea6c61ac19)
      #27 pc 00000000001bd3e6  /system/framework/framework.jar (android.app.ActivityThread.main+214)
      #28 pc 00000000003d98e0  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool)+304) (BuildId: 1724d2edb620afb8c3e8c5ea6c61ac19)
      #29 pc 000000000074657c  /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+780) (BuildId: 1724d2edb620afb8c3e8c5ea6c61ac19)
      #30 pc 0000000000222378  /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 1724d2edb620afb8c3e8c5ea6c61ac19)
      #31 pc 0000000000218be8  /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 1724d2edb620afb8c3e8c5ea6c61ac19)
      #32 pc 000000000028520c  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+212) (BuildId: 1724d2edb620afb8c3e8c5ea6c61ac19)
      #33 pc 0000000000627760  /apex/com.android.art/lib64/libart.so (_jobject* art::InvokeMethod<(art::PointerSize)8>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+1384) (BuildId: 1724d2edb620afb8c3e8c5ea6c61ac19)
      #34 pc 0000000000597a38  /apex/com.android.art/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+48) (BuildId: 1724d2edb620afb8c3e8c5ea6c61ac19)
      #35 pc 00000000000b2f74  /apex/com.android.art/javalib/arm64/boot.oat (art_jni_trampoline+132) (BuildId: f35585e93c1ff4c865b6334fa014e97244124284)
      #36 pc 0000000000218964  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 1724d2edb620afb8c3e8c5ea6c61ac19)
      #37 pc 00000000002851f0  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+184) (BuildId: 1724d2edb620afb8c3e8c5ea6c61ac19)
      #38 pc 00000000003e70f0  /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+400) (BuildId: 1724d2edb620afb8c3e8c5ea6c61ac19)
      #39 pc 00000000003e1cec  /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+804) (BuildId: 1724d2edb620afb8c3e8c5ea6c61ac19)
      #40 pc 0000000000757d64  /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+1164) (BuildId: 1724d2edb620afb8c3e8c5ea6c61ac19)
      #41 pc 0000000000203814  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 1724d2edb620afb8c3e8c5ea6c61ac19)
      #42 pc 000000000045b04e  /system/framework/framework.jar (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+22)
      #43 pc 00000000003d98e0  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool)+304) (BuildId: 1724d2edb620afb8c3e8c5ea6c61ac19)
      #44 pc 000000000074657c  /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+780) (BuildId: 1724d2edb620afb8c3e8c5ea6c61ac19)
      #45 pc 0000000000222378  /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 1724d2edb620afb8c3e8c5ea6c61ac19)
      #46 pc 0000000000aec748  /system/framework/arm64/boot-framework.oat (com.android.internal.os.ZygoteInit.main+2376) (BuildId: 4b91d967447509b203d12e2f47755fc3cf80d81f)
      #47 pc 0000000000218be8  /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 1724d2edb620afb8c3e8c5ea6c61ac19)
      #48 pc 000000000028520c  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+212) (BuildId: 1724d2edb620afb8c3e8c5ea6c61ac19)
      #49 pc 0000000000627ec0  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, std::__va_list)+448) (BuildId: 1724d2edb620afb8c3e8c5ea6c61ac19)
      #50 pc 0000000000628394  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+92) (BuildId: 1724d2edb620afb8c3e8c5ea6c61ac19)
      #51 pc 0000000000501094  /apex/com.android.art/lib64/libart.so (art::JNI<true>::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+612) (BuildId: 1724d2edb620afb8c3e8c5ea6c61ac19)
      #52 pc 00000000000b2b28  /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+120) (BuildId: 4d247a29d7f86eb679b2a60064fc3f99)
      #53 pc 00000000000becd8  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+856) (BuildId: 4d247a29d7f86eb679b2a60064fc3f99)
      #54 pc 00000000000025b0  /system/bin/app_process64 (main+1368) (BuildId: 9a7b5029aaf92752a6307785aa874b5a)
      #55 pc 0000000000049b48  /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+96) (BuildId: 88b933fc529619f5e58bc6d5510017ee)
Lost connection to device.
Exited

@hellohuanlin
Copy link
Contributor

@minseok-jeong-gn it indeed sounds very similar to this iOS issue: https://github.com/flutter/engine/pull/41521/files#r1180675069

@minseok-jeong-gn
Copy link

@minseok-jeong-gn it indeed sounds very similar to this iOS issue: https://github.com/flutter/engine/pull/41521/files#r1180675069

Yes you are right.
But that commit is only for iOS.
Also I added some comment on tahat PR.
You can see the my comment bottom of that PR.

@mutant0113
Copy link

Hi Team,
I've recently encountered a similar crash issue on the Google Play console, which seems to have significantly escalated after migrating my project from Flutter 3.3.10 to 3.10.6.

Packages

Steps to Reproduce

This issue appears to be most prevalent on Samsung devices, including the Samsung A53X, Samsung A52XQ, Samsung A31, and Samsung A54X.

  1. Tap the button to navigate to the webview page.
  2. Tap the leading back button to return to the previous page.
  3. Repeat steps 1 and 2 approximately 10 times.
  4. At this point, a crash usually occurs.

Logs

[FATAL:flutter/shell/platform/android/platform_view_android_jni_impl.cc(1486)] Check failed: fml::jni::CheckException(env). 

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 20301 >>> package_name <<<

backtrace:
  #00  pc 0x0000000000051a3c  /apex/com.android.runtime/lib64/bionic/libc.so (abort+168)
  #01  pc 0x0000000000326f54  /data/app/package_name/split_config.arm64_v8a.apk!libflutter.so (BuildId: a46086475ee4ec71de8ddd4e5cab30189bf0e0e1)
  #02  pc 0x0000000000351f1c  /data/app/package_name/split_config.arm64_v8a.apk!libflutter.so (BuildId: a46086475ee4ec71de8ddd4e5cab30189bf0e0e1)
  #03  pc 0x0000000000340438  /data/app/package_name/split_config.arm64_v8a.apk!libflutter.so (BuildId: a46086475ee4ec71de8ddd4e5cab30189bf0e0e1)
  #04  pc 0x00000000007cdb98  /data/app/package_name/split_config.arm64_v8a.apk!libflutter.so (BuildId: a46086475ee4ec71de8ddd4e5cab30189bf0e0e1)
  #05  pc 0x00000000005ba53c  /data/app/package_name/split_config.arm64_v8a.apk!libflutter.so (BuildId: a46086475ee4ec71de8ddd4e5cab30189bf0e0e1)
  #06  pc 0x00000000005ba064  /data/app/package_name/split_config.arm64_v8a.apk!libflutter.so (BuildId: a46086475ee4ec71de8ddd4e5cab30189bf0e0e1)
  #07  pc 0x00000000005badfc  /data/app/package_name/split_config.arm64_v8a.apk!libflutter.so (BuildId: a46086475ee4ec71de8ddd4e5cab30189bf0e0e1)
  #08  pc 0x00000000005ba854  /data/app/package_name/split_config.arm64_v8a.apk!libflutter.so (BuildId: a46086475ee4ec71de8ddd4e5cab30189bf0e0e1)
  #09  pc 0x00000000005c5eb8  /data/app/package_name/split_config.arm64_v8a.apk!libflutter.so (BuildId: a46086475ee4ec71de8ddd4e5cab30189bf0e0e1)
  #10  pc 0x0000000000352b50  /data/app/package_name/split_config.arm64_v8a.apk!libflutter.so (BuildId: a46086475ee4ec71de8ddd4e5cab30189bf0e0e1)
  #11  pc 0x0000000000355fcc  /data/app/package_name/split_config.arm64_v8a.apk!libflutter.so (BuildId: a46086475ee4ec71de8ddd4e5cab30189bf0e0e1)
  #12  pc 0x0000000000018184  /system/lib64/libutils.so (android::Looper::pollInner(int)+916)
  #13  pc 0x0000000000017d84  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+116)
  #14  pc 0x00000000001589b4  /system/lib64/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)+48)
  #15  pc 0x000000000046c514  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (art_jni_trampoline+116)

Please help to fix the issue. Thanks for your help!

@Hejianghao

This comment was marked as duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: platform-views Embedding Android/iOS views in Flutter apps c: crash Stack traces logged to the console c: fatal crash Crashes that terminate the process engine flutter/engine repository. See also e: labels. p: webview The WebView plugin P2 Important issues not at the top of the work list package flutter/packages repository. See also p: labels. platform-android Android applications specifically team-android Owned by Android platform team triaged-android Triaged by Android platform team
Projects
None yet
Development

No branches or pull requests