Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash zero division error #527

Open
deadmerc opened this issue Jun 4, 2024 · 1 comment
Open

Crash zero division error #527

deadmerc opened this issue Jun 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@deadmerc
Copy link

deadmerc commented Jun 4, 2024

Bug

Traceback (most recent call last):
  File "/usr/local/bin/jtop", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/jtop/__main__.py", line 160, in main
    curses.wrapper(JTOPGUI, jetson, pages, init_page=args.page,
  File "/usr/lib/python3.8/curses/__init__.py", line 105, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/local/lib/python3.8/dist-packages/jtop/gui/jtopgui.py", line 100, in __init__
    self.run(loop, seconds)
  File "/usr/local/lib/python3.8/dist-packages/jtop/gui/jtopgui.py", line 129, in run
    self.draw()
  File "/usr/local/lib/python3.8/dist-packages/jtop/gui/jtopgui.py", line 143, in draw
    page.draw(self.key, self.mouse)
  File "/usr/local/lib/python3.8/dist-packages/jtop/gui/pgpu.py", line 153, in draw
    chart.draw(self.stdscr, size_x, size_y, label=label_chart_gpu)
  File "/usr/local/lib/python3.8/dist-packages/jtop/gui/lib/common.py", line 72, in wrapped
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/jtop/gui/lib/chart.py", line 121, in draw
    self._plot_x_axis(stdscr, size_x, size_y, label=y_label)
  File "/usr/local/lib/python3.8/dist-packages/jtop/gui/lib/chart.py", line 170, in _plot_x_axis
    if ((point) / ceil(val)) % ten_sec == 0:
ZeroDivisionError: float modulo

To Reproduce

Steps to reproduce the behavior:

  1. run jtop
  2. push button arrow right

Expected behavior

Open GPU graph

Board

Output from jetson_release -v:

  • jetson-stats version: 4.2.6
  • P-Number: p3767-0003
  • Module: NVIDIA Jetson Orin Nano (8GB ram)
  • Jetpack: 5.1.3
  • L4T: 35.5.0
@deadmerc deadmerc added the bug Something isn't working label Jun 4, 2024
@rbonghi
Copy link
Owner

rbonghi commented Jul 25, 2024

I released the new jtop 4.2.9 let me know if fix this bug

sudo pip3 install -U jetson-stats

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants