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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Probable deadlock detected due to WebView API being called on incorrect thread while the UI thread is blocked. #3717

Closed
benharpers opened this issue Oct 22, 2020 · 3 comments
Labels
needs reproduction needs reproducible example to illustrate the issue platform: android

Comments

@benharpers
Copy link

Bug Report

Capacitor Version

馃拪 Capacitor Doctor 馃拪

Latest Dependencies:

@capacitor/cli: 2.4.2

@capacitor/core: 2.4.2

@capacitor/android: 2.4.2

@capacitor/ios: 2.4.2

Installed Dependencies:

@capacitor/cli 1.2.1

@capacitor/ios 2.4.2

@capacitor/android 2.4.2

@capacitor/core 2.4.2

[success] Android looking great! 馃憣
Found 5 Capacitor plugins for ios:
@byteowls/capacitor-filesharer (2.0.0)
@capacitor-community/fcm (1.0.8)
@capacitor-community/native-audio (0.1.3)
capacitor-download (0.0.1)
capacitor-firebase-analytics (0.3.2)

Platform(s)

Android

Current Behavior

Crashes

Expected Behavior

Not to crash

Code Reproduction

Unknown, only on Android 10, see stack trace from Crashlytics below.

Other Technical Details


Additional Context

Might be related to this thread:

zulip/zulip-mobile#4051

Here is the output from Crashlytics, phone was a Pixel 3 XL:

Probable deadlock detected due to WebView API being called on incorrect thread while the UI thread is blocked.
wC.c (chromium-TrichromeWebViewGoogle.aab-stable-1:6)
com.android.webview.chromium.WebViewChromium.onCheckIsTextEditor (chromium-TrichromeWebViewGoogle.aab-stable-1:4)
android.webkit.WebView.onCheckIsTextEditor (WebView.java:3049)
android.view.inputmethod.InputMethodManager.checkFocusNoStartInput (InputMethodManager.java:1902)
android.view.inputmethod.InputMethodManager.checkFocus (InputMethodManager.java:1864)
android.view.inputmethod.InputMethodManager.updateSelection (InputMethodManager.java:2084)
android.widget.Editor.sendUpdateSelection (Editor.java:1771)
android.widget.Editor.access$1700 (Editor.java:148)
android.widget.Editor$SpanController.onSpanChanged (Editor.java:3036)
android.text.SpannableStringBuilder.sendSpanChanged (SpannableStringBuilder.java:1307)
android.text.SpannableStringBuilder.sendToSpanWatchers (SpannableStringBuilder.java:651)
android.text.SpannableStringBuilder.replace (SpannableStringBuilder.java:580)
android.text.SpannableStringBuilder.replace (SpannableStringBuilder.java:507)
android.text.SpannableStringBuilder.replace (SpannableStringBuilder.java:37)
android.view.inputmethod.BaseInputConnection.replaceText (BaseInputConnection.java:843)
android.view.inputmethod.BaseInputConnection.commitText (BaseInputConnection.java:197)
com.android.internal.widget.EditableInputConnection.commitText (EditableInputConnection.java:177)
com.android.internal.view.IInputConnectionWrapper.executeMessage (IInputConnectionWrapper.java:339)
com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage (IInputConnectionWrapper.java:89)
android.os.Handler.dispatchMessage (Handler.java:107)
android.os.Looper.loop (Looper.java:214)
android.os.HandlerThread.run (HandlerThread.java:67)
@jcesarmobile jcesarmobile added the needs reproduction needs reproducible example to illustrate the issue label Mar 6, 2023
@Ionitron
Copy link
Collaborator

Ionitron commented Mar 6, 2023

This issue may need more information before it can be addressed. In particular, it will need a reliable Code Reproduction that demonstrates the issue.

Please see the Contributing Guide for how to create a Code Reproduction.

Thanks!
Ionitron 馃挋

@Ionitron Ionitron added the needs reply needs reply from the user label Mar 6, 2023
@Ionitron
Copy link
Collaborator

It looks like this issue didn't get the information it needed, so I'll close it for now. If I made a mistake, sorry! I am just a bot.

Have a great day!
Ionitron 馃挋

@Ionitron Ionitron removed the needs reply needs reply from the user label Mar 22, 2023
@ionitron-bot
Copy link

ionitron-bot bot commented Apr 21, 2023

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs reproduction needs reproducible example to illustrate the issue platform: android
Projects
None yet
Development

No branches or pull requests

3 participants