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

Crash at HeadlessInAppWebView dispose #881

Closed
dodatw opened this issue Jun 15, 2021 · 6 comments
Closed

Crash at HeadlessInAppWebView dispose #881

dodatw opened this issue Jun 15, 2021 · 6 comments

Comments

@dodatw
Copy link

dodatw commented Jun 15, 2021

This issue happen when we upgrade inappwebview from 4.0 to 5.36.
I cannot reproduce this issue, the crash come from end user by crashlytics.

This issue happen when we call HeadlessInAppWebView.dispose().
We try to publish a version that don't call HeadlessInAppWebView.dispose(). this issue not happen
But I don`t think it is good idea.

Here is crash log

Crashed: com.apple.main-thread
0  libobjc.A.dylib                0x19b332dd0 objc_release + 16
1  flutter_inappwebview           0x105038518 $s20flutter_inappwebview20HeadlessInAppWebViewC7disposeyyF + 200
2  flutter_inappwebview           0x105037a74 $s20flutter_inappwebview20HeadlessInAppWebViewC6handle_6resultySo17FlutterMethodCallC_yypSgctF + 328
3  flutter_inappwebview           0x105038eb0 $s20flutter_inappwebview20HeadlessInAppWebViewC2id0afG0ACSS_AA07FlutterfG10ControllerCtcfcySo0I10MethodCallC_yypSgctcACcfu_yAI_yAJctcfu0_TA + 20
4  flutter_inappwebview           0x10503f9dc $sSo17FlutterMethodCallCypSgIegn_Ieggg_AByXlSgIeyBy_IeyByy_TR + 96
5  Flutter                        0x106d9ce60 (Missing)
6  Flutter                        0x1068140d8 (Missing)
7  Flutter                        0x106b10f8c (Missing)
8  Flutter                        0x106ab1d94 (Missing)
9  Flutter                        0x106ab3bf4 (Missing)
10 CoreFoundation                 0x1867e922c __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32
11 CoreFoundation                 0x1867e8e28 __CFRunLoopDoTimer + 1076
12 CoreFoundation                 0x1867e8278 __CFRunLoopDoTimers + 328
13 CoreFoundation                 0x1867e202c __CFRunLoopRun + 1944
@github-actions
Copy link

👋 @dodatw

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!

@fevzican
Copy link

I am getting this also in release mode. In the debug, there is no problem. I am also using headless.

@aamir-nazir
Copy link

@fevzican @dodatw Found any fix?

@faizanaliedu
Copy link

@aamir-nazir found any fix?

@edolubis21
Copy link

found any fix?

Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants