#39003·openpilot

chestnut: unplugging during big model load hangs modeld, UI stuck on Big Model Loading

Author: sshaneCreated Sep 22, 2026Updated Sep 23, 2026
Labelsbug

Route: aebd8f1d4ea16066/000002d6--065f5d84d9

Unplugged while the big model was loading. Kernel logged "xHCI host not responding to stop endpoint command / HC died" at ~20 s, device gone from sysfs at 21.4 s. modeld then sat alive for the remaining 100 s at 100% CPU (~85% system time), never published modelV2, never cleared ChestnutLoading, never wrote ChestnutActive. UI showed "Big Model Loading / openpilot unavailable" the whole time instead of Big Model Failed + small model.

The host controller died rather than a clean disconnect, so libusb never returned an error. Only non-raising loop on the path is tinygrad bulk_wait (while tag in _async_pending: libusb_handle_events(None)), used by the 32 MB chunk uploads. Open question: the 60 s loader.join(BIG_MODEL_TIMEOUT) should have moved the main thread on and didn't; needs a stack next time.