MPSC channel assertion error #4276
-
i am interfacing with the Windows Events api via the windows-rs crate. it requires that i pass a callback that will get called anytime a new event is posted. i am running into an odd intermittent error on the following line: https://docs.rs/tokio/1.14.0/src/tokio/sync/mpsc/chan.rs.html#243. in our real app it doesn't crash the entire process, but in the minimal repro it does. not sure what the difference there is. but the error we get is |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Does that callback get called more than once? Because your use of |
Beta Was this translation helpful? Give feedback.
Does that callback get called more than once? Because your use of
Box::from_raw
is deallocating theBox
after the first time its called.