Skip to content

Fix snapshot null cmdline#462

Open
gitfool wants to merge 1 commit intoSyllo:masterfrom
gitfool:fix-snapshot
Open

Fix snapshot null cmdline#462
gitfool wants to merge 1 commit intoSyllo:masterfrom
gitfool:fix-snapshot

Conversation

@gitfool
Copy link
Copy Markdown

@gitfool gitfool commented Apr 11, 2026

Fixes #461. Verified with local build & test.

Before:

zsh❯ ./build/src/nvtop -s
[
  {
   "device_name": "Apple M2 Max",
   "gpu_clock": null,
   "mem_clock": null,
   "temp": null,
   "fan_speed": "CPU Fan",
   "power_draw": null,
   "gpu_util": "0%",
   "encode_decode": null,
   "mem_util": "10%",
   "mem_total": "68719476736",
   "mem_used": "7150174208",
   "mem_free": "61569302528",
   "processes" : [
     {
       "pid": "609",
[1]    69654 segmentation fault  ./build/src/nvtop -s

After:

zsh❯ ./build/src/nvtop -s
[
  {
   "device_name": "Apple M2 Max",
   "gpu_clock": null,
   "mem_clock": null,
   "temp": null,
   "fan_speed": "CPU Fan",
   "power_draw": null,
   "gpu_util": "0%",
   "encode_decode": null,
   "mem_util": "10%",
   "mem_total": "68719476736",
   "mem_used": "7142440960",
   "mem_free": "61577035776",
   "processes" : [
     {
       "pid": "609",
       "cmdline": null,
       "kind": "graphic & compute",
       "user": "root",
       "gpu_usage": null,
       "gpu_mem_bytes_alloc": null,
       "gpu_mem_usage": null,
       "encode_decode": null
     },
     {
       "pid": "610",
       "cmdline": null,
       "kind": "graphic & compute",
       "user": "_windowserver",
       "gpu_usage": null,
       "gpu_mem_bytes_alloc": null,
       "gpu_mem_usage": null,
       "encode_decode": null
     },
     {
       "pid": "610",
       "cmdline": null,
       "kind": "graphic & compute",
       "user": "_windowserver",
       "gpu_usage": null,
       "gpu_mem_bytes_alloc": null,
       "gpu_mem_usage": null,
       "encode_decode": null
     },
     {
       "pid": "609",
       "cmdline": null,
       "kind": "graphic & compute",
       "user": "root",
       "gpu_usage": null,
       "gpu_mem_bytes_alloc": null,
       "gpu_mem_usage": null,
       "encode_decode": null
     },
     {
       "pid": "1114",
       "cmdline": "/System/Library/CoreServices/AccessibilityUIServer.app/Contents/MacOS/AccessibilityUIServer",
       "kind": "graphic & compute",
       "user": "sean",
       "gpu_usage": null,
       "gpu_mem_bytes_alloc": null,
       "gpu_mem_usage": null,
       "encode_decode": null
     },
     ...
     {
       "pid": "79737",
       "cmdline": "./build/src/nvtop -s",
       "kind": "graphic & compute",
       "user": "sean",
       "gpu_usage": null,
       "gpu_mem_bytes_alloc": null,
       "gpu_mem_usage": null,
       "encode_decode": null
     }
   ]
  }
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Snapshot mode crashes on macOS

1 participant