Skip to content

Simple window crash on minimize (Windows 10) #2018

@vyshnavks8

Description

@vyshnavks8

Bevy version ="0.5.0"

version using from crates.io.

Operating system & version= Windows 10

code

use bevy::prelude::*;
fn main() {
App::build()
.add_plugins(DefaultPlugins)
.run();

}

This code run runs program correctly and a window is opened but when we tries to minimise it crashes simply.

#error shown after crash

thread 'main' panicked at 'Error in Device::create_swap_chain: Both SwapChain width and height must be non-zero. Wait to recreate the SwapChain until the window has non-zero area.',
C:.{path}\wgpu-0.7.1\src\backend\direct.rs:129:9
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

(exit code: 0xc000041d)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-WindowingPlatform-agnostic interface layer to run your app inC-BugAn unexpected or incorrect behaviorO-WindowsSpecific to the Windows desktop operating systemS-DuplicateThis issue or PR already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions