Skip to content

Rio crashes in windows when you unplug monitor from laptop #1448

@keith-at-wildeye

Description

@keith-at-wildeye

Windows does an odd thing if you have a large main monitor plugged into your laptop, and your terminal window is larger than your laptop screen, windows when you unplug the monitor (like going to a meeting ) makes these terminal windows 0 sized (same thing happens to my wezterm windows). However this is fatal with rio and you get....


Rio: Runtime Error

panicked at C:\Users\runneradmin.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\wgpu-27.0.1\src\backend\wgpu_core.rs:3793:18:
wgpu error: Validation Error

Caused by:
In Surface::configure
Both Surface width and height must be non-zero. Wait to recreate the Surface until the window has non-zero area.

Press Ctrl-C to Copy

OK

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions