Skip to content

Conversation

@jasonctoms
Copy link
Contributor

@jasonctoms jasonctoms commented Nov 19, 2025

About the changes

Unleash startup could crash if start was triggered on a background thread. This change ensures that the lifecycle observer is always added on the main thread.

Discussion points

If this change is not desirable, I think start should at least be marked with @MainThread. We discovered this issue when we were changing dependency injection frameworks where sometimes dependencies are created lazily on threads.

Unleash startup could crash if start was triggered on a background thread
@gastonfournier gastonfournier self-assigned this Nov 20, 2025
@chriswk chriswk moved this from New to Todo in Issues and PRs Nov 20, 2025
@gastonfournier
Copy link
Contributor

Hi @jasonctoms we're wondering if this could risk blocking the rendering thread. Maybe a test case would help to validate how it fails.

@gastonfournier gastonfournier self-requested a review November 20, 2025 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants