The call to XInitThreads is necessary to avoid issues with Xlib when running 3D graphics stuff via Vulkan inside ImageJ, as e.g. required by SciView. The call is done dynamically via dlopen/dlsym to avoid problems when running e.g. on headless machines or machines that do not have X11 installed.
I have added the call for the moment to main(), I'm happy to move it if there's better locations for it.
The call to XInitThreads is necessary to avoid issues with Xlib when running 3D graphics stuff via Vulkan inside ImageJ, as e.g. required by SciView. The call is done dynamically via
dlopen
/dlsym
to avoid problems when running e.g. on headless machines or machines that do not have X11 installed.I have added the call for the moment to
main()
, I'm happy to move it if there's better locations for it.