question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash InvocationTargetException on Samsung Galaxy S10 (android 12)

See original GitHub issue

Hi,

A crash occurs on the Samsung Galaxy S10 in android 12 (8 differents users). If I believe the logs, it comes from a problem to loading the native webview libraries. I don’t know if you can do anything on your side to solve this issue or if only an intervention on the affected device can solve the problem.

This issue looks like this old one : https://github.com/react-native-webview/react-native-webview/issues/1060

Environment:

  • OS: android 12
  • react-native version: 0.67.4
  • react-native-webview version: 11.8.2

Main log : Fatal Exception: android.util.AndroidRuntimeException: java.lang.reflect.InvocationTargetException at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:363) at android.webkit.CookieManager.getInstance(CookieManager.java:50) at com.facebook.react.modules.network.ForwardingCookieHandler.getCookieManager(ForwardingCookieHandler.java:10) at com.facebook.react.modules.network.ForwardingCookieHandler.get(ForwardingCookieHandler.java) at com.facebook.react.modules.websocket.WebSocketModule.getCookie(WebSocketModule.java:16) at com.facebook.react.modules.websocket.WebSocketModule.connect(WebSocketModule.java:47) at java.lang.reflect.Method.invoke(Method.java) at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:148) at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:147) at com.facebook.react.bridge.queue.NativeRunnable.run(NativeRunnable.java) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:313) at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:37) at java.lang.Thread.run(Thread.java:920)

Load log : Caused by java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/~~konySwt1HDgqW5_LXRGBoQ==/com.google.android.webview-qlba5Tg1jkJRuOprPYZObQ==/lib/arm/libwebviewchromium.so" is 32-bit instead of 64-bit at java.lang.Runtime.loadLibrary0(Runtime.java:1077) at java.lang.Runtime.loadLibrary0(Runtime.java:998) at java.lang.System.loadLibrary(System.java:1656) at org.chromium.base.library_loader.b.g(b.java:816) at org.chromium.base.library_loader.b.i(b.java:696) at org.chromium.android_webview.AwBrowserProcess.h(AwBrowserProcess.java:680) at com.android.webview.chromium.WebViewChromiumFactoryProvider.<init>(WebViewChromiumFactoryProvider.java:441) at com.android.webview.chromium.WebViewChromiumFactoryProviderForS.<init>(WebViewChromiumFactoryProviderForS.java:13) at com.android.webview.chromium.WebViewChromiumFactoryProviderForS.create(WebViewChromiumFactoryProviderForS.java:9) at java.lang.reflect.Method.invoke(Method.java) at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:355) at android.webkit.CookieManager.getInstance(CookieManager.java:50) at com.facebook.react.modules.network.ForwardingCookieHandler.getCookieManager(ForwardingCookieHandler.java:10) at com.facebook.react.modules.network.ForwardingCookieHandler.get(ForwardingCookieHandler.java) at com.facebook.react.modules.websocket.WebSocketModule.getCookie(WebSocketModule.java:16) at com.facebook.react.modules.websocket.WebSocketModule.connect(WebSocketModule.java:47) at java.lang.reflect.Method.invoke(Method.java) at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:148) at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:147) at com.facebook.react.bridge.queue.NativeRunnable.run(NativeRunnable.java) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:313) at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:37) at java.lang.Thread.run(Thread.java:920)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
yoyo0427commented, Jun 28, 2022

set the style of WebView to opacity: 0.99

0reactions
github-actions[bot]commented, Aug 28, 2022

Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

Read more comments on GitHub >

github_iconTop Results From Across the Web

My S10e is broken and unstable after updating to Android 12
Following the updates my phone has been completely destroyed, everything is crashing, is bugging out. To name a few:.
Read more >
InvocationTargetException - Google Groups
1. Fatal Exception: android.util.AndroidRuntimeException: java.lang.reflect. · 2. Caused by java.lang.reflect.InvocationTargetException. at java.
Read more >
Android - java.lang.reflect.InvocationTargetException crash in ...
I checked each line in my app individually according to the stack traces which are given in the crash reports and realized that...
Read more >
InvocationTargetException - Android Developers
InvocationTargetException ; InvocationTargetException ... Returns the cause of this exception (the thrown target exception, which may be null ).
Read more >
Here's how to fix constant app crashes in Android 12 beta
If you're seeing constant app crashes on Android 12, just go to the Settings menu, tap Apps, All apps, then scroll down to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found