Skip to content

Don't crash if FMUs log with category=NULL#797

Merged
davidhjp01 merged 1 commit into
masterfrom
bugfix/796-logger-null-category
May 18, 2026
Merged

Don't crash if FMUs log with category=NULL#797
davidhjp01 merged 1 commit into
masterfrom
bugfix/796-logger-null-category

Conversation

@kyllingstad

Copy link
Copy Markdown
Member

This fixes #796.

We don't have any straightforward way to test this right now, since our test FMUs aren't easily modifiable. Perhaps @SSkjong, who discovered the issue, can test with the FMU that triggered it?

@kyllingstad kyllingstad requested a review from SSkjong October 21, 2025 08:55
@kyllingstad kyllingstad self-assigned this Oct 21, 2025
@kyllingstad kyllingstad added the bug Something isn't working label Oct 21, 2025
@SSkjong

SSkjong commented Oct 21, 2025

Copy link
Copy Markdown

Ser bra ut dette.

@kyllingstad

Copy link
Copy Markdown
Member Author

I don't understand the build failures. I don't think they are related to this particular PR, and I can't reproduce them locally even using the same Conan version as that used in CI.

@kyllingstad

Copy link
Copy Markdown
Member Author

Tested locally with an fmiCpp FMU provided by @SSkjong and confirmed that it works:

image

@kyllingstad

Copy link
Copy Markdown
Member Author

@davidhjp01, @restenb, do any of you have any idea what is going on in the Linux CI builds here?

@davidhjp01

Copy link
Copy Markdown
Contributor

@davidhjp01, @restenb, do any of you have any idea what is going on in the Linux CI builds here?

I also had the same issue, try this changes:
62cd2ec

@kyllingstad

Copy link
Copy Markdown
Member Author

I think the fix in #801 should take care of the build issues here. I'll update as soon as that one is merged.

@kyllingstad kyllingstad force-pushed the bugfix/796-logger-null-category branch from 6459f24 to 75fff96 Compare May 18, 2026 07:35
@kyllingstad kyllingstad requested a review from davidhjp01 May 18, 2026 07:52
@kyllingstad

Copy link
Copy Markdown
Member Author

@davidhjp01, can we do a release after merging this? Other software depends on this fix.

@davidhjp01 davidhjp01 merged commit f41e8a5 into master May 18, 2026
20 checks passed
@davidhjp01 davidhjp01 deleted the bugfix/796-logger-null-category branch May 18, 2026 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

libcosim crashes when FMUs log messages using a NULL category

3 participants