Skip to content

panicked at 'Windows can only be created on the main thread on macOS #27

Description

@adals
turtle adelalharbi$ RUST_BACKTRACE=1 cargo run --example rust
    Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
     Running `target/debug/examples/rust`
thread '<unnamed>' panicked at 'Windows can only be created on the main thread on macOS', /Users/adelalharbi/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.8.3/src/platform/macos/window.rs:306:16
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
   0: std::sys::imp::backtrace::tracing::imp::unwind_backtrace
   1: std::panicking::default_hook::{{closure}}
   2: std::panicking::default_hook
   3: std::panicking::rust_panic_with_hook
   4: std::panicking::begin_panic
   5: winit::platform::platform::window::Window2::new
   6: winit::platform::platform::Window::new
   7: winit::window::<impl winit::WindowBuilder>::build
   8: glutin::platform::platform::Context::new
   9: glutin::GlWindow::new
  10: glutin_window::GlutinWindow::new
  11: <glutin_window::GlutinWindow as window::BuildFromWindowSettings>::build_from_window_settings
  12: window::WindowSettings::build
  13: <piston_window::PistonWindow<W> as window::BuildFromWindowSettings>::build_from_window_settings
  14: window::WindowSettings::build
  15: turtle::renderer::Renderer::run
  16: turtle::turtle_window::TurtleWindow::new::{{closure}}

Activity

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions