Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic on macos #3

Open
lovasoa opened this issue Mar 27, 2019 · 3 comments
Open

panic on macos #3

lovasoa opened this issue Mar 27, 2019 · 3 comments

Comments

@lovasoa
Copy link
Contributor

lovasoa commented Mar 27, 2019

When running in debug mode, I get

thread 'main' panicked at 'assertion failed: backend.is_current()', /Users/olojkine/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/glium-0.23.0/src/context/mod.rs:647:17
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
             at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
   1: std::sys_common::backtrace::_print
             at src/libstd/sys_common/backtrace.rs:70
   2: std::panicking::default_hook::{{closure}}
             at src/libstd/sys_common/backtrace.rs:58
             at src/libstd/panicking.rs:200
   3: std::panicking::default_hook
             at src/libstd/panicking.rs:215
   4: <std::panicking::begin_panic::PanicPayload<A> as core::panic::BoxMeUp>::get
             at src/libstd/panicking.rs:478
   5: std::ffi::c_str::CString::as_bytes_with_nul
             at /rustc/2aa4c46cfdd726e97360c2734835aa3515e8c858/src/libstd/panicking.rs:412
   6: glium::context::Context::get_version
             at /Users/olojkine/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/glium-0.23.0/src/context/mod.rs:647
   7: glium::context::default_debug_callback::{{closure}}
             at /Users/olojkine/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/glium-0.23.0/src/context/mod.rs:951
   8: glium::texture::buffer_texture::BufferTextureRef::get_texture_type
             at /Users/olojkine/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/glium-0.23.0/src/context/mod.rs:217
   9: glium::backend::glutin::Display::new_inner
             at /Users/olojkine/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/glium-0.23.0/src/backend/glutin/mod.rs:115
  10: <&'b str as core::str::pattern::Pattern<'a>>::into_searcher
             at /Users/olojkine/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/glium-0.23.0/src/backend/glutin/mod.rs:94
  11: <&'b str as core::str::pattern::Pattern<'a>>::into_searcher
             at /Users/olojkine/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/glium-0.23.0/src/backend/glutin/mod.rs:79
  12: <&'b str as core::str::pattern::Pattern<'a>>::into_searcher
             at /Users/olojkine/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/glium-0.23.0/src/backend/glutin/mod.rs:71
  13: ifs_fractal::main
             at src/main.rs:25
  14: std::rt::lang_start::{{closure}}
             at /rustc/2aa4c46cfdd726e97360c2734835aa3515e8c858/src/libstd/rt.rs:64
  15: std::panicking::try::do_call
             at src/libstd/rt.rs:49
             at src/libstd/panicking.rs:297
  16: panic_unwind::dwarf::eh::read_encoded_pointer
             at src/libpanic_unwind/lib.rs:92
  17: <std::panicking::begin_panic::PanicPayload<A> as core::panic::BoxMeUp>::get
             at src/libstd/panicking.rs:276
             at src/libstd/panic.rs:388
             at src/libstd/rt.rs:48
  18: std::rt::lang_start
             at /rustc/2aa4c46cfdd726e97360c2734835aa3515e8c858/src/libstd/rt.rs:64
  19: ifs_fractal::main
@lovasoa
Copy link
Contributor Author

lovasoa commented Mar 27, 2019

The error disappears in release mode.

@jherman3
Copy link
Owner

Very strange, it looks like an upstream issue with Glium or Glutin but I'll investigate a bit when I get a chance

@lovasoa
Copy link
Contributor Author

lovasoa commented Mar 28, 2019

The source of this seems to be glium/glium#1721

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants