Repository navigation
Backplane stops every board at startup when all transports close (e.g. MUJINA_USB_DISABLE=1 with the CPU miner)
#122
Unanswered
Jolah1
asked this question in
Issue Triage
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Issue Description
With USB discovery disabled and the CPU miner enabled (the README Quick Start settings), the backplane shuts the CPU board down a few milliseconds after starting it.
This is a regression from cd96476 (feat: hold startup until initial board enumeration completes). Since then each transport has its own channel. The CPU transport sends its device and InitialEnumerationComplete, then drops
cpu_tx (daemon.rs). When it is the only transport, the backplane's StreamMap ends, Backplane::run() returns Ok(()), and the spawned task falls through to shutdown_all_boards(), which is meant to run only on shutdown. Before
cd96476, transport_tx lived for the whole of Daemon::run, so the stream never ended. I confirmed this by building cd96476^ (board stops only on SIGINT) and cd96476 (board stops at startup).
Impact:
board. cpu-miner: make the CPU backend a first-class citizen for API/tooling #56 was tested in May, before cd96476.
I have a fix ready: keep boards running until shutdown is requested, even after every transport closes. It comes with a regression test, following the should_panic pattern in CONTRIBUTING.md. I'm happy to open a PR if this
sounds right.
Expected Behavior
Boards keep running until the daemon receives a shutdown signal. "Board stopped" is logged only on shutdown, as it is when USB discovery is enabled.
Actual Behavior
"Board stopped" is logged in the same millisecond as "Board started". On SIGINT, no "Board stopped" is logged, because the backplane has already forgotten the board.
Reproduction Steps
MUJINA_CPUMINER_THREADS=1 MUJINA_CPUMINER_DUTY=50 MUJINA_USB_DISABLE=1 cargo run --bin mujina-minerd
Logs
mujina-miner Version
Linux Distribution and Kernel
Ubuntu 26.04.1 LTS, Linux 7.0.0-38-generic x86_64
Hardware Info
None. CPU miner only, no hashboard attached.
Configuration
All reactions