mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
XShow and XDisplay XDE require VISUALIZATION for correct work. In some scenario DRAWEXE can generate a duplicates of the internal static singletons. This means each dynamic library will have their own instance of the static singleton. Update all direct library loading to use the XDE plugin mechanism. This will ensure that the XDE plugin is loaded only once and that the correct instance is used. Originally issue is reproduced only Linux with dlopen with "RTLD_LAZY". Can be resolved additionally adding "RTLD_LAZY | RTLD_GLOBAL" for dlopen