#!/bin/bash
echo "=== FULL LOG (without clip missing) ==="
grep -v "clip missing" /home/fabian/comfyui5.log
echo "=== OUTPUT DIR ==="
ls -la /home/fabian/ComfyUI/output/ 2>/dev/null
echo "=== THREAD STATES ==="
for tid in $(ls /proc/15070/task/ 2>/dev/null); do
    wchan=$(cat /proc/15070/task/$tid/wchan 2>/dev/null)
    if [ -n "$wchan" ] && [ "$wchan" != "0" ]; then
        echo "$tid: $wchan"
    fi
done
