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.16k stars 263 forks source link

The jtop service stoped suddenly[JP5.1.2] #555

Closed iverson-fa closed 3 months ago

iverson-fa commented 3 months ago

Describe the bug

The jtop service stoped suddenly.

To Reproduce

Probabilistic occurrence

Screenshots

If applicable, add screenshots to help explain your problem.

Expected behavior

Jtop works properly.

Board

Software part of jetson-stats 4.2.8 - (c) 2024, Raffaello Bonghi Model: Jetson AGX Orin Developer Kit - Jetpack 5.1.2 [L4T 35.4.1] NV Power Mode[0]: MAXN Serial Number: [XXX Show with: jetson_release -s XXX] Hardware:

Log from jtop.service

Jul 24 18:54:24 home jtop[438247]: [CRITICAL] jtop.core.timer_reader - Exception in 'timer_reader thread': [Errno 3] No such process Jul 24 18:54:26 home jtop[438247]: [ERROR] jtop.service - Error subprocess [Errno 3] No such process Jul 24 18:54:26 home jtop[438247]: Traceback (most recent call last): Jul 24 18:54:26 home jtop[438247]: File "/usr/local/lib/python3.8/dist-packages/jtop/service.py", line 328, in run Jul 24 18:54:26 home jtop[438247]: control = self.q.get(timeout=timeout) Jul 24 18:54:26 home jtop[438247]: File "/usr/lib/python3.8/multiprocessing/queues.py", line 108, in get Jul 24 18:54:26 home jtop[438247]: raise Empty Jul 24 18:54:26 home jtop[438247]: _queue.Empty Jul 24 18:54:26 home jtop[438247]: During handling of the above exception, another exception occurred: Jul 24 18:54:26 home jtop[438247]: Traceback (most recent call last): Jul 24 18:54:26 home jtop[438247]: File "/usr/local/lib/python3.8/dist-packages/jtop/service.py", line 451, in run Jul 24 18:54:26 home jtop[438247]: if self._timer_reader.close(): Jul 24 18:54:26 home jtop[438247]: File "/usr/local/lib/python3.8/dist-packages/jtop/core/timer_reader.py", line 75, in close Jul 24 18:54:26 home jtop[438247]: self._error_status() Jul 24 18:54:26 home jtop[438247]: File "/usr/local/lib/python3.8/dist-packages/jtop/core/timer_reader.py", line 90, in _error_status Jul 24 18:54:26 home jtop[438247]: raise ex_value Jul 24 18:54:26 home jtop[438247]: File "/usr/local/lib/python3.8/dist-packages/jtop/core/timer_reader.py", line 46, in _timer_callback Jul 24 18:54:26 home jtop[438247]: self._callback() Jul 24 18:54:26 home jtop[438247]: File "/usr/local/lib/python3.8/dist-packages/jtop/service.py", line 605, in jtop_stats Jul 24 18:54:26 home jtop[438247]: data = self.jtop_decode() Jul 24 18:54:26 home jtop[438247]: File "/usr/local/lib/python3.8/dist-packages/jtop/service.py", line 569, in jtop_decode Jul 24 18:54:26 home jtop[438247]: total, table = self.processes.get_status() Jul 24 18:54:26 home jtop[438247]: File "/usr/local/lib/python3.8/dist-packages/jtop/core/processes.py", line 136, in get_status Jul 24 18:54:26 home jtop[438247]: table = [self.get_process_info(prc[0], prc[3], prc[2], uptime) for prc in table] Jul 24 18:54:26 home jtop[438247]: File "/usr/local/lib/python3.8/dist-packages/jtop/core/processes.py", line 136, in Jul 24 18:54:26 home jtop[438247]: table = [self.get_process_info(prc[0], prc[3], prc[2], uptime) for prc in table] Jul 24 18:54:26 home jtop[438247]: File "/usr/local/lib/python3.8/dist-packages/jtop/core/processes.py", line 94, in get_process_info Jul 24 18:54:26 home jtop[438247]: uid = int(cat(os.path.join('/proc', pid, 'loginuid'))) Jul 24 18:54:26 home jtop[438247]: File "/usr/local/lib/python3.8/dist-packages/jtop/core/common.py", line 110, in cat Jul 24 18:54:26 home jtop[438247]: return f.readline().rstrip('\x00') Jul 24 18:54:26 home jtop[438247]: ProcessLookupError: [Errno 3] No such process Jul 24 18:54:26 home jtop[438247]: Process JtopServer-1: Jul 24 18:54:26 home jtop[438247]: Traceback (most recent call last): Jul 24 18:54:26 home jtop[438247]: File "/usr/local/lib/python3.8/dist-packages/jtop/service.py", line 328, in run Jul 24 18:54:26 home jtop[438247]: control = self.q.get(timeout=timeout) Jul 24 18:54:26 home jtop[438247]: File "/usr/lib/python3.8/multiprocessing/queues.py", line 108, in get Jul 24 18:54:26 home jtop[438247]: raise Empty Jul 24 18:54:26 home jtop[438247]: _queue.Empty Jul 24 18:54:26 home jtop[438247]: During handling of the above exception, another exception occurred: Jul 24 18:54:26 home jtop[438247]: Traceback (most recent call last): Jul 24 18:54:26 home jtop[438247]: File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap Jul 24 18:54:26 home jtop[438247]: self.run() Jul 24 18:54:26 home jtop[438247]: File "/usr/local/lib/python3.8/dist-packages/jtop/service.py", line 466, in run Jul 24 18:54:26 home jtop[438247]: if self._timer_reader.close(timeout=TIMEOUT_SWITCHOFF): Jul 24 18:54:26 home jtop[438247]: File "/usr/local/lib/python3.8/dist-packages/jtop/core/timer_reader.py", line 75, in close Jul 24 18:54:26 home jtop[438247]: self._error_status() Jul 24 18:54:26 home jtop[438247]: File "/usr/local/lib/python3.8/dist-packages/jtop/core/timer_reader.py", line 90, in _error_status

rbonghi commented 3 months ago

Fixed with the new release. Please update to 4.2.9

sudo pip3 install -U jetson-stats