Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
johngabe opened this issue Apr 30, 2024 · 0 comments
Open
3 tasks done
Labels

Comments

@johngabe
Copy link

Checklist

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.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant