-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
[io] savePCDFileBinary causes SEH exception on Windows #5674
Labels
Comments
Thanks for reporting this. The problem seems to be that |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When trying to save a PCD file with at least 375 000 000 points (PointXYZ), I get an SEH exception with code 0xc0000005.
Expected behavior
Saved PCD file or proper exception thrown.
Also, I expect that this point cloud will be saved on my PC (with 64GB RAM, and the application takes about 6GB of memory).
Current Behavior
App crash with SEH exception.
To Reproduce
Generate
pcl::pointcloud<pcl::PointXYZ>
with 375000000 points, and save PCD binary file. Sample code:My Environment:
Possible Solution
I am not a Windows guy, but function MapViewOfFile() in line 174 may fail and return NULL. This case is not checked; it is assumed that
map
is always created successfully. Next, in line 198map
is accessed but contains NULL.The result of
MapViewOfFile()
should be checked, and a proper exception should be thrown in case of failure.Please consider adding my suggestion.
I would be grateful if you also debug why the PCD file is not saved successfully.
The text was updated successfully, but these errors were encountered: