open3d crashes python kernel after closing window
- Dominant language
- C++
- Stars
- 14k
- Forks
- 2.6k
- Avg merge
- 5d 18h
- Merged PRs (30d)
- 6
Description
### Checklist
- [X] I have searched for [similar issues](https://github.com/isl-org/Open3D/issues).
- [X] For Python issues, I have tested with the [latest development wheel](http://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](http://www.open3d.org/docs/release/) and the [latest documentation](http://www.open3d.org/docs/latest/) (for `master` branch).
### Describe the issue
I have been using open3d.visualization.Visualizer() to plot large point clouds, around millions of dots. I get the following warning on jupyter lab:
Premature drain of QMacAutoReleasePool(0x7ff7b44d9b98) This can happen if you've allocated the pool on the heap, or as a member of a heap-allocated object. This is not a supported use of QMacAutoReleasePool, and might result in crashes when objects in the pool are deallocated and then used later on under the assumption they will be valid until QMacAutoReleasePool(0x7ff7b44d9b98) has been drained.
But everything seems to run fine until I close the visualisation window. Then python crashes and I get the following macOS report:

### Steps to reproduce the bug
```python
# I have not been able to simplify the code but I am using open3d.visualization.Visualizer() and calling update_geometry(), poll_events() and update_renderer() similarly to the non-blocking visualization example.
```
### Error message
_No response_
### Expected behavior
_No response_
### Open3D, Python and System information
```markdown
- Operating system: macOS 12.2.1
- Python version: Python 3.8
- Open3D version: 0.15.1
```
### Additional information
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.