Open Dewb opened 9 months ago
I had a chance to look at the i2c code and I see that based on the danger/fixme comments that this isn’t expected to work yet. I’d be happy to work on a PR to make the i2c queries safe, but I can imagine several different possible strategies with different tradeoffs, did anyone already have a plan in mind?
When simultaneously receiving serial messages from norns and i2c query commands from Teletype, crow will eventually crash.
Crow can also be made to crash immediately by redefining the
ii.self.query0
function while this is happening.Example real-world application: adding an option to dreamsequence to synchronize its scale with teletype (branch)
The crash is observable in both crow 3.0.0 and crow 4.0.5.
Example repro script (this is not totally minimal, I believe one coroutine calling crow.send is sufficient, but more crash sooner.)