mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 09:26:43 +00:00
nvidia_video_memory ran `nvidia-smi` with Command::output(), which has no deadline. It runs on the UI thread at startup, under the video-memory cache lock, so a driver that never answers the query kept the window from opening. It now runs with a 2 s deadline (stdout read on a helper thread, try_wait polling), and a late process is killed and reaped on a detached thread. parse_nvidia_smi took the first line naming the vendor/device id. Two cards of one model with different memory (`0x2C0510DE, 16303` then `0x2C0510DE, 8192`) gave 16 GB though wgpu may be on the 8 GB one; it now takes the smallest. Co-authored-by: Vishnu Vardhan Varma Byrraju <112673081+VishnuByrraju@users.noreply.github.com> Co-authored-by: Khawar Zamman Wani <28915582+wanikhawar@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>