-
-
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
[tools] pcl_visualizer segfaults when selecting double channel for coloring #6186
Comments
actually not sure if this is related to the double type, it happens too with an std::uint64_t type. maybe its just the 6th channel thats the issue? |
Inside
|
Hi, yes seems like that currently only works with a float type. Even types that have the same size as a float (like uint32_t) would not work since they are not cast properly. I guess we should at least add a check whether the field is of type float or not. Making it actually work with other types would be more difficult and need a switch-case. The passthrough filter has a similar situation; it makes sure that the field is a float before computing. |
Describe the bug
When a pointcloud has an
8 F
field, selecting this channel for display segfaults with this report:Context
The point cloud was made from a custom point type:
Expected behavior
Viewer displays the
double
field correctlyCurrent Behavior
Viewer crashes
To Reproduce
d257a89130386c3356fba8ba0f04e8e2089704f3
.pcl_viewer
on attached point cloud6
to visualize time channelYour Environment (please complete the following information):
Possible Solution
Fix vtk display, or error when double fields are used
Additional context
2024-11-27T13_32_45_939Z.pcd.zip
The text was updated successfully, but these errors were encountered: