rbonghi / jetson_stats

📊 Simple package for monitoring and control your NVIDIA Jetson [Orin, Xavier, Nano, TX] series
https://rnext.it/jetson_stats
GNU Affero General Public License v3.0
2.14k stars 261 forks source link

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

Closed project2go closed 2 months ago

project2go commented 4 months ago

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'

evildeeds commented 4 months ago

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

gztong commented 4 months ago

This should be fixed by https://github.com/rbonghi/jetson_stats/commit/db70066fefe6b1fce92f7ce6a0a580797349dae0

manbehindthemadness commented 3 months ago

I can confirm that this is fixed be switching to the develop branch past https://github.com/rbonghi/jetson_stats/commit/db70066fefe6b1fce92f7ce6a0a580797349dae0

rbonghi commented 2 months ago

Fixed with the new release. Please update to 4.2.9

sudo pip3 install -U jetson-stats