Skip to content

After two days running the app crashes #83

@nicolasdanelon

Description

@nicolasdanelon

I'm sure the app isn't designed to run for two consecutive days, but if you're interested, it crashed after that time period. I'm on a MacBook Air M1 with 8GB of RAM.

Traceback (most recent call last):────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
  File "/opt/homebrew/lib/python3.10/site-packages/asitop/utils.py", line 19, in parse_powermetrics
    gpu_metrics_dict = parse_gpu_metrics(powermetrics_parse)
  File "/opt/homebrew/lib/python3.10/site-packages/asitop/parsers.py", line 138, in parse_gpu_metrics
    "active": int((1 - gpu_metrics["idle_ratio"])*100),
ValueError: cannot convert float NaN to integer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/homebrew/bin/asitop", line 8, in <module>
    sys.exit(main())
  File "/opt/homebrew/lib/python3.10/site-packages/asitop/asitop.py", line 183, in main
    ready = parse_powermetrics(timecode=timecode)
  File "/opt/homebrew/lib/python3.10/site-packages/asitop/utils.py", line 30, in parse_powermetrics
    gpu_metrics_dict = parse_gpu_metrics(powermetrics_parse)
  File "/opt/homebrew/lib/python3.10/site-packages/asitop/parsers.py", line 138, in parse_gpu_metrics
    "active": int((1 - gpu_metrics["idle_ratio"])*100),
ValueError: cannot convert float NaN to integer

~ took 2d0h47m44s

zsh --version
zsh 5.9 (arm64-apple-darwin24.0)

python3.10 --version
Python 3.10.18

macOS Sequoia 15.7.1
ghostty 1.2.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions