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

system-monitor-graph@rcassani: Add error handling for amdgpu #1407

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Lazar-Kovacevic
Copy link
Contributor

These commits add error checking to prevent desklet or cinnamon crashes when any of the used files are absent from the system, most often because the system doesn't have a gpu from AMD.

It also switches amdgpu functions to use async function calls for file reading, like the rest of the desklet.

@rcassani Sorry for submitting broken code last time, I did a lot more testing this time and it seems to be ok.

Lazar-Kovacevic and others added 5 commits February 12, 2025 19:02
This commit adds error checking to prevent desklet or cinnamon crashes
when any of the used files are absent from the system, most often
because the system doesn't have a gpu from AMD.

It also switches amdgpu functions to use async function calls for
file reading, like the rest of the desklet.
Last commit introduces a race condition that breaks amdgpu memory
readout, this fixes it
@rcassani
Copy link
Contributor

@Lazar-Kovacevic, please find my contribution to this development in the PR towards your master

Lazar-Kovacevic#1

@Lazar-Kovacevic
Copy link
Contributor Author

Done, from my testing everything works as intended @rcassani.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants