You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Disabling the NPROC column ("Display threads or programs" / j shortcut) crashes the cli for me.
Additionally my terminal is kinda broken afterwards (scrolling doesn't work anymore, cursor and input isn't shown anymore, and some other things)
To Reproduce
Steps to reproduce the behavior:
Start Glances without any ootions
Press the key 'j' (shortcut for "Display threads or programs")
Freeze for a bit then crash
Expected behavior
n/a
Screenshots
No sreenshot, i have the traceback printed to stderr instead:
Traceback (most recent call last):
File "/usr/bin/glances", line 33, in <module>
sys.exit(load_entry_point('Glances==4.0.5', 'console_scripts', 'glances')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/glances/__init__.py", line 173, in main
start(config=core.get_config(), args=core.get_args())
File "/usr/lib/python3/dist-packages/glances/__init__.py", line 121, in start
mode.serve_forever()
File "/usr/lib/python3/dist-packages/glances/standalone.py", line 181, in serve_forever
while self.__serve_once():
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/glances/standalone.py", line 153, in __serve_once
ret = not self.screen.update(self.stats, duration=adapted_refresh)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/glances/outputs/glances_curses.py", line 1186, in update
self.flush(stats, cs_status=cs_status)
File "/usr/lib/python3/dist-packages/glances/outputs/glances_curses.py", line 1167, in flush
self.display(stats, cs_status=cs_status)
File "/usr/lib/python3/dist-packages/glances/outputs/glances_curses.py", line 636, in display
__stat_display = self.__get_stat_display(stats, layer=cs_status)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/glances/outputs/glances_curses.py", line 612, in __get_stat_display
ret[p] = stats.get_plugin(p).get_stats_display(args=self.args, max_width=plugin_max_width)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/glances/plugins/plugin/model.py", line 918, in get_stats_display
ret = {'display': display_curse, 'msgdict': self.msg_curse(args), 'align': align_curse}
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/glances/plugins/processlist/__init__.py", line 545, in msg_curse
ret.extend(self.get_process_curses_data(process, position == args.cursor_position, args))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/glances/plugins/processlist/__init__.py", line 461, in get_process_curses_data
ret.append(self._get_process_curses_time(p, selected, args))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/glances/plugins/processlist/__init__.py", line 329, in _get_process_curses_time
user_system_time = p['cpu_times']['user'] + p['cpu_times']['system']
~~~~~~~~~~~~~~^^^^^^^^
KeyError: 'user
Environement (please complete the following information)
lsb_release -a:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.10
Release: 24.10
Codename: oracular
The version from pip doesn't have the issue.
But, before trying that I made the following recording to illustrate the issue so have a look if you want to:
Describe the bug
Disabling the NPROC column ("Display threads or programs" / j shortcut) crashes the cli for me.
Additionally my terminal is kinda broken afterwards (scrolling doesn't work anymore, cursor and input isn't shown anymore, and some other things)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
n/a
Screenshots
No sreenshot, i have the traceback printed to stderr instead:
Environement (please complete the following information)
lsb_release -a:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.10
Release: 24.10
Codename: oracular
glances -V:
Glances version: 4.0.5
Glances API version: 4
PsUtil version: 5.9.8
Log file: /home/_____/.local/share/glances/glances.log
to install:
sudo apt install glances
glances --issue:
Additional context
n/a
You can also pastebin:
The text was updated successfully, but these errors were encountered: