Skip to content

fix: patch-hub crashes when loading patches after b4 fails #142

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

Open
wants to merge 2 commits into
base: unstable
Choose a base branch
from

Conversation

ArthurPilone
Copy link

Seeking to fix #69, this first commit introduces a check to the function init_details_actions. We hoped to stop the crash described in #69 by throwing an Err and catching it in the handle_latest_patchsets fucntion before showing a popup to the user. For some still unkown reason, the TUI freezes and 'melts' after the popup is shown.

Co-developed-by: Bruno Stephan [email protected]
Co-developed-by: Andre de Lima [email protected]

Seeking to fix kworkflow#69, this commit introduces a check to the function
init_details_actions. We hoped to stop the crash described in kworkflow#69
by throwing an Err and catching it in the handle_latest_patchsets
fucntion before showing a popup to the user. For some still unkown
reason, the TUI freezes and 'melts' after the popup is shown.

Co-developed-by: Bruno Stephan <[email protected]>
Signed-off-by: Bruno Stephan <[email protected]>
Co-developed-by: Andre de Lima <[email protected]>
Signed-off-by: Andre de Lima <[email protected]>
Signed-off-by: Arthur Pilone <[email protected]>
@ArthurPilone
Copy link
Author

@davidbtadokoro and @lorenzoberts we'd really appreciate it if you could check out this bug our partial "fix" introduces. It seems to have something to do with the rendering or with the thread management. Try to reproduce the original bug from #69 with the patch accel-config/[Install test programs in /usr/lib].

Do you guys have any info or what exactly we should look after in order to fix this?

This commit fixes the previous one. The terminal
was unresponsive because the macro received an Err.

We created a new enum to test whether the init_details_action
function found a patch in the expected path. This enum is
used to test whether the file exists in the
handle_latest_patchsets function still using an Ok().

Fixes: kworkflow#69

Co-developed-by: Bruno Stephan <[email protected]>
Signed-off-by: Bruno Stephan <[email protected]>
Co-developed-by: Andre de Lima <[email protected]>
Signed-off-by: Andre de Lima <[email protected]>
Signed-off-by: Arthur Pilone <[email protected]>
@ArthurPilone
Copy link
Author

Fixed.

@ArthurPilone ArthurPilone marked this pull request as ready for review May 14, 2025 19:44
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.

1 participant