-
Notifications
You must be signed in to change notification settings - Fork 514
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
BUG: Update VTK to to fix vtkSMPToolsAPI static initialization order issue #7453
BUG: Update VTK to to fix vtkSMPToolsAPI static initialization order issue #7453
Conversation
The topic has been locally checkout on our Linux, macOS and Windows factories. Once build and tests are confirmed to be working, I will follow up. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whew! 👍
Update related to build and testing of this pull request:
On the three factories the branch corresponding to this pull request was checked out and the Slicer project rebuilt from the top-level. "factory" describes the build machine used to build and test the official Slicer packages. macOS testing
Linux testingThis is the only platform where I explicitly indicate the branch is checked out and the project rebuilt.
then
Windows testing⏳ In progress... |
|
I am further improving the VTK patch to also ensures the statics used in the each backend are properly handled. |
…issue This addresses a crash related to the static initialization order 'fiasco' in vtkSMPToolsAPI. It ensures proper deletion of the vtkSMPToolsAPI singleton once the last translation unit referencing it has been unloaded. It also ensures backend-specific statics are properly initialized. when the first translation unit is loaded. This update ensures that the SMP backend is cleaned up at the appropriate time, fixing the following macOS tests that started to fail following commit 28dca75 (ENH: Enable TBB as the default VTK SMP implementation on all platforms): * `py_nomainwindow_SegmentationWidgetsTest1` * `py_sceneImport2428` * `py_SegmentStatistics` * `py_UtilTest` List of changes: $ git shortlog 4bfb0f049a..46201478cd --no-merges Jean-Christophe Fillion-Robin (3): [Backport MR-10751] BUG: Resolve crash by fixing vtkSMPToolsAPI static initialization order issue [Backport MR-10751] ENH: Simplify vtkSMPToolsAPIInitialize managing pointer and counter locally [Backport MR-10751] BUG: Resolve crash by fixing initialization of backend-specific statics
c29e59a
to
650cae1
Compare
Et voila, after updating Footnotes |
This addresses a crash related to the static initialization order 'fiasco' in
vtkSMPToolsAPI
. It ensures proper deletion of thevtkSMPToolsAPI
singleton once the last translation unit referencing it has been unloaded.This update ensures that the SMP backend is cleaned up at the appropriate time, fixing the following macOS tests that started to fail following commit 28dca75 (ENH: Enable TBB as the default VTK SMP implementation on all platforms):
py_nomainwindow_SegmentationWidgetsTest1
py_sceneImport2428
py_SegmentStatistics
py_UtilTest
List of changes:
Related