Skip to content
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

PLY point clouds without a mesh crash the program #1917

Open
parkerlreed opened this issue Jan 16, 2025 · 2 comments
Open

PLY point clouds without a mesh crash the program #1917

parkerlreed opened this issue Jan 16, 2025 · 2 comments
Labels
source:VTK type:bug Something isn't working

Comments

@parkerlreed
Copy link

Describe the bug
When trying to open a PLY that is just a colored point cloud, F3D says there's no faces, but also crashes.

This is generated from RTAB-Map's default export options. RTAB-Map's viewer is also VTK so I believe this should work.

To Reproduce
Steps to reproduce the behavior:

  1. Open the file f3d dog.ply
  2. Observe crash

Expected behavior
A graceful exit at least (possibly supporting this type of PLY)

System Information:

  • OS: Arch Linux
  • GPU and GPU driver: 780M AMDGPU

F3D Information

F3D 3.0.0

F3D - A fast and minimalist 3D viewer
Version: 3.0.0-RC3-9-g8d72f2d0.
Build date: 2025-01-15 15:07:23.
Build system: Linux 64-bits.
Compiler: GNU 14.2.1.
Module ImGui: ON.
Module OpenEXR: ON.
Module Raytracing: ON.
VTK version: 9.4.1.
Copyright (C) 2019-2021 Kitware SAS.
Copyright (C) 2021-2024 Michael Migliore, Mathieu Westphal.
License BSD-3-Clause.

Additional context

[parker@parker-framework RTAB-Map]$ f3d dog.ply 
Warning:  Can't find property 'vertex_indices' in element 'face'
free(): double free detected in tcache 2
Aborted (core dumped)

Image

File

dog.zip

@mwestphal
Copy link
Contributor

Stack trace:

(gdb) bt
#0  0x00007ffff76a53f4 in ?? () from /usr/lib/libc.so.6
#1  0x00007ffff764c120 in raise () from /usr/lib/libc.so.6
#2  0x00007ffff76334c3 in abort () from /usr/lib/libc.so.6
#3  0x00007ffff7634354 in ?? () from /usr/lib/libc.so.6
#4  0x00007ffff76af765 in ?? () from /usr/lib/libc.so.6
#5  0x00007ffff76b1e1f in ?? () from /usr/lib/libc.so.6
#6  0x00007ffff76b45ce in free () from /usr/lib/libc.so.6
#7  0x00007ffff74e2426 in vtkPLY::ply_close (plyfile=0x5555561f2c40) at /home/glow/dev/vtk/vtk1/src/IO/PLY/vtkPLY.cxx:1365
#8  0x00007ffff74ead2a in vtkPLYReader::RequestData (this=0x555555c9bf60, outputVector=0x55555617e310) at /home/glow/dev/vtk/vtk1/src/IO/PLY/vtkPLYReader.cxx:622
#9  0x00007ffff1ebe248 in vtkPolyDataAlgorithm::ProcessRequest (this=0x555555c9bf60, request=0x5555561e9ea0, inputVector=0x0, outputVector=0x55555617e310) at /home/glow/dev/vtk/vtk1/src/Common/ExecutionModel/vtkPolyDataAlgorithm.cxx:76
#10 0x00007ffff1e8e445 in vtkExecutive::CallAlgorithm (this=0x55555617f2c0, request=0x5555561e9ea0, direction=1, inInfo=0x0, outInfo=0x55555617e310) at /home/glow/dev/vtk/vtk1/src/Common/ExecutionModel/vtkExecutive.cxx:723
#11 0x00007ffff1e7fe5e in vtkDemandDrivenPipeline::ExecuteData (this=0x55555617f2c0, request=0x5555561e9ea0, inInfo=0x0, outInfo=0x55555617e310) at /home/glow/dev/vtk/vtk1/src/Common/ExecutionModel/vtkDemandDrivenPipeline.cxx:450

@mwestphal
Copy link
Contributor

I think there is two issues here:

  1. Unable to read this file for some reason
  2. Crash on closing the file because PLY reader does not cleanup correctly

@mwestphal mwestphal added source:VTK type:bug Something isn't working labels Jan 16, 2025
@mwestphal mwestphal added this to F3D Jan 16, 2025
@mwestphal mwestphal moved this to Investigate in F3D Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
source:VTK type:bug Something isn't working
Projects
Status: Investigate
Development

No branches or pull requests

2 participants