You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sample code (happy to provide more detailed code if required, but IMO the setup looks correct. We have been running the same code for sometime now on local machines).
Code which setups the OneShot server and is the main process -
let (server, sname) = IpcOneShotServer::new().unwrap();
let (_, x): (_, IpcReceiver<T>) = server.accept().unwrap();
// we keep x around and use it to receive data on it
Code with the producer of the channel. This is run as child process -
let tx0 = IpcSender::connect(server_name)?;
let (tx1, rx1): (
IpcSender<T>,
IpcReceiver<T>,
) = ipc_channel::ipc::channel().unwrap();
tx0.send(rx1).unwrap();
// we keep tx1 around
Versions which seem to work ipc-channel crate 1.16.0 and rustc 1.66.0. NOTE: ipc-channel 1.17.0 fails with the same error on rustc 1.66.0.
The text was updated successfully, but these errors were encountered:
Error -
thread 'main' panicked at 'assertion failed: self.port == MACH_PORT_NULL', /Users/mohitreddy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ipc-channel-0.17.0/src/platform/macos/mod.rs:602:9
Saw the above errors with the following versions of rustc -
Sample code (happy to provide more detailed code if required, but IMO the setup looks correct. We have been running the same code for sometime now on local machines).
Code which setups the OneShot server and is the main process -
Code with the producer of the channel. This is run as child process -
Versions which seem to work
ipc-channel
crate 1.16.0 and rustc 1.66.0. NOTE:ipc-channel
1.17.0 fails with the same error on rustc 1.66.0.The text was updated successfully, but these errors were encountered: