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 Android with Amplitude SDK: VM already shutting down #225

Open
mikarep opened this issue Sep 21, 2024 · 0 comments
Open

Crash in Android with Amplitude SDK: VM already shutting down #225

mikarep opened this issue Sep 21, 2024 · 0 comments

Comments

@mikarep
Copy link

mikarep commented Sep 21, 2024

Summary

We are encountering a crash in our Android project that appears to be caused by the Amplitude SDK, specifically when initializing the event pipeline. The crash log shows the following error:

Fatal Exception: java.lang.IllegalStateException: VM already shutting down
at java.lang.Runtime.addShutdownHook(Runtime.java:280)
at com.amplitude.core.platform.EventPipeline.registerShutdownHook(EventPipeline.kt:178)
at com.amplitude.core.platform.EventPipeline.<init>(EventPipeline.kt:59)

The crash is reported by our users, but we haven't been able to reproduce it on our devices during development. It seems to occur consistently for users when the app shuts down. We are using the following implementation:

implementation 'com.amplitude:analytics-android:1.+'

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