Skip to content

Fix color usage in Debug GUI (avoid ambiguous static initialization order)#5849

Merged
davidrohr merged 1 commit intoAliceO2Group:devfrom
davidrohr:dev_pull_request2
Apr 2, 2021
Merged

Fix color usage in Debug GUI (avoid ambiguous static initialization order)#5849
davidrohr merged 1 commit intoAliceO2Group:devfrom
davidrohr:dev_pull_request2

Conversation

@davidrohr
Copy link
Copy Markdown
Collaborator

@ktf: this fixes the issue I mentioned in #5845
The problem is that you have static variables in different compilation units that depend on each other in the initialization, but the order is not well defined. This fix solves that using references, which is not nice but it fixes the current problem.

There is a very similar problem also in Framework/GUISupport/src/FrameworkGUIDataRelayerUsage.cxx. Not sure if you want to apply the same fix there, or reorganize the PaletteHelpers, since this is a bit error-prone.

@davidrohr davidrohr requested a review from a team as a code owner April 1, 2021 19:10
@ktf
Copy link
Copy Markdown
Member

ktf commented Apr 1, 2021

We should probably move everything to PaletteHelpers, indeed. If this fixes your problem we can merge it, though.

@davidrohr davidrohr merged commit e500637 into AliceO2Group:dev Apr 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants