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

Using WebView from more than one process at once with the same data directory is not supported. #104

Open
kyunkakata opened this issue May 10, 2023 · 0 comments

Comments

@kyunkakata
Copy link

kyunkakata commented May 10, 2023

Got error when try to add react-native-appodeal to my app. It crashes when application is launched.

Here is some info of my library and react-native version I am using:

"react-native": "0.66.5",
"react-native-appodeal": "^3.0.2",
"react-native-webview": "11.23.0",
Process: com.package:Metrica, PID: 18636
java.lang.RuntimeException: Unable to create application com.package.MainApplication: java.lang.RuntimeException: Using WebView from more than one process at once with the same data directory is not supported. https://crbug.com/558377 : Current process com.package:Metrica (pid 18636), lock owner com.package (pid 18538)
	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7109)
	at android.app.ActivityThread.access$1600(ActivityThread.java:271)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2134)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loopOnce(Looper.java:210)
	at android.os.Looper.loop(Looper.java:299)
	at android.app.ActivityThread.main(ActivityThread.java:8309)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1038)
Caused by: java.lang.RuntimeException: Using WebView from more than one process at once with the same data directory is not supported. https://crbug.com/558377 : Current process com.package:Metrica (pid 18636), lock owner com.package(pid 18538)
	at org.chromium.android_webview.AwDataDirLock.b(chromium-TrichromeWebViewGoogle.aab-stable-561513533:187)
	at org.chromium.android_webview.AwBrowserProcess.k(chromium-TrichromeWebViewGoogle.aab-stable-561513533:15)
	at com.android.webview.chromium.M.d(chromium-TrichromeWebViewGoogle.aab-stable-561513533:181)
	at com.android.webview.chromium.M.b(chromium-TrichromeWebViewGoogle.aab-stable-561513533:172)
	at com.android.webview.chromium.WebViewChromiumFactoryProvider.getStatics(chromium-TrichromeWebViewGoogle.aab-stable-561513533:16)
	at android.webkit.WebView.setWebContentsDebuggingEnabled(WebView.java:2009)
	at com.package.MainApplication.onCreate(MainApplication.java:69)
	at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1212)
	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7103)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant