Skip to content

Can't compile #2

Description

@ivelieu

Hello! I saw your game and it looked cool so I wanted to try it out, I cloned the master branch but I wasn't able to compile it:

❯ cargo run
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.07s
     Running `target/debug/dieselrogue`

thread 'main' (3835) panicked at /home/darcy/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/freetype-rs-0.26.0/src/bitmap.rs:67:13:
unsafe precondition(s) violated: slice::from_raw_parts requires the pointer to be aligned and non-null, and the total size of the slice not to exceed `isize::MAX`

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
[1]    3835 IOT instruction  cargo run    

Maybe you're already aware of this, I just thought to let you know.
Here's the full backtrace: backtrace.txt

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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