Skip to content

Segfault on gantry angle#993

Merged
chdinh merged 1 commit into
mne-tools:stagingfrom
ag-fieldline:fl_v2.2.0
May 7, 2026
Merged

Segfault on gantry angle#993
chdinh merged 1 commit into
mne-tools:stagingfrom
ag-fieldline:fl_v2.2.0

Conversation

@ag-fieldline

Copy link
Copy Markdown
Contributor

Segfault when opening FIF files saved from MNE Python. Gantry angle is saved as FIFFT_FLOAT by MNE Python and as FIFFT_INT by mne-cpp.

…s saved as FIFFT_FLOAT by MNE Python and as FIFFT_INT by mne-cpp

@chdinh chdinh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution! This is a real-world interop bug — MNE-Python writes FIFF_GANTRY_ANGLE as FIFFT_FLOAT while mne-cpp expected FIFFT_INT, leading to a segfault. The type-guarded dispatch is exactly the right fix. Merging.

@chdinh chdinh merged commit 63f3c68 into mne-tools:staging May 7, 2026
10 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.

2 participants