Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.
TypeScript 3dagent-skillsai-agentsai-videobevyclaude-codegame-enginegpulinuxmacosmotion-designmotion-graphicsreactrusttypescriptvideo-editingvideo-renderingwgpuwindows
Windows: raea play no longer crashes as its mixer opens. warm_audio found the output device on a thread of its own, but on Windows cpal keeps one device enumerator a process (a OnceLock) made on the thread that first asks, and that thread's COM is torn down when it ends: where nothing else held MMDevApi.dll (GitHub's runners, no audio device) it was unloaded, and the mixer's open called through the enumerator into it, an access violation in every play since the JS error before it was fixed. The warm is for CoreAudio's start-up and runs only on Apple now; elsewhere the mixer finds the device on the play's own thread. release.yml's Live play runs without the Vulkan loader's debug lines and prints each failing case's log tail, and bevy-ts's check.sh doesn't take the loader's INFO lines for a failure's reason
shinyobjectzce8f2d29d236
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex b5409d20..4d3e8fb5 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -194,10 +194,18 @@ jobs:if (-not (Get-Command magick -ErrorAction SilentlyContinue)) { choco install imagemagick -y --no-progress | Out-Null }$im = Get-ChildItem "C:\Program Files" -Directory -Filter "ImageMagick-*" | Select-Object -First 1if ($im) { Add-Content $env:GITHUB_PATH $im.FullName }+ # without the loader's debug lines (lavapipe.sh sets them for the driver's registration), and a failing case's+ # log tail in the job's log, since the runner and its logs go when the job ends- name: Live play (bevy-ts's play cases)+ env:+ VK_LOADER_DEBUG: ""run: |b="$PWD/target/dist/raea.exe"- RAEA_BIN="$b" RAEA_PLUGIN_BIN="$b" bash sdk/raea/bench/bevy-ts/check.sh $(grep -l '^// play:' sdk/raea/bench/bevy-ts/cases/*.tsx) | tee -a "$GITHUB_STEP_SUMMARY"+ out="${TMPDIR:-/tmp}/raea-bevy-ts"+ s=0; RAEA_BIN="$b" RAEA_PLUGIN_BIN="$b" bash sdk/raea/bench/bevy-ts/check.sh $(grep -l '^// play:' sdk/raea/bench/bevy-ts/cases/*.tsx) > "$RUNNER_TEMP/play.txt" 2>&1 || s=$?+ tee -a "$GITHUB_STEP_SUMMARY" < "$RUNNER_TEMP/play.txt"+ for n in $(sed -n 's/^\([^ ]*\) (.*): OPEN.*/\1/p' "$RUNNER_TEMP/play.txt"); do echo "--- $n"; grep -v "known driver" "$out/$n.log" | tail -25; done+ exit $s- uses: actions/attest-build-provenance@v2with:subject-path: dist/raea-*.zipdiff --git a/runtime/live/src/sound.rs b/runtime/live/src/sound.rsindex da0ff997..714c0e7f 100644--- a/runtime/live/src/sound.rs+++ b/runtime/live/src/sound.rs@@ -260,8 +260,15 @@ impl Live {/// CoreAudio's output device found and its format read on a thread, once a process, so the HAL's start-up (~95 ms) is/// done by the time the mixer opens, after the object's open and before the clock (lightspeed F5). Called as an open-/// starts, and earlier by whoever knows sound will come (raea play, void's launch).+/// starts, and earlier by whoever knows sound will come (raea play, void's launch). CoreAudio only: on Windows, cpal+/// keeps one device enumerator a process (a OnceLock) made on the thread that first asks, and that thread's COM is torn+/// down when it ends, so the warm thread left the mixer an enumerator whose MMDevApi.dll was unloaded where nothing+/// else held it, and every `raea play` on a machine with no audio device (GitHub's runners) crashed with an access+/// violation as its mixer openedpub fn warm_audio() {+ if !cfg!(target_vendor = "apple") {+ return;+ }static ONCE: std::sync::Once = std::sync::Once::new();ONCE.call_once(|| {let _ = std::thread::Builder::new().name("raea audio warm".into()).spawn(|| {diff --git a/sdk/raea/bench/bevy-ts/check.sh b/sdk/raea/bench/bevy-ts/check.shindex c0e89a7c..26b245b6 100755--- a/sdk/raea/bench/bevy-ts/check.sh+++ b/sdk/raea/bench/bevy-ts/check.sh@@ -57,7 +57,8 @@ for edit in "${cases[@]}"; dorun=("$bin" render "$edit" --frame "${frame:-0}" ${extra[@]+"${extra[@]}"} -o "$png")fiif ! RAEA_SCENE_ROWS=1 nice -n 10 "${run[@]}" > "$log" 2>&1 || [ ! -f "$png" ]; then- why=$(grep -iE "error|refused|not |no " "$log" | grep -v "global logger" | tail -1 | cut -c1-160)+ # (not the Vulkan loader's own INFO lines, which VK_LOADER_DEBUG prints on a CI runner: "... is not recognized ...")+ why=$(grep -iE "error|refused|not |no " "$log" | grep -v "global logger" | grep -v "INFO |" | tail -1 | cut -c1-160)echo "$name ($gap): OPEN the render failed: ${why:-see $log}"; open=$((open + 1)); continuefibad=""