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] tree + info + filter = crash #21

Closed
bgkillas opened this issue Aug 4, 2020 · 11 comments
Closed

[BUG] tree + info + filter = crash #21

bgkillas opened this issue Aug 4, 2020 · 11 comments
Assignees
Labels
bug Something isn't working

Comments

@bgkillas
Copy link

bgkillas commented Aug 4, 2020

if i use tree and check information on something then use the filter seems to crash
04/08/20 (17:52:49) | ERROR: type NoneType doesn't define __round__ method Traceback (most recent call last): File "/usr/local/bin/bpytop", line 2449, in _collect_temps cls.cpu_temp_high, cls.cpu_temp_crit = round(entry.high), round(entry.critical) TypeError: type NoneType doesn't define __round__ method 04/08/20 (17:53:02) | ERROR: Data collection thread failed with exception: __init__() missing 1 required positional argument: 'pid' Traceback (most recent call last): File "/usr/local/bin/bpytop", line 2328, in _runner collector._collect() File "/usr/local/bin/bpytop", line 2931, in _collect if not c_pid in cls.processes: raise psutil.NoSuchProcess TypeError: __init__() missing 1 required positional argument: 'pid'

@bgkillas bgkillas added the bug Something isn't working label Aug 4, 2020
@drazil100
Copy link
Contributor

Seems tree is not a requirement. The bug is caused when you try to type a filter while the info pane is open.

@bgkillas
Copy link
Author

bgkillas commented Aug 5, 2020

seems i got it wrong
tree actually makes it better it seems
the problem seems to be if the process is not displayed in the proc list and that process info bar is opened it crashes

@bgkillas
Copy link
Author

bgkillas commented Aug 5, 2020

looking at the error log it makes sense
"TypeError: init() missing 1 required positional argument: 'pid'"
it wasent expecting to lose the pid ig since its not being killed its just not being shown something

@drazil100
Copy link
Contributor

I did additional testing. If the process you have the info open on is closed externally it also crashes.

@aristocratos
Copy link
Owner

This happens because I'm reusing values from the regular process list in the info box and if the filtering excludes the process in the info box it crashes...

Have added a check to re-fetch any missing values , will be in next update later today.

@aristocratos
Copy link
Owner

"TypeError: init() missing 1 required positional argument: 'pid'"

That was actually caused by me not including the pid when raising an exception for a killed process, which proved to be bad thinking even if had written it correct, since the process wasn't killed but just filtered out...

@aristocratos
Copy link
Owner

Also noticed another mistake in temperature collection from your error.log, although not critical, but will also be fixed in next update.

@aristocratos
Copy link
Owner

Fixed in v1.0.4

@bgkillas
Copy link
Author

bgkillas commented Aug 5, 2020

dident seem to fix it for me
what i did both tree and non tree
select say Web Content (firefox) hit enter for info hit f to search then type anything besides "Web Content" or what ever process name you chose

@aristocratos
Copy link
Owner

I meant

Fixed in v1.0.5

:)

@bgkillas
Copy link
Author

bgkillas commented Aug 5, 2020

ah yes of course

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

3 participants