flutter_inappwebview icon indicating copy to clipboard operation
flutter_inappwebview copied to clipboard

Android SDK 28 Crash on return from background

Open nisken46 opened this issue 2 years ago • 1 comments

Environment

Technology Version
Flutter version 3.0.2
Plugin version 5.4.3
Android version SDK28

Device information: Emulator

Description

It doesn't always crash, but it crashes often. It did not occur with Android SDK> 28.

Expected behavior:

Current behavior:

Steps to reproduce

Widget build(BuildContext context) { return Scaffold( appBar: AppBar( // Here we take the value from the MyHomePage object that was created by // the App.build method, and use it to set our appbar title. title: Text(widget.title), ), body: Container( child: InAppWebView( initialData: InAppWebViewInitialData(data: "

aaaaa

"), ), ), ); }

Images

Stacktrace/Logcat

2022-06-22 17:04:46.385 23252-23337/com.example.test I/OpenGLRenderer: Initialized EGL, version 1.4 2022-06-22 17:04:46.386 23252-23337/com.example.test D/OpenGLRenderer: Swap behavior 1 2022-06-22 17:04:46.397 23252-23337/com.example.test D/HostConnection: HostConnection::get() New Host Connection established 0x6ffb6949a160, tid 23337 2022-06-22 17:04:46.398 23252-23337/com.example.test D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_dma_v1 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_sync_buffer_data GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_3_0 2022-06-22 17:04:46.401 23252-23337/com.example.test D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0 2022-06-22 17:04:46.401 23252-23337/com.example.test D/EGL_emulation: eglCreateContext: 0x6ffb6949a480: maj 3 min 0 rcv 3 2022-06-22 17:04:46.413 23252-23337/com.example.test D/EGL_emulation: eglMakeCurrent: 0x6ffb6949a480: ver 3 0 (tinfo 0x6ffb6952c540) 2022-06-22 17:04:46.486 23252-23281/com.example.test D/EGL_emulation: eglMakeCurrent: 0x6ffb6afe78c0: ver 3 0 (tinfo 0x6ffb5b60f180) 2022-06-22 17:04:46.505 23252-23281/com.example.test D/EGL_emulation: eglMakeCurrent: 0x6ffb6afe78c0: ver 3 0 (tinfo 0x6ffb5b60f180) 2022-06-22 17:04:46.664 23252-23337/com.example.test D/EGL_emulation: eglMakeCurrent: 0x6ffb6949a480: ver 3 0 (tinfo 0x6ffb6952c540) 2022-06-22 17:04:46.666 23252-23342/com.example.test D/eglCodecCommon: setVertexArrayObject: set vao to 2 (2) 0 0 2022-06-22 17:04:46.685 23252-23342/com.example.test D/eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 0 0 2022-06-22 17:04:47.079 23252-23337/com.example.test W/google-breakpad: ### ### ### ### ### ### ### ### ### ### ### ### ### 2022-06-22 17:04:47.080 23252-23337/com.example.test W/google-breakpad: Chrome build fingerprint: 2022-06-22 17:04:47.080 23252-23337/com.example.test W/google-breakpad: 69.0.3497.100 2022-06-22 17:04:47.080 23252-23337/com.example.test W/google-breakpad: 349710067 2022-06-22 17:04:47.080 23252-23337/com.example.test W/google-breakpad: ### ### ### ### ### ### ### ### ### ### ### ### ### 2022-06-22 17:04:47.081 23252-23337/com.example.test A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x40 in tid 23337 (RenderThread), pid 23252 (om.example.test)

nisken46 avatar Jun 22 '22 08:06 nisken46

👋 @nisken46

NOTE: This comment is auto-generated.

Are you sure you have already searched for the same problem?

Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem!

If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue.

In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding android WebView [MY ERROR HERE] or ios WKWebView [MY ERROR HERE] keywords.

Following these steps can save you, me, and other people a lot of time, thanks!

github-actions[bot] avatar Jun 22 '22 08:06 github-actions[bot]

Hi @nisken46, I'm facing exactly same issues with you. have you found a fix for this issues yet?

This crash did not occur in Flutter 2. Thanks!

petra-bios avatar Sep 23 '22 15:09 petra-bios