Closed jhugman closed 1 week ago
This seems like the issue I had. I experienced this both in release builds (XCode archive and run on devices from TestFlight) and locally with a debug build run directly on my iPhone 10s test device.
For reference, this is the stack trace of the hung thread for me.
Fixes #157
Minimal test: 146cd396aed959e69bf78d898986656d67675d92
The change here is in
UniffiCallInvoker
, reverting the implementation ofinvokeBlocking
back to the Promise based implementation introduced in PR https://github.com/jhugman/uniffi-bindgen-react-native/pull/88.The deadlock rate for the test is now 0/50.
/cc @tayrevor
Adding any more to the implementation (e.g. uncommenting the
console.log
) causes the same error as before, but it is completely deterministic:On my machine it always stops after 265/1024. I am still unsure if this is a problem with production uniff-bindgen-react-native code, an artifact of the test-harness or something weirder.
I'm going to suggest that this is addressed in a separate issue.