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

ANR in WebKitSyncCookieManager #38

Open
harsh-rksv opened this issue May 8, 2024 · 5 comments
Open

ANR in WebKitSyncCookieManager #38

harsh-rksv opened this issue May 8, 2024 · 5 comments

Comments

@harsh-rksv
Copy link

    init {
        handleExceptions {
            android.webkit.CookieManager.getInstance().setAcceptCookie(true)
        }
    }

The default value of setAcceptCookie is true. do we need to still set this? we are facing ANR in production for some device

@gotev
Copy link
Owner

gotev commented May 22, 2024

Good point. This was added to the lib to support custom vendors ROMs which had the default value to false. On which devices have you observerd ANRs because of this?

@harsh-rksv
Copy link
Author

harsh-rksv commented May 29, 2024

Its not related to a specific manufacturer/devices. we can see ANR is most standard devices. Added stack trace for more context

java.lang.Runtime.nativeLoad (Native method) java.lang.Runtime.nativeLoad (Runtime.java:1121) java.lang.Runtime.loadLibrary0 (Runtime.java:1075) java.lang.Runtime.loadLibrary0 (Runtime.java:998) java.lang.System.loadLibrary (System.java:1661) WV.Bx.g (chromium-TrichromeWebViewGoogle6432.aab-stable-642208233:32) WV.Bx.h (chromium-TrichromeWebViewGoogle6432.aab-stable-642208233:27) org.chromium.android_webview.AwBrowserProcess.h (chromium-TrichromeWebViewGoogle6432.aab-stable-642208233:34) com.android.webview.chromium.WebViewChromiumFactoryProvider.<init> (chromium-TrichromeWebViewGoogle6432.aab-stable-642208233:386) com.android.webview.chromium.WebViewChromiumFactoryProviderForS.<init> (chromium-TrichromeWebViewGoogle6432.aab-stable-642208233:1) com.android.webview.chromium.WebViewChromiumFactoryProviderForS.create (chromium-TrichromeWebViewGoogle6432.aab-stable-642208233:3) java.lang.reflect.Method.invoke (Native method) android.webkit.WebViewFactory.getProvider (WebViewFactory.java:355) android.webkit.CookieManager.getInstance (CookieManager.java:50) net.gotev.cookiestore.WebKitSyncCookieManager.<init> (WebKitSyncCookieManager.kt:32) net.gotev.cookiestore.WebKitSyncCookieManager.<init> (WebKitSyncCookieManager.kt:9)

image

@harsh-rksv
Copy link
Author

hey @gotev can we add a fix for this please?

@gotev
Copy link
Owner

gotev commented Jun 4, 2024 via email

@gotev
Copy link
Owner

gotev commented Jun 8, 2024

@harsh-rksv fork the repository first, commit to your branch on your fork and then you can make the PR 😉

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

2 participants