[BUG] Crash after running for couple of days
Author: johnibCreated Sep 25, 2025Updated Sep 25, 2025
Labelsbug
Describe the bug
bpytop crashed, referring me to an error.log file
To Reproduce
Run for long time (days..)
Expected behavior
Keep running.
Screenshots
Info (please complete the following information):
- bpytop version: 1.0.68
- psutil version: 5.9.8
- (Linux) Linux distribution and version:
- (OSX/FreeBSD) Os release version: macOS 15.6.1 (24G90)
- Terminal used: Warp
- Font used: Hack
- Python version, 3.13.7
Additional context
⎿ 05/02/25 (08:36:23) | ERROR: Data collection thread failed with exception: [Errno 12] Cannot allocate memory
Traceback (most recent call last):
File "/opt/homebrew/bin/bpytop", line 2958, in _runner
collector._collect()
~~~~~~~~~~~~~~~~~~^^
File "/opt/homebrew/bin/bpytop", line 3587, in _collect
io_all = psutil.net_io_counters(pernic=True)[cls.nic]
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/bpytop/1.0.68/libexec/lib/python3.13/site-packages/psutil/__init__.py", line 2166, in net_io_counters
rawdict = _psplatform.net_io_counters()
OSError: [Errno 12] Cannot allocate memory
05/02/25 (08:36:24) | WARNING: Exiting with errorcode (1). Runtime 2 days, 9:25:26
22/02/25 (22:53:06) | ERROR: Data collection thread failed with exception: [Errno 6] Device not configured
Traceback (most recent call last):
File "/opt/homebrew/bin/bpytop", line 2958, in _runner
collector._collect()
~~~~~~~~~~~~~~~~~~^^
File "/opt/homebrew/bin/bpytop", line 3567, in _collect
up_stat = psutil.net_if_stats()
File "/opt/homebrew/Cellar/bpytop/1.0.68/libexec/lib/python3.13/site-packages/psutil/__init__.py", line 2276, in net_if_stats
return _psplatform.net_if_stats()
~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/opt/homebrew/Cellar/bpytop/1.0.68/libexec/lib/python3.13/site-packages/psutil/_psosx.py", line 269, in net_if_stats
mtu = cext_posix.net_if_mtu(name)
OSError: [Errno 6] Device not configured
22/02/25 (22:53:07) | WARNING: Exiting with errorcode (1). Runtime 10:04:30
23/09/25 (13:58:41) | ERROR: Data collection thread failed with exception: [Errno 12] Cannot allocate memory
Traceback (most recent call last):
File "/opt/homebrew/bin/bpytop", line 2958, in _runner
collector._collect()
~~~~~~~~~~~~~~~~~~^^
File "/opt/homebrew/bin/bpytop", line 3587, in _collect
io_all = psutil.net_io_counters(pernic=True)[cls.nic]
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/bpytop/1.0.68/libexec/lib/python3.13/site-packages/psutil/__init__.py", line 2166, in net_io_counters
rawdict = _psplatform.net_io_counters()
OSError: [Errno 12] Cannot allocate memory
23/09/25 (13:58:41) | WARNING: Exiting with errorcode (1). Runtime 1:27:55
25/09/25 (10:55:35) | ERROR: Data collection thread failed with exception: [Errno 12] Cannot allocate memory
Traceback (most recent call last):
File "/opt/homebrew/bin/bpytop", line 2958, in _runner
collector._collect()
~~~~~~~~~~~~~~~~~~^^
File "/opt/homebrew/bin/bpytop", line 3587, in _collect
io_all = psutil.net_io_counters(pernic=True)[cls.nic]
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/bpytop/1.0.68/libexec/lib/python3.13/site-packages/psutil/__init__.py", line 2166, in net_io_counters
rawdict = _psplatform.net_io_counters()
OSError: [Errno 12] Cannot allocate memory
25/09/25 (10:55:35) | WARNING: Exiting with errorcode (1). Runtime 1 day, 18:27:49Source: aristocratos/bpytop