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

winit example panics on macOS #1318

Open
johanholmerin opened this issue Jul 18, 2024 · 0 comments
Open

winit example panics on macOS #1318

johanholmerin opened this issue Jul 18, 2024 · 0 comments

Comments

@johanholmerin
Copy link

Describe the bug
The winit example panics on macOS whenever the window is unfocused. I've tried updating winit but get the same error.

Steps To Reproduce
Run cargo run --example winit and then focus another window

Expected behavior
The example not to panic

Screenshots

Platform and Versions (please complete the following information):
OS: macOS Sonoma 14.5
Rustc: 1.79.0

Additional context

thread 'main' panicked at /Users/dev/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/runtime/mod.rs:1015:17:
ivar _state not found on class WryWebViewParent
stack backtrace:
   0: rust_begin_unwind
             at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:652:5
   1: core::panicking::panic_fmt
             at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/panicking.rs:72:14
   2: objc2::runtime::ivar_offset
             at /Users/dev/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/runtime/mod.rs:1015:17
   3: objc2::declare::ivar::IvarType::__offset
             at /Users/dev/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/declare/ivar.rs:97:9
   4: objc2::declare::ivar::Ivar<T>::as_inner_ptr
             at /Users/dev/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/declare/ivar.rs:218:31
   5: <objc2::declare::ivar::Ivar<T> as core::ops::deref::Deref>::deref
             at /Users/dev/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/declare/ivar.rs:271:18
   6: winit::platform_impl::platform::view::WinitView::reset_modifiers
             at /Users/dev/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/macos/view.rs:905:13
   7: winit::platform_impl::platform::window_delegate::WinitWindowDelegate::window_did_resign_key
             at /Users/dev/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/macos/window_delegate.rs:180:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants