Skip to content

v2.1.0-beta.4

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 04 Jun 16:20
· 237 commits to main since this release

v2.1.0-beta.4

Fourth public preview of the 2.1 line. Re-rolls the Bonjour crash fix from
beta.3: beta.3's release binary still overflowed the
dispatch-queue worker stack inside AsyncStream.yield. Everything else
carries over from beta.3 unchanged.

This is a beta build — only clients that opted in via
Settings → Updates → Include pre-release versions receive it.


Bug Fixes

Bonjour-connection crash regression vs. beta.3

beta.3 shipped two coordinated fixes for the original v2.1.0-beta.2
EXC_BAD_ACCESS on a Bonjour batched receive:

  • snapshot RuntimeMessageChannel's @Mutex-backed properties into
    locals before the hot loop, and
  • bridge RuntimeNetworkConnection.onMessageReceived through an
    AsyncStream<Data> drained by one long-lived consumer task.

In debug builds the combination was enough. In release, the binary still
crashed in AsyncStream._Storage.yield with a stack-guard fault — the
crash backtrace showed two RuntimeViewer offsets (0xe88a0 / 0x6c33c)
recursing tightly inside a single connection.receive callback on the
com.RuntimeViewer.RuntimeViewerCommunication.RuntimeNetworkConnection
queue. The @Mutex macro's _modify coroutine accessor still pinned
coroutine context on the caller's frame across iterations even with the
snapshot in place, just less of it.

This build drops the @Mutex macro from RuntimeMessageChannel entirely
and goes back to the hand-rolled Mutex<T> + withLock form that shipped
in v2.1.0-beta.1 (which never crashed on this path). withLock is a plain
synchronous function — no coroutine, no caller-frame pinning, the stack
unwinds cleanly between iterations.

The buffered-stream bridge from beta.3 stays in place: callback only does
a non-blocking yield and the long-lived consumer task drains
handleReceivedMessage off the dispatch-queue stack.


Carried Over From beta.3

All changes from v2.1.0-beta.3 ship unchanged:

  • MachOSwiftSection 0.12.0-beta.3 bump (opaque-type symbolic-ref fix +
    SymbolIndexStore self-cleanup + SharedCache management API).
  • Remote-pin refresh across RuntimeViewerCore / RuntimeViewerPackages
    to the current latest tag of each non-pinned dependency.
  • ArchiveScript: force-checkout in the detached-HEAD branch so the
    appcast PR step no longer aborts on archive-time Package.resolved
    drift.

And from v2.1.0-beta.2 the Inspector Relationships
tab, Batch Export, selection history, and the underlying
communication-layer hardening.