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 in HCaptcha 4.0.3 #170

Open
daldegam opened this issue Jan 2, 2025 · 1 comment
Open

Crash in HCaptcha 4.0.3 #170

daldegam opened this issue Jan 2, 2025 · 1 comment
Assignees

Comments

@daldegam
Copy link

daldegam commented Jan 2, 2025

Some reports of crashes from my users when the hcaptcha should be displayed.

After some analysis, I managed to find a device that I can reproduce the crash.

To reproduce the crash, simply display the hcaptcha to the user, and the crash happens instantly.

Device: Samsung J5 (SM-J500M)
Android 6.0.1

Stacktrace:

FATAL EXCEPTION: main
        Process: com.devilz.game.g, PID: 15745
        java.lang.NoClassDefFoundError: com.fasterxml.jackson.databind.ser.impl.ReadOnlyClassToSerializerMap$$ExternalSyntheticLambda0
        	at com.fasterxml.jackson.databind.ser.impl.ReadOnlyClassToSerializerMap.<init>(ReadOnlyClassToSerializerMap.java:30)
        	at com.fasterxml.jackson.databind.ser.impl.ReadOnlyClassToSerializerMap.from(ReadOnlyClassToSerializerMap.java:52)
        	at com.fasterxml.jackson.databind.ser.SerializerCache._makeReadOnlyLookupMap(SerializerCache.java:74)
        	at com.fasterxml.jackson.databind.ser.SerializerCache.getReadOnlyLookupMap(SerializerCache.java:66)
        	at com.fasterxml.jackson.databind.SerializerProvider.<init>(SerializerProvider.java:236)
        	at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.<init>(DefaultSerializerProvider.java:70)
        	at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider$Impl.<init>(DefaultSerializerProvider.java:614)
        	at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider$Impl.createInstance(DefaultSerializerProvider.java:628)
        	at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider$Impl.createInstance(DefaultSerializerProvider.java:606)
        	at com.fasterxml.jackson.databind.ObjectMapper._serializerProvider(ObjectMapper.java:4606)
        	at com.fasterxml.jackson.databind.ObjectMapper._writeValueAndClose(ObjectMapper.java:4624)
        	at com.fasterxml.jackson.databind.ObjectMapper.writeValueAsString(ObjectMapper.java:3869)
        	at com.hcaptcha.sdk.HCaptchaJSInterface.<init>(SourceFile)
        	at com.hcaptcha.sdk.HCaptchaWebViewHelper.setupWebView(SourceFile)
        	at com.hcaptcha.sdk.HCaptchaWebViewHelper.<init>(SourceFile)
        	at com.hcaptcha.sdk.HCaptchaDialogFragment.onCreateView(SourceFile)
        	at androidx.fragment.app.Fragment.performCreateView(Fragment.java:2963)
        	at androidx.fragment.app.DialogFragment.performCreateView(DialogFragment.java:489)
        	at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:518)
        	at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:282)
        	at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2189)
        	at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2100)
        	at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:2002)
        	at androidx.fragment.app.FragmentManager$5.run(FragmentManager.java:524)
        	at android.os.Handler.handleCallback(Handler.java:739)
        	at android.os.Handler.dispatchMessage(Handler.java:95)
        	at android.os.Looper.loop(Looper.java:148)
        	at android.app.ActivityThread.main(ActivityThread.java:7325)
        	at java.lang.reflect.Method.invoke(Native Method)
        	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
        	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

This crash does not occur in version 4.0.2.
Which leads me to believe that it was introduced when this fix was applied:
#167

Thanks

@CAMOBAP
Copy link
Collaborator

CAMOBAP commented Jan 12, 2025

Yep FasterXML/jackson-databind#3657 is require Android 26, so reverting dependency back to 2.13.x in #171

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