Skip to content

eg-0.8 panicked - trying to construct an enum from an invalid value 0x207 #24

@ChocolateLoverRaj

Description

@ChocolateLoverRaj

OS: NixOS.
Steps to reproduce:

The window opens, and the example runs for around 1s, and then it panicks and terminates:

thread 'main' (172059) panicked at /home/rajas/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sdl2-0.37.0/src/sdl2/event.rs:336:27:
trying to construct an enum from an invalid value 0x207
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
Aborted                    (core dumped) cargo r --example hello-world

I'm not sure if this is a bug in the sdl2 crate, the SDL2 version I have is too recent (2.32.60), or something else.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions