Skip to content

Conversation

@IsaacInsoll
Copy link
Contributor

I've had a bunch of crashing and this definitely resolved it :)

Thanks for the great library and I'm glad I could contribute something back

The issue is: this can be called from non-Java threads (e.g. Hermes "hades" GC thread) via Recorder::~Recorder -> runTaskOnMainThread(). We must ensure the current thread is attached to the JVM before using fbjni / Java refs.

This can be called from non-Java threads (e.g. Hermes "hades" GC thread) via Recorder::~Recorder -> runTaskOnMainThread(). We must ensure the current thread is attached to the JVM before using fbjni / Java refs.
@IsaacInsoll
Copy link
Contributor Author

I have signed the CLA!

@wcandillon
Copy link
Contributor

super nice catch, I feel silly that I missed it.

@wcandillon wcandillon self-requested a review November 19, 2025 08:18
@wcandillon wcandillon merged commit 555e0cb into Shopify:main Nov 19, 2025
15 of 16 checks passed
@github-actions
Copy link
Contributor

🎉 This PR is included in version 2.3.14 🎉

The release is available on:

Your semantic-release bot 📦🚀

@wcandillon wcandillon mentioned this pull request Nov 19, 2025
1 task
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.

2 participants