Skip to content

Instantly share code, notes, and snippets.

@fu5ha
Created June 15, 2018 23:54
Show Gist options
  • Select an option

  • Save fu5ha/99a0bf100b77f3ee4cb23db6e581491d to your computer and use it in GitHub Desktop.

Select an option

Save fu5ha/99a0bf100b77f3ee4cb23db6e581491d to your computer and use it in GitHub Desktop.
Finished dev [unoptimized + debuginfo] target(s) in 0.76s
Running target/debug/deps/amethyst_gl_segfault-2eaa6ccbeb2b8746
running 1 test
test tests::segfault ... FAILED
failures:
---- tests::segfault stdout ----
thread 'tests::segfault' panicked at 'Windows can only be created on the main thread on macOS', /Users/gray/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.15.1/src/platform/macos/window.rs:576:17
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
1: std::sys_common::backtrace::print
at libstd/sys_common/backtrace.rs:71
at libstd/sys_common/backtrace.rs:59
2: std::panicking::default_hook::{{closure}}
at libstd/panicking.rs:211
3: std::panicking::default_hook
at libstd/panicking.rs:221
4: <std::panicking::begin_panic::PanicPayload<A> as core::panic::BoxMeUp>::get
at libstd/panicking.rs:511
5: core::ptr::swap_nonoverlapping_bytes
at /Users/travis/build/rust-lang/rust/src/libstd/panicking.rs:445
6: winit::platform::platform::window::Window2::new
at /Users/gray/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.15.1/src/platform/macos/window.rs:576
7: winit::platform::platform::Window::new
at /Users/gray/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.15.1/src/platform/macos/mod.rs:32
8: winit::platform::platform::monitor::MonitorId::get_nsscreen
at /Users/gray/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.15.1/src/window.rs:159
9: glutin::platform::platform::Context::new
at /Users/gray/.cargo/registry/src/github.com-1ecc6299db9ec823/glutin-0.16.0/src/platform/macos/mod.rs:48
10: <gfx_core::format::ChannelType as core::cmp::PartialEq>::eq
at /Users/gray/.cargo/registry/src/github.com-1ecc6299db9ec823/glutin-0.16.0/src/lib.rs:337
11: core::ptr::drop_in_place
at /Users/gray/.cargo/registry/src/github.com-1ecc6299db9ec823/gfx_window_glutin-0.24.0/src/lib.rs:144
12: <amethyst_renderer::visibility::Internals as core::clone::Clone>::clone
at /Users/gray/.cargo/registry/src/github.com-1ecc6299db9ec823/gfx_window_glutin-0.24.0/src/lib.rs:67
13: amethyst_renderer::renderer::init_backend
at /Users/gray/.cargo/git/checkouts/amethyst-fedb0a1032a075ce/00fa904/amethyst_renderer/src/renderer.rs:288
14: amethyst_renderer::pass::skinning::set_skinning_buffers
at /Users/gray/.cargo/git/checkouts/amethyst-fedb0a1032a075ce/00fa904/amethyst_renderer/src/renderer.rs:202
15: <amethyst_renderer::system::RenderSystem<P>>::build
at /Users/gray/.cargo/git/checkouts/amethyst-fedb0a1032a075ce/00fa904/amethyst_renderer/src/system.rs:53
16: <amethyst_renderer::bundle::RenderBundle<'c, B, P> as amethyst_core::bundle::SystemBundle<'a, 'b>>::build
at /Users/gray/.cargo/git/checkouts/amethyst-fedb0a1032a075ce/00fa904/amethyst_renderer/src/bundle.rs:62
17: amethyst::game_data::GameDataBuilder::with_bundle
at /Users/gray/.cargo/git/checkouts/amethyst-fedb0a1032a075ce/00fa904/src/game_data.rs:217
18: amethyst::game_data::GameDataBuilder::with_basic_renderer
at /Users/gray/.cargo/git/checkouts/amethyst-fedb0a1032a075ce/00fa904/src/game_data.rs:255
19: amethyst_gl_segfault::tests::game_data
at src/lib.rs:28
20: amethyst_gl_segfault::tests::run
at src/lib.rs:18
21: amethyst_gl_segfault::tests::segfault
at src/lib.rs:13
22: amethyst_gl_segfault::__test::TESTS::{{closure}}
at src/lib.rs:12
23: core::ops::function::FnOnce::call_once
at /Users/travis/build/rust-lang/rust/src/libcore/ops/function.rs:223
24: <F as alloc::boxed::FnBox<A>>::call_box
at libtest/lib.rs:1451
at /Users/travis/build/rust-lang/rust/src/libcore/ops/function.rs:223
at /Users/travis/build/rust-lang/rust/src/liballoc/boxed.rs:640
25: panic_unwind::dwarf::eh::read_encoded_pointer
at libpanic_unwind/lib.rs:105
failures:
tests::segfault
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment