Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Troubleshooting Examples

This guide helps resolve common issues when running AstraWeave examples.

Working Examples

The following examples are verified to build and run:

ExampleCommandNotes
hello_companioncargo run -p hello_companion --releaseExpected panic (demonstrates tool validation)
fluids_democargo run -p fluids_demo --releaseInteractive PCISPH fluid simulation
unified_showcasecargo run -p unified_showcase --releasewgpu rendering with shadows, terrain
physics_demo3dcargo run -p physics_demo3d --releaseRapier3D physics with character controller
navmesh_democargo run -p navmesh_demo --releaseNavMesh baking and A* pathfinding
audio_spatial_democargo run -p audio_spatial_demo --release3D spatial audio
adaptive_bosscargo run -p adaptive_boss --releaseDirector AI for boss encounters
ipc_loopbackcargo run -p ipc_loopback --releaseIPC communication test

Known Compilation Issues

Some examples have compilation issues due to API evolution:

ExampleIssueStatus
debug_overlayegui 0.32 API changesNeeds update
ui_controls_demoegui/winit version mismatchesNeeds update
visual_3dwinit 0.30 migrationNeeds update
rhai_authoringRhai sync/send traitsNeeds refactor
npc_town_demoMultiple API mismatchesNeeds update

Build Aliases

Use these workspace aliases for safer builds:

cargo build-core
cargo check-all
cargo clippy-all

Common Errors

“No suitable graphics adapter”

thread 'main' panicked at 'No suitable graphics adapter found'

Solution: Update graphics drivers or use software rendering:

export WGPU_BACKEND=gl
cargo run -p hello_companion

“AI model not found”

Error: Could not load AI model

Solution: Examples use mock AI by default. This panic is expected when no LLM is configured.

Vulkan Not Found (Linux)

sudo apt-get install mesa-vulkan-drivers vulkan-tools

Missing Build Tools (Windows)

Install Visual Studio with C++ build tools.

Getting Help