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
[pcl_registration] ICP align broken in Release in new PCL version #6011
Comments
Hi, |
@LuukvandenBent Please try using CMake then ( https://pcl.readthedocs.io/projects/tutorials/en/master/using_pcl_pcl_config.html ). There have been cases where a misconfiguration in VS led to this kind of problem (in one case a user selected debug libraries where release libraries should have been used). |
Thank you for responding, i do not want to use CMake for this project nor should PCL be broken when not using it. It also does not make sense that an older version does work, so my guess is something got broken in the meantime. |
@LuukvandenBent Please try building the above code with CMake nonetheless. This does not necessarily mean that you have to use CMake in your project forever. It is for now simply a way to debug the problem, that is, to rule out that a misconfiguration in VS causes the problem. Alternatively, you can wait until I have the time to build your code on Windows using CMake, but I can't say when that will be the case. My suggestion that you try CMake was simply a way find the solution faster. |
@LuukvandenBent I tested your code on Windows with CMake, it ran fine in both debug and release configuration. One thing you can check is whether you have SSE and AVX(2) enabled for your project in Visual Studio. CMake automatically enables those as the all-in-one installer was also built with them enabled. |
Thank you for the trouble. I do not really have the time right now to test, so if you are sure it is not something inside of PCL then i can close the issue, since using an older version is ok for now. |
I see no evidence or reason to assume that the problem was caused by a bug in PCL. I am glad that PCL 1.11.1 works for you. |
I am trying to do a simple point-to-point ICP using the newest PCL 1.14 from https://github.com/PointCloudLibrary/pcl/releases. I am running on windows with MSVC2022. When i run in Debug mode the code works as expected, however when switching to Release mode i get the following error "Exception thrown at 0x00007FF9C4399E82 (pcl_registration.dll) in ICPTest.exe: 0xC0000005: Access violation reading location 0x0000000000000000." Which happens at registration.hpp on line 214 at deinitCompute().
My code is as follows:
I have tested on PCL 1.11.1 which works as expected also in Release mode.
The text was updated successfully, but these errors were encountered: