BadWindow error crashes Python script
- Dominant language
- C++
- Stars
- 14k
- Forks
- 2.6k
- Avg merge
- 5d 18h
- Merged PRs (30d)
- 6
Description
**Description**
When using a Visualizer object to call create_window(), closing it and calling create_window() again, the Python script crashes with the following error:
```
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 18 (X_ChangeProperty)
Resource id in failed request: 0x0
Serial number of failed request: 244
Current serial number in output stream: 251
```
This may be related to #1715, due to the similarity in the steps to reproduce the issue. However, the error message is slightly different.
**To Reproduce**
Steps to reproduce the behavior:
```
import open3d as o3d
vis = o3d.visualization.Visualizer()
vis.create_window()
vis.run()
vis.destroy_window()
vis.create_window() # This is the line the error occurs
vis.run()
vis.destroy_window()
vis.destroy()
```
**Environment:**
- Operating system: Ubuntu 20.10
- Python version: Python 3.8.6
- Open3D version: 0.12.0
- Is this remote workstation?: no
- How did you install Open3D?: pip
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.