Skip to content

Invaders example doesn't work when using pixels from crates.io #392

@Pmyl

Description

@Pmyl

I've spent a very long time trying to debug a problem in my new project, and in the end I've found out that if I target the cloned version on the pixels crate everything works fine!

I can easily replicate the issue in the invaders example by changing this Cargo.toml line
pixels = { path = "../.." }
with this
pixels = "0.13.0"

With { path = "../.." }
image

With "0.13.0"
image

with the terminal spitting out this error:

[2024-02-11T15:31:31Z ERROR winit::platform_impl::platform] X11 error: XError {
        description: "136",
        error_code: 136,
        request_code: 148,
        minor_code: 1,
    }

Edit:
I think I've found the commit that fixed the problem, if I rollback just before the commit that updates wgpu to 0.17 then I get the same result as using version 0.13.0, after that commit everything works

System:
OS: Pop!_OS 22.04 LTS
rustc: 1.74.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationduplicateThis issue or pull request already existsexamplesA bug or improvement for an examplehelp wantedExtra attention is neededquestionUsability question

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions