Skip to content

Conversation

@jkelleyrtp
Copy link
Member

@jkelleyrtp jkelleyrtp commented Oct 27, 2025

This fixes #4847

I think something changed in wry/tao since using tokio RT used to work without needing to manually enter the runtime.

Tao on android has weird problems with thread safety and locking. Looking at the stack trace, it seems that handleRequest is called from wry in a thread that tokio was never used on. That doesn't make much sense to me, but I imagine it might be a java thread that existed before our main thread.

This PR just drags the runtime along into the async protocols, fixing the bug. I imagine there might be other similar issues with global runtimes we might need to look at later, but can't quite tell.

@jkelleyrtp jkelleyrtp requested a review from a team as a code owner October 27, 2025 21:20
@jkelleyrtp jkelleyrtp merged commit 9f0bacc into main Oct 27, 2025
19 checks passed
@jkelleyrtp jkelleyrtp deleted the jk/fix-android-tokio-rt branch October 27, 2025 21:30
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

Successfully merging this pull request may close these issues.

0.7.0-rc.3 android emulator crash server function 'there is no reactor running, must be called from the context of a Tokio 1.x runtime'

2 participants