isl-org / Open3D

Open3D: A Modern Library for 3D Data Processing
http://www.open3d.org
Other
11.41k stars 2.3k forks source link

Segmentation Fault (core dumped)for dense_slam_gui.py #6201

Open StrongestBubble opened 1 year ago

StrongestBubble commented 1 year ago

Checklist

Describe the issue

I have been trying to run examples/python/t_reconstruction_system/dense_slam_gui.py for real-time 3D reconstruction. The Open3D Reconstruction GUI is normally set up(as shown in the Additional information). However, every time I run the code within a few seconds, it results in a segmentation fault (core dumped) (as shown in the Additional information).

Steps to reproduce the bug

$ cd ~/Downloads/Open3D-0.17.0/examples/python/t_reconstruction_system
$ python3 dense_slam_gui.py --device 'cuda:0'

Error message

wenqing@amax:~/Downloads/Open3D-0.17.0/examples/python/t_reconstruction_system$ python3 dense_slam_gui.py --device 'cuda:0' Config file was not provided, falling back to default dataset. Loaded data from /home/wenqing/open3d_data/extract/LoungeRGBDImages FEngine (64 bits) created at 0x7fd13003c010 (threading is enabled) FEngine resolved backend: OpenGL Segmentation fault (core dumped)

Expected behavior

I expect that dense_slam_gui.py can be run for real-time 3D reconstruction like the followings official video: https://www.youtube.com/watch?v=pLCVCH7ypI4

Open3D, Python and System information

- Operating system: Ubuntu 20.04
- Python version: Python 3.8.4
- Open3D version: output from python: 0.17.0
- System architecture: x86_64
- Is this a remote workstation?: yes or no
- How did you install Open3D?: pip

Additional information

Open3D Reconstruction is normally set up as followings: image However, switch "Resume/Pause", run a few seconds, and crash with the error as followings: image

lechnermichael commented 1 year ago

Same on

Demo fails to start

$ python t_reconstruction_system/dense_slam_gui.py --device 'cuda:0'
Config file was not provided, falling back to default dataset.
Loaded data from /home/michael/open3d_data/extract/LoungeRGBDImages
Segmentation fault (core dumped)

Debugging narrows the problem down to the window creation: dense_slam_gui.py:38 -> self.window = gui.Application.instance.create_window( 'Open3D - Reconstruction', 1280, 800)

lechnermichael commented 1 year ago

Segmentation Fault occures on: Ubuntu 22.04 Win 10 Ubuntu 22.04 (WSL1) with open3d version 0.17 as well as the latest development release

Minimal error reproducing code:

import open3d.visualization.gui as gui
app = gui.Application.instance 
app.initialize() 
app.create_window('test', 400, 400)