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

Segmentation Fault When Using set_front in Visualizer (段错误 (核心已转储)) #6978

Open
3 tasks done
Made-Gpt opened this issue Sep 19, 2024 · 0 comments
Open
3 tasks done
Labels
bug Not a build issue, this is likely a bug.

Comments

@Made-Gpt
Copy link

Checklist

Describe the issue

Hi,
I'm encountering a segmentation fault when trying to set the view control using set_front and other camera controls (set_lookat, set_up) within the Visualizer class in Open3D. The visualizer works fine until I try to modify the camera view control parameters.

Any guidance on this issue would be greatly appreciated. Thank you!

Steps to reproduce the bug

import open3d as o3d
import numpy as np

... ...

# Initialize visualizer
vis = o3d.visualization.Visualizer()
vis.create_window(window_name="Point Cloud", width=1200, height=600)
vis.add_geometry(pano_pcd)
ctr = vis.get_view_control()
ctr.set_front([1, 0, 0])
vis.run()
vis.destroy_window()

Error message

00000
11111
段错误 (核心已转储)

Expected behavior

The camera view should adjust without causing a segmentation fault.

Open3D, Python and System information

1. When I remove the `set_front` call, the visualizer runs without issue.
2. I am working with a point cloud containing 8,294,400 points and corresponding color data.
3. The segmentation fault occurs after calling `set_front` (or sometimes `set_lookat`).
4. My system:
   - OS: Ubuntu 20.04
   - Open3D Version: 0.18.0
   - Python Version: 3.9

Additional information

The program crashes with a segmentation fault when calling set_front (or related methods) after starting the visualizer.

  • I have tried adjusting the order of operations by calling vis.run() before and after setting the view control, but the segmentation fault persists.
  • The program runs without error when I do not modify the view control settings.
  • I also tried ctr.set_front(np.array([1, 0, 0], dtype=np.float64)) following the document, not work either.
@Made-Gpt Made-Gpt added the bug Not a build issue, this is likely a bug. label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not a build issue, this is likely a bug.
1 participant