-
Notifications
You must be signed in to change notification settings - Fork 26.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
[webview_flutter] crashes while closing the webview: "Platform view hasn't been initialized from the platform view channel" #112542
Comments
Hi @Hwan-seok, does this only reproduce on Samsung devices? Also, does it occur in release/profile mode? |
Hi @danagbemava-nc, 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. |
Same, is there any solution? |
Hi @barilki, are you also experiencing this on Samsung devices? |
The issue was fixed by upgrading the flutter version to channel master. @danagbemava-nc |
@Hwan-seok, can you check if you can reproduce the issue on the master channel? |
Not Working Man !!!! |
As written in the body, I reproduced this on the master channel(Yesterday). |
Hi @Hwan-seok, the master channel is updated daily, so maybe there's a new commit that could have fixed it. Thank you |
@danagbemava-nc Sorry for the late response. 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.
|
Thanks for the info. |
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. |
This comment was marked as off-topic.
This comment was marked as off-topic.
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:
Then I wait for one second and I pop the screen:
I hope this bug gets solved soon. Gracias @Manuito83!!! |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as off-topic.
This comment was marked as off-topic.
Note from android triage: Dropping the priority from p3 to p4 as this is currently unassigned. |
App is Still crashing in Xiaomi Tablet Crash Details : |
CustomWidget.showTipDialog( it's work |
version 3.0.4 |
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:
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 belowI/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
|
@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. |
Hi Team, Packages
Steps to ReproduceThis issue appears to be most prevalent on Samsung devices, including the Samsung A53X, Samsung A52XQ, Samsung A31, and Samsung A54X.
Logs
Please help to fix the issue. Thanks for your help! |
The crash occurs very randomly while closing the Webview.
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).
You can see detailed logs at the bottom.
I tested on stable & master and both are occured.
Steps to Reproduce
flutter run
on the code sampleExpected results:
Actual results:
Code sample
Logs
flutter docter -v
The text was updated successfully, but these errors were encountered: