isl-org / isl-org/Open3D

Is it expected behavior for the application to crash when minimized? GUI

Open
#6,781 0 comments 0 reactions 0 assignees View on GitHub
question
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](https://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](https://www.open3d.org/docs/release/) and the [latest documentation](https://www.open3d.org/docs/latest/) (for `main` branch).

### My Question

Windows 11
X64

I am building an application in C++ using the GUI features. If I minimize the application, I get the following error even when I'm using a sample program. This crashes the application.

Assertion failed: (int32_t)viewport.width > 0, file D:\a\filament\filament\filament\src\View.cpp, line 106

In the filament source code I see that this is defined as the following.

```c++
void FView::setViewport(filament::Viewport const& viewport) noexcept {
// catch the cases were user had an underflow and didn't catch it.
assert((int32_t)viewport.width > 0);
assert((int32_t)viewport.height > 0);
mViewport = viewport;
}
```
When used with python it seems to work fine by just ignoring the assertion. My plan is to remove this assertion and build filament from source. I wanted to confirm that I am not removing some expected behavior before I proceed

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.