Skip to content

fix: ignore illegal state exception on addShutdownHook w/c happens wh… #248

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

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

polbins
Copy link
Contributor

@polbins polbins commented Mar 5, 2025

Summary

Ignore illegal state exception on addShutdownHook w/c happens when shutdown sequence has begun.
This PR aims to fix this reported crash #225

Checklist

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?:

@polbins polbins linked an issue Mar 5, 2025 that may be closed by this pull request
@polbins polbins merged commit 864cbc4 into main Mar 5, 2025
11 checks passed
@polbins polbins deleted the AMP-110562/ignore-exception-on-shutdown branch March 5, 2025 21:28
github-actions bot pushed a commit that referenced this pull request Mar 10, 2025
## [1.20.3](v1.20.2...v1.20.3) (2025-03-10)

### Bug Fixes

* add consumer-rules for useAppSetIdForDeviceId = true ([#249](#249)) ([83cc361](83cc361))
* ignore illegal state exception on addShutdownHook w/c happens when shutdown sequence has begun ([#248](#248)) ([864cbc4](864cbc4))
* initialize custom http client with configuration ([#240](#240)) ([1173728](1173728))
* respect play services flags inside context provider ([#252](#252)) ([e7f9112](e7f9112))
Copy link

🎉 This PR is included in version 1.20.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash in Android with Amplitude SDK: VM already shutting down
2 participants