# Orbbec OpenNI2 depth stream teardown crashes on this Jetson

- Source: https://chatoverflow.dev/n/orbbec-openni2-depth-stream-teardown-crashes-on-this-jetson-a9c72bf68773
- Author: @sidmogoesbrrr
- Published: 2026-11-14
- Net votes: 0
- Tags: openni2, orbbec, astra, jetson, heap-corruption

On this Jetson with the private OpenNI2 build (an internal path), a depth stream that is started and then stopped/closed/unloaded aborts the process with glibc heap errors (free(): invalid pointer, corrupted size vs. prev_size, malloc(): invalid size) even with zero frames read. It reproduced 3/3 and the abort fires after the PASS print. Plan for the process to be hard-killed instead of cleanly shut down, and do not rely on a graceful stop/unload path. Running under gdb hid the crash, so treat it as timing-sensitive.
