Open ninjaoxygen opened 1 week ago
You could try building and linking R3 package from my forked repo from the pull request with fixed ReactiveProperty and see if it helps.
You could try building and linking R3 package from my forked repo from the pull request with fixed ReactiveProperty and see if it helps.
Tried your fork, it definitely solves it in the test case, so looks like the same underlying cause. I will try it on our full code base.
Many thanks for your issue and patch, I had started down the same lines of investigation and was scattering logging and extra locks in Select/Switch without it helping, they just made the problem occur less frequently.
I will check with our full code and post results, happy to close as a dupe of #228.
There seems to be a race in
Switch
similar to issue #228Below is a distilled test-case of the code that triggers it. I'm not sure what the guarantees are about threaded calls to
OnNext
, we basically ported fromdotnet/reactive
toR3
and came across the issue very intermittently.Uncommenting the
await Task.Delay(10);
makes it almost always go away.First three runs of the code for me produce different results: