[PCL visualizer] updatePointCloud() Exception thrown Access violation reading location #4278
Labels
kind: bug
Type of issue
module: visualization
needs: testing
Specify why not closed/merged yet
platform: windows
Describe the bug
I was following this tutorial:
https://pcl.readthedocs.io/projects/tutorials/en/latest/interactive_icp.html?highlight=icp
So I copied, pasted and compiled the code in: interactive_icp.cpp
The code is compiled correctly and when I run it, I can see the console and the visualization window with the point clouds displayed correctly. While the programm is running, as soon as I press the space bar to let the ICP algorithm iterate, I get the following error:
Exception thrown at 0x00007FFEEDA1AC6F (ntdll.dll) in interactive_icp.exe: 0xC0000005: Access violation reading location
The error appears when the class method viewer.updatePointCloud() is called from main() in interactive_icp.cpp.
Visual Studio automatically opens pcl_visualizer.hpp and highlights the exception at function
scalars->GetRange (minmax);
called inside
in pcl_visualizer.hpp.
Context
Following this tutorial:
https://pcl.readthedocs.io/projects/tutorials/en/latest/interactive_icp.html?highlight=icp
Expected behavior
I expect that everything works fine since it is a simple and tested tutorial.
Current Behavior
I cannot iterate the ICP algorithm since the updatePointCloud() function aborts execution.
To Reproduce
Copy and paste, compile and run the code in:
https://pcl.readthedocs.io/projects/tutorials/en/latest/interactive_icp.html?highlight=icp
Screenshots/Code snippets
while loop contained in main() function in interactive_icp.cpp. Please notice the presence of viewer.updateCloudPoint()
Your Environment (please complete the following information):
Additional context
Once I get the error for the first time, if i hit the continue button on my Visual Studio interface I get:
Unhandled exception at 0x00007FFEEDA1AC6F (ntdll.dll) in interactive_icp.exe: 0xC0000005: Access violation reading location 0x0000000000000024.
The text was updated successfully, but these errors were encountered: