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

Loadpoint: fix race condition accessing soc estimator (#16180) #16194

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

jennes
Copy link
Contributor

@jennes jennes commented Sep 18, 2024

Fix #16180

It might not be ideal since a now soon-to-not-exist socEstimator may be updated, but the alternative would have been to have mutexes.
Since the bug seems to be rather esoteric, the risk of showing "old" information for a short period of time seems to be acceptable. It should be better than a hard crash in any case.

With that patch applied I couldn't provoke a crash anymore but since I don't fully understand the code paths of evcc (yet)…

@andig andig changed the title hopefully fix race condition (#16180) Loadpoint: fix race condition accessing soc estimator (#16180) Sep 18, 2024
@andig
Copy link
Member

andig commented Sep 18, 2024

Klasse, auf den Fix bin ich gar nicht gekommen!

@andig andig merged commit f029779 into evcc-io:master Sep 18, 2024
6 checks passed
@GrimmiMeloni
Copy link
Collaborator

Indeed. Nice catch @jennes !

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.

evcc may crash with a segfault when switching cars on a loadpoint
3 participants