The user hit "spice2x won't launch" which turned out to be DEA's boot-time
Kinect presence check hanging then exiting cleanly after ~20s (full AVS2
boot, I/O hooks via Wine HID all succeed, then xrpc dispose with no crash
signature - easy to mistake for a launch failure). They looked for a
"Kinect bypass" option in spicecfg and couldn't find it, because it isn't a
built-in checkbox - it's a community runtime JSON patch
(github.com/JoeKoh27/danevo-patches), imported through spicecfg's Patches
tab -> Import from URL. Verified by fetching the patch repo directly.
docs/setup-windows.md step 5 and docs/troubleshooting.md now spell out the
exact mechanism (Patches tab, import URL, enable Kinect bypass, the specific
gamekdm.dll build it targets) instead of just saying "enable the Kinect
bypass option", which was accurate in substance but too vague about where
to find it.
Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
The Linux Python tracker is headless by design - no window, no camera
picker, no live preview; those only exist in the Windows-only
tracker-native/ GUI, which cannot run under Wine (docs/linux-wine.md). But
it also produced zero console output during a normal run, so a working
tracker and a silently stuck one looked identical - which is what prompted
"i don't see the window or picker or preview".
Added:
- a startup banner (camera source opening/opened, model loading, shm
target + resolution + fps) so a terminal run shows the pipeline actually
came up,
- a periodic "[tracker] frame=N fps=F player=tracked|lost seq=S" status
line (every 2s by default, Tracker.run(status_interval=...), disableable
for tests) so a long-running session shows live confirmation it is still
publishing frames and whether a person is currently detected.
Verified for real: ran the CLI against both a synthetic test video (confirms
the startup banner, mediapipe loads and infers) and a paced fake source
spanning several seconds (confirms the periodic status line fires on
schedule with the right frame/fps/player fields). Full tests/test_tracker.py
suite still passes (10/10, 0.78s) - the fast unit-test runs finish well
under the 2s default interval, so no new output or timing coupling there.
Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
tracker.py failed with FileNotFoundError on pose_landmarker_full.task - the
flake built the Python env fine but never fetched the .task model bundles
that docs/setup-linux.md step 2a used to curl by hand into the git-ignored
tracker/models/.
Added poseModels: a runCommand derivation that fetches all three tiers
(lite/full/heavy) via pkgs.fetchurl with sha256 hashes pinned from the real
bundles (verified by downloading and hashing each one directly, not guessed).
The google storage "latest" path can move the file it points to; fetchurl's
hash check fails loudly if it ever does, rather than silently serving a
different model.
nix run .#tracker now passes --models-dir pointing at this derivation by
default (a user-supplied --models-dir/--model after it still wins, argparse
keeps the last occurrence). nix develop also symlinks the fetched bundles
into tracker/models/ so a manual python -m tracker.tracker inside the shell
needs no separate fetch either. docs/setup-linux.md updated to note the Nix
path skips the manual model-download step too.
Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
nix run with no args resolves to apps.<system>.default (or packages.default
as a fallback), neither of which the flake defined - only the explicitly
named apps.tracker/core-test/shim-build existed, so a bare nix run errored
with "does not provide attribute ... default". Added apps.default (aliased
to the tracker app, so nix run with no args launches the tracker, matching
the args.--source default of webcam 0) and packages.default (the tracker's
Nix-built environment via mkVirtualEnv).
Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
The real nix develop run surfaced a FileCollisionError: mediapipe declares a
dependency on opencv-contrib-python (its own cv2 build), which collides with
our own opencv-python-headless pin - both provide cv2/__init__.pyi with
different contents. uv2nix merges every locked wheel into one environment and
refuses on a content mismatch; a plain pip/uv venv install silently let
whichever package installed last clobber the others files instead, which is
why this never surfaced before.
tracker/pyproject.toml now excludes opencv-contrib-python from resolution
(tool.uv.exclude-dependencies) since opencv-python-headless already provides
everything the tracker and mediapipe need - verified by installing the
re-locked tracker/uv.lock into a real venv and confirming import mediapipe,
import cv2, and from mediapipe.tasks import python all succeed with only the
headless build present.
Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
flake.nix builds the whole project with Nix instead of a manual uv venv:
- the Python tracker as a pure Nix-built environment via uv2nix, from
tracker/uv.lock (generated by uv lock against pyproject.tomls pins -
numpy==2.5.5, opencv-python-headless==5.1.0.95, mediapipe==1.2.3, Python
3.12), so the environment is an immutable Nix store path assembled from
hash-pinned wheels, never a mutable venv or a pip install step. libglvnd
replaces the manual libGLESv2.so.2 .deb-extraction workaround.
- the OS-agnostic core + CTest suite via cmake (nix run .#core-test).
- the Windows shim + native tracker cross-compiled via nixpkgs mingw-w64
(pkgsCross.mingwW64/mingw32; nix run .#shim-build), with CXX32/CXX64/CXX_WIN
wired to the build scripts override hooks.
nix run .#tracker runs the tracker directly; nix develop gives a shell with
everything for manual work. docs/setup-linux.md documents the Nix path as
the lead option, keeping the uv/venv path as the no-Nix fallback.
Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
Wine mf.dll stubs out MFEnumDeviceSources for video capture (confirmed in
Wine upstream source), so tracker-native/kinect-tracker.exe always sees zero
cameras and null-derefs when run under Wine. Rather than chase that Wine
limitation, let the already-verified native-Linux Python tracker (tracker/,
full V4L2 access) feed the Wine-hosted shim directly.
FrameSource gains open_file() (CreateFileW + file-backed CreateFileMappingW
+ MapViewOfFile), selected via a new KINECT_SHIM_SHM_FILE env var checked
first in VirtualKinectSensor::Initialize, falling back to the existing
anonymous named-section path when unset. The Linux tracker publishes through
multiprocessing.shared_memory, which on Linux is backed by a real file at
/dev/shm/<name>; through Wines default Z: drive that is reachable from
inside Wine as Z:\dev\shm\<name>, so both sides map the same tmpfs file
with no Wine camera support needed at all.
Builds clean for both x86/x64 (fallback/windows-nui/build.sh). New runbook
in docs/linux-wine.md; linked from README and docs/troubleshooting.md.
Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>