[open_nurbs] official package crash on windows 10
Describe the bug
official package crash on windows 10
Context
run exe inside official installed package, crash
Expected behavior
the exe should run correctly
Current Behavior
pcl_bilateral_upsampling.exe crash with errror 0xc0000142
To Reproduce
step1: install official package step2: copy vtk dll to bin step3: install OpenNI2 and copy dll to bin step4: run pcl_bilateral_upsampling.exe, crash with errror 0xc0000142
Screenshots/Code snippets
Your Environment (please complete the following information):
- OS: windows10
- Compiler: official prebuilt
- PCL Version 1.15.0
Possible Solution
-
there are many global variable initialized before main, crash at global variable init, (diagnosed by my debugger)
Suggesion: modify all static or global variable to delay initialzed, wrapped inside function. but i think this is not root cause.
-
root cause is: old cpu not support AVX, but prebuilt open nurbs code with AVX
Additional context
windows 11 run correctly.
Many users have older CPUs that do not support AVX, so unchecking AVX during the build works.
Perhaps the official package should provide two editions or detect CPU capabilities dynamically.
I think this issue can be closed.