Potential deadlock detected:
Process: 3
Program: a4ae897d-01f6-7c9d-fc35-fbe22fd3660d
BCI: 0x3365
Primitive: 18:1
fatal: Potential dead-lock
Events::register_monitor_notifier
update_resource_monitor
Locker locker(mutex_)
kebab-case
channel_ = Channel 20
....
channel-send msg/protocol.Message -> none:
if active_:
channel_.send msg
...
run:
while true:
while msg / protocol.Message? := channel_.receive --blocking=false:
...
location-channel / Channel := ?
register-monitor-notifier
sleep
receive
a4ae897d-01f6-7c9d-fc35-fbe22fd3660d
$HOME/local/.state/toit/a4ae897d-01f6-7c9d-fc35-fbe22fd3660d.snapshot
invoke primitive
13149: register-monitor-notifier_ <sdk>/core/events_.toit:73:1
0/13153 [018] - load local 4
1/13154 [048] - as class RpcRequestQueue_?(125 - 136)
3/13156 [041] - pop 1
4/13157 [089] - invoke primitive {events::register_monitor_notifier}
8/13161 [053] - invoke static throw <sdk>/core/exceptions.toit:39:1
11/13164 [041] - pop 1