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

fail-fast fix for FMUs that crash #11230

Conversation

sturmk
Copy link
Contributor

@sturmk sturmk commented Sep 21, 2023

Related Issues

#11229

Purpose

If an FMU crashes in its internalEventUpdate routine, it tends to run into an infinite while loop.
This patch tries to fix this problem, such that the FMU actually is able to return "fmi2error" to its caller.

Approach

added a fail-fast exit condition to the offending while loop.

@mahge
Copy link
Contributor

mahge commented Sep 27, 2023

@sturmk Thank you for the fix!

@mahge mahge merged commit 865f737 into OpenModelica:master Sep 27, 2023
2 checks passed
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.

None yet

3 participants