-
-
Notifications
You must be signed in to change notification settings - Fork 534
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
get_all_params error (std::future_error: Promise already satisfied) #1785
Comments
Thanks for the issue @elbarto1980, and sorry that |
Thank you @julianoes for providing a fix so quickly! A few hours later..... Sorry for the multiple edits but I think I found what makes my code crash... I send a The following example should reproduce what happens:
Thank you |
Oh, a new twist on this? 🤔 Let's see. |
There was indeed another bug, thanks for the nice example to reproduce it. See: 5ce3a5c |
Thanks again for your help @elbarto1980. The minimal examples to reproduce this were very helpful, and allowed me to quickly pinpoint what was wrong! |
Glad to be of help! Thank you @julianoes for fixing it... it's working flawlessly now. |
Nice, yes I backported the fixes to v1.4.2, until v2.0.0 ships. |
Hi, I am running MAVSDK 1.4.0 on Ubuntu 20.04.
I am trying to get all PX4 params using the get_all_params() function and I noticed that the
prom.set_value(all_params);
line of code causes a segmentation fault. It happens every time, if the program does not terminate immediately after receiving the parameters list.The error I get is:
I think this issue might be somehow related to another issue ( #1527) that @julianoes fixed on September 2021.
Hopefully, these few following lines of code should be useful to reproduce the error:
Thank you!
The text was updated successfully, but these errors were encountered: