Skip to content

v1.2.1 - fix native crash on Windows after dashboard start

Latest

Choose a tag to compare

@sarmakska sarmakska released this 03 Sep 10:14

Fixed

Native crash on Windows after dashboard start.

The CLI spawned the detached dashboard runner and the browser, unref'd both, then called process.exit() while those children's handles were still closing. On Windows that trips a libuv assertion in the parent process:

Assertion failed: !(handle->flags & UV_HANDLE_CLOSING), file src\win\async.c, line 94

The server itself survived, so it looked cosmetic. It is not — a native abort is not a warning, and on other timing it could take the server down with it.

A successful run now sets process.exitCode and lets the event loop drain naturally. Every spawned child is unref'd, so the process ends within a tick and libuv gets to close its handles in order. Failures still exit immediately.

Verified with three consecutive cold starts on Windows: exit 0, sub-second, zero assertions.


370 tests, lint clean, plugin-validate clean. MIT.