sunjay / turtle

Create Animated Drawings in Rust
http://turtle.rs
Mozilla Public License 2.0
559 stars 54 forks source link

Turtle panics on mac (Apple Silicon) #248

Closed Lukas2026 closed 2 years ago

Lukas2026 commented 2 years ago

I tried installing tutrle on my mac MacOS Big Sur I followed the quickstart instruction.

This happens if I use 'turtle = "1.0.0-rc.3"' or : turtle = {git = "https://github.com/sunjay/turtle", rev = "bf64b8333a2be1914378d8a22a4788947711182b"}

thread 'main' panicked at 'attempted to zero-initialize type glutin::ContextWrapper<glutin::PossiblyCurrent, glutin::Window>, which is invalid', /Users/lukasrois/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/mem/mod.rs:636:9 stack backtrace: 0: rust_begin_unwind at /rustc/2fd73fabe469357a12c2c974c140f67e7cdd76d0/library/std/src/panicking.rs:493:5 1: core::panicking::panic_fmt at /rustc/2fd73fabe469357a12c2c974c140f67e7cdd76d0/library/core/src/panicking.rs:92:14 2: core::panicking::panic at /rustc/2fd73fabe469357a12c2c974c140f67e7cdd76d0/library/core/src/panicking.rs:50:5 3: core::mem::zeroed at /Users/lukasrois/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/mem/mod.rs:636:9 4: ::make_current at /Users/lukasrois/.cargo/registry/src/github.com-1ecc6299db9ec823/pistoncore-glutin_window-0.63.0/src/lib.rs:511:49 5: piston_window::PistonWindow::draw_2d at /Users/lukasrois/.cargo/registry/src/github.com-1ecc6299db9ec823/piston_window-0.108.0/src/lib.rs:284:13 6: turtle::renderer::Renderer::run at /Users/lukasrois/.cargo/git/checkouts/turtle-7d4ec58877c500b9/bf64b83/src/renderer.rs:126:13 7: turtle::server::main at /Users/lukasrois/.cargo/git/checkouts/turtle-7d4ec58877c500b9/bf64b83/src/server.rs:90:5 8: turtle::server::start at /Users/lukasrois/.cargo/git/checkouts/turtle-7d4ec58877c500b9/bf64b83/src/server.rs:66:9 9: turtle::turtle_window::TurtleWindow::new at /Users/lukasrois/.cargo/git/checkouts/turtle-7d4ec58877c500b9/bf64b83/src/turtle_window.rs:23:9 10: turtle::turtle::Turtle::new at /Users/lukasrois/.cargo/git/checkouts/turtle-7d4ec58877c500b9/bf64b83/src/turtle.rs:86:43 11: rust_pycharm::main at ./src/main.rs:4:23 12: core::ops::function::FnOnce::call_once at /Users/lukasrois/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:227:5 note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.

Lukas2026 commented 2 years ago

Was solved by using: turtle = {git = "https://github.com/sunjay/turtle"}