rbonghi / jetson_stats

📊 Simple package for monitoring and control your NVIDIA Jetson [Orin, Xavier, Nano, TX] series

Home Page:https://rnext.it/jetson_stats

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

crash on start when run under console only without gui and mouse

project2go opened this issue · comments

Describe the bug

Jetson 6 on AGX orin, disable the GUI and running on SSH
seems mouse curses related issue.

if you run jtop and keep pressing some keyboard keys, it will start the jtop as normal, but if you don't press key fast enough, it will crash

To Reproduce

Steps to reproduce the behavior:

  1. sudo systemctl set-default multi-user.target
  2. reboot
  3. jtop

Error

jtop
Traceback (most recent call last):
File "/usr/local/bin/jtop", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.10/dist-packages/jtop/main.py", line 160, in main
curses.wrapper(JTOPGUI, jetson, pages, init_page=args.page,
File "/usr/lib/python3.10/curses/init.py", line 94, in wrapper
return func(stdscr, *args, **kwds)
File "/usr/local/lib/python3.10/dist-packages/jtop/gui/jtopgui.py", line 100, in init
self.run(loop, seconds)
File "/usr/local/lib/python3.10/dist-packages/jtop/gui/jtopgui.py", line 129, in run
self.draw()
File "/usr/local/lib/python3.10/dist-packages/jtop/gui/jtopgui.py", line 143, in draw
page.draw(self.key, self.mouse)
File "/usr/local/lib/python3.10/dist-packages/jtop/gui/pall.py", line 147, in draw
line_counter += self.process_table.draw(line_counter, 0, width, height_free_area, key, mouse)
AttributeError: 'ALL' object has no attribute 'process_table'

This looks to be the same backtrace as #499 and #493

This should be fixed by db70066

I can confirm that this is fixed be switching to the develop branch past db70066