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

Calamares crashes when calling setprogress() #1912

Closed
dalto8 opened this issue Mar 30, 2022 · 3 comments
Closed

Calamares crashes when calling setprogress() #1912

dalto8 opened this issue Mar 30, 2022 · 3 comments

Comments

@dalto8
Copy link
Contributor

dalto8 commented Mar 30, 2022

Describe the bug
When a Python modules calls libcalamares.job.setprogress() too quickly the application crashes.

To Reproduce
Steps to reproduce the behavior:
Run this code:

while True:
    libcalamares.job.setprogress(0)

Expected behavior
Instead of crashing, it would be preferable to set the progress amount/message.

@adriaandegroot
Copy link
Contributor

Confirmed (this is a dup of something, related to crashes in the packages module when pacman progress-reporting is enabled, isn't it?) Easy to reproduce, although replacing the while with something like for r in range(100000) doesn't trigger it for me.

@dalto8
Copy link
Contributor Author

dalto8 commented Apr 9, 2022

this is a dup of something, related to crashes in the packages module when pacman progress-reporting is enabled, isn't it?

It is definitely the same issue that has been discussed elsewhere. I opened this because I didn't think we had an open issue to track it.

@adriaandegroot
Copy link
Contributor

With pybind11, this stress test passes, with Boost, it crashes as reported. Closing with "we should be using pybind11 in future".

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

No branches or pull requests

2 participants