Skip to content

Fix HUD connection race#223

Open
alxvth wants to merge 4 commits intomasterfrom
feature/FixHUDRace
Open

Fix HUD connection race#223
alxvth wants to merge 4 commits intomasterfrom
feature/FixHUDRace

Conversation

@alxvth
Copy link
Contributor

@alxvth alxvth commented Feb 6, 2026

In ScatterplotPlugin::init() we connect the Dataset<Points>::changed signal from _positionDataset twice, to both updateData() and updateHeadsUpDisplay() - this seems to result in a different call order on linux with gcc compared to Windows with MSVC, which ultimately yields a memory issue and causes a crash when loading data into the scatterplot. This PR bundles the calls to force consistent calling order.

Also _positionDataset's signal, Dataset<>::guiNameChanged is connected twice to updateHeadsUpDisplay(), we only need to do this once.

To prevent duplication I refactored init() such that all the connections are grouped.

@alxvth alxvth requested a review from ThomasKroes February 6, 2026 15:13
@alxvth
Copy link
Contributor Author

alxvth commented Feb 6, 2026

@sbvis does this help with #204?

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