Skip to content

Crash when PreMultiplied alpha mode is lost while app is running #3387

Description

@thorn132

Is your issue REALLY a bug?

  • My issue is indeed a bug!
  • I am not crazy! I will not fill out this form just to ask a question or request a feature. Pinky promise.

Is there an existing issue for this?

  • I have searched the existing issues.

Is this issue related to iced?

  • My hardware is compatible and my graphics drivers are up-to-date.

What happened?

When disconnecting an external monitor while my app is running, wgpu briefly(?) believes that only Opaque alpha mode is available. The iced runtime selected PreMultiplied at startup and does not check for changed capabilities, causing my app to crash with a validation error.

What is the expected behavior?

Apps should not crash when a monitor is disconnected.

Version

master

Operating System

Windows

Do you have any log output?

wgpu error: Validation Error
Caused by:
    In Surface::configure
    Requested alpha mode PreMultiplied is not in the list of supported alpha modes: [Opaque]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions