Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Memory related crash on FreeBSD #964

Open
MikeJakubik opened this issue Nov 10, 2024 · 0 comments
Open

[BUG] Memory related crash on FreeBSD #964

MikeJakubik opened this issue Nov 10, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@MikeJakubik
Copy link

MikeJakubik commented Nov 10, 2024

Hello,

bpytop is an awesome monitoring app, thanks for making it. However i frequently get these crashes across all FreeBSD versions, kind of a bummer.

[A clear and concise description of what the bug is.]

To Reproduce

Start compiling chromium (or any ginormous chunk of code) in one term, run bpytop in another, watch is crash a few time.

[Steps to reproduce the behavior:]

Explained above.

[A clear and concise description of what you expected to happen.]

Never a crash.

[If applicable, add screenshots to help explain your problem.]

Here is the log of the error:

OSError: [Errno 12] Cannot allocate memory (originated from sysctl(KERN_PROC_ARGS))
07/11/24 (10:28:00) | WARNING: Exiting with errorcode (1). Runtime 0:03:27

07/11/24 (10:28:29) | ERROR: Data collection thread failed with exception: [Errno 12] Cannot allocate memory (originated from sysctl(KERN_PROC_ARGS))
Traceback (most recent call last):
File "/usr/local/bin/bpytop", line 2958, in _runner
collector._collect()
File "/usr/local/bin/bpytop", line 3728, in _collect
for p in sorted(psutil.process_iter(cls.p_values + (["memory_info"] if CONFIG.proc_mem_bytes else []), err), key=lambda p: eval(sort_cmd), reverse=reverse):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/psutil/__init__.py", line 1537, in process_iter
proc.info = proc.as_dict(attrs=attrs, ad_value=ad_value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/psutil/__init__.py", line 579, in as_dict
ret = meth()
^^^^^^
File "/usr/local/lib/python3.11/site-packages/psutil/__init__.py", line 745, in cmdline
return self._proc.cmdline()
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/psutil/_psbsd.py", line 604, in wrapper
return fun(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/psutil/_psbsd.py", line 724, in cmdline
return cext.proc_cmdline(self.pid)

Info (please complete the following information):
$ bpytop -v
bpytop version: 1.0.68
psutil version: 6.1.0
FreeBSD fbsd15.localdomain 15.0-CURRENT FreeBSD 15.0-CURRENT #0 main-40097cd67c: Wed Nov 6 11:45:29 EST 2024 [email protected]:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64
Konsole
Hack 13pt
Python 3.11.10

Additional context

I have plenty of memory.

last pid: 86855;  load averages:    0.08,    0.16,    1.45                                                                                                           up 0+02:18:40  07:35:45
76 processes:  1 running, 75 sleeping
CPU:  0.1% user,  0.0% nice,  0.1% system,  0.0% interrupt, 99.8% idle
Mem: 962M Active, 4569M Inact, 130M Laundry, 26G Wired, 56K Buf, 30G Free
ARC: 8088M Total, 5683M MFU, 1914M MRU, 3840K Anon, 26M Header, 454M Other
6647M Compressed, 7893M Uncompressed, 1.19:1 Ratio
@MikeJakubik MikeJakubik added the bug Something isn't working label Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants