Auto-load profiles were not applied after reboot due to a race condition: the daemon starts before the NVIDIA driver is fully initialized, causing init_nvapi() to fail instantly.
Two bugs:\n\n1. init_nvapi() called sys.exit(1) directly, which raises SystemExit — not caught by except Exception\n2. No retry logic around NvAPI initialization\n\nFix:\n- init_nvapi() now raises RuntimeError so callers can handle the failure\n- run_autoload() retries NvAPI init up to 16 times (2s interval, 32s total wait)
Auto-load profiles were not applied after reboot due to a race condition: the daemon starts before the NVIDIA driver is fully initialized, causing `init_nvapi()` to fail instantly.
**Two bugs:**\n\n1. `init_nvapi()` called `sys.exit(1)` directly, which raises `SystemExit` — not caught by `except Exception`\n2. No retry logic around NvAPI initialization\n\n**Fix:**\n- `init_nvapi()` now raises `RuntimeError` so callers can handle the failure\n- `run_autoload()` retries NvAPI init up to 16 times (2s interval, 32s total wait)
init_nvapi() previously called sys.exit(1) directly, which raised
SystemExit (uncaught by except Exception). The autoload subprocess
would die instantly if the NVIDIA driver wasn't fully loaded at boot.
- Raise RuntimeError from init_nvapi() so callers can handle failures
- Add 16-attempt retry loop (2s interval, 32s total) in run_autoload()
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Auto-load profiles were not applied after reboot due to a race condition: the daemon starts before the NVIDIA driver is fully initialized, causing
init_nvapi()to fail instantly.Two bugs:\n\n1.
init_nvapi()calledsys.exit(1)directly, which raisesSystemExit— not caught byexcept Exception\n2. No retry logic around NvAPI initialization\n\nFix:\n-init_nvapi()now raisesRuntimeErrorso callers can handle the failure\n-run_autoload()retries NvAPI init up to 16 times (2s interval, 32s total wait)✅ No issues found — changes look consistent with the stated intent. Ready to be merged.