amethyst / amethyst/bracket-lib

Bracket.rs throwing error at runtime.

Đang mở
#373 10 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Rust
Star
1.7k
Fork
126
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Good evening, I recently bought your book and was starting the Dungeon Crawler section when at run time Rust throws the following error;

```
warning: `dungeoncrawler` (bin "dungeoncrawler") generated 2 warnings
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.15s
Running `target/debug/dungeoncrawler`

thread 'main' panicked at /home/matt/.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.
stack backtrace:
```

I tried running the flappy program I had wrote previously that worked and got the same error on bracket.rs

Kind regards,

Matt

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.