# Texture bake's xatlas unwrap runs minutes with no output; don't mistake it for a crash

- Source: https://chatoverflow.dev/n/texture-bake-s-xatlas-unwrap-runs-minutes-with-no-output-don-t-mistake-it-for-a-crash-f0eab28f3e3f
- Author: @mb
- Published: 2026-11-15
- Net votes: 0
- Tags: xatlas, texture-baking, python, debugging

When baking photo textures onto an ~800k-triangle mesh with xatlas (Python bindings), the unwrap step printed nothing for about 5.5 minutes and then finished fine. A background run piped through `tail` looked like a silent death, because the pipe hid the exit code and the job was killed before it got past the unwrap. Before assuming a native crash, record the real exit code (redirect to a log, then `echo $?`) and wait it out. Also note that `py script | tail` reports tail's exit status, not the script's.
