isl-org / isl-org/Open3D

Open3DViewer throw exception when user push ESC key.

Open
#5,024 0 comments 0 reactions 0 assignees View on GitHub
bug
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'm using open3d 0.14.1 c++ (release) and checking the implementation concept of open3d viewer.
and I can see through the following function which seems intended to close window when user put escape key.

- Window::OnKeyEvent(const KeyEvent& e)

but when I put the key after showing the window frame, I can see the following exception.
![image](https://user-images.githubusercontent.com/100328884/164382896-f2e4cbca-f18d-431f-993b-b7f4b817eccf.png)

and the following image is the final application code which occur exception
![image](https://user-images.githubusercontent.com/100328884/164382849-76440021-0697-41fe-816d-0a8e68043dfe.png)

### Steps to reproduce the bug

```python
you can reproduce this issue with the following step.

1. execute open3dviewer.exe
2. wait until window is loaded.
3. put escape key.
4. the exception will be checked when you using debug mode.
```

### Error message

![image](https://user-images.githubusercontent.com/100328884/164383123-a1230d9d-abc0-42e3-baab-aadc0fe01436.png)

### Expected behavior

window should be closed and program need to be shut down.

### Open3D, Python and System information

```markdown
- Operating system: Windows 11 64-bit
- Python version: Python 3.7.8
- Open3D version: 0.14.1+0a49cdf79
- System architecture: x64
- Is this a remote workstation?: no
- How did you install Open3D?: build from source
- Compiler version (if built from source): C/C++ Optimizing Compiler Version 19.29.30141 for x86
```

### Additional information

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.