Skip to content

fix(execution): bound response waits, add send timeout, and release the serial port on stop/error #185

Closed

Description

@CameronBrooks11

Near-term stabilization — independent of the Machine-I/O epic. Safe to do with hardware on hand.

Scope

  1. Cap the echo:busy deadline reset in _await_ok so a command Marlin never acks fails or reports ("machine busy on ") within a bounded time, instead of resetting the 10s timeout forever.
  2. Add a timeout to the Rust send_and_wait (marlin.rs) so a blocked subprocess surfaces an error to the GUI instead of an indefinitely-pending invoke.
  3. Guarantee the serial port is closed on stop / error / emergency-stop so reconnect can't fail with PermissionError: Access is denied.

Why (observed live)

Streaming freezes at [0/N] with no error, the UI can't send anything, and reconnect after M112 fails with a locked port.

Acceptance

  • A non-responding command surfaces an error within a bounded time; the GUI never hangs with no feedback; reconnect after a stop/abort always succeeds.

Activity

  1. added
    bug
    python
    rust
    on Jun 26, 2026
  2. CameronBrooks11 commented on Jun 26, 2026

    @CameronBrooks11
    MemberAuthor

    Closing — superseded by the machine-I/O refactor (board triage; hardware testing paused for a multi-week remote software stretch). The three fixes are fully absorbed: busy-reset bound + port-release → #182 (lifecycle); the Rust send_and_wait no-timeout disappears when #194 retires marlin.rs. Reopen only if a quick patch to the current 0.7.4 build is needed before the refactor lands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpythonrust

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions