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 in Window::all() while in mission control on MacOS #116

Closed
tpatterson opened this issue Mar 27, 2024 · 3 comments
Closed

Panic in Window::all() while in mission control on MacOS #116

tpatterson opened this issue Mar 27, 2024 · 3 comments

Comments

@tpatterson
Copy link

This panic happens consistently when trying to call Window::all() while the screen is in mission control (4-finger swipe up)

thread 'main' panicked at /Users/rex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/core-foundation-0.9.4/src/string.rs:28:1:
Attempted to create a NULL object.
stack backtrace:
   0: std::panicking::begin_panic
             at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/panicking.rs:688:12
   1: <core_foundation::string::CFString as core_foundation::base::TCFType>::wrap_under_create_rule
             at /Users/rex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/core-foundation-0.9.4/src/lib.rs:110:17
   2: <T as core_foundation::base::FromVoid>::from_void
             at /Users/rex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/core-foundation-0.9.4/src/base.rs:358:31
   3: xcap::platform::impl_window::ImplWindow::new
             at /Users/rex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/xcap-0.0.6/src/macos/impl_window.rs:89:17
   4: xcap::platform::impl_window::ImplWindow::all
             at /Users/rex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/xcap-0.0.6/src/macos/impl_window.rs:179:35
   5: xcap::window::Window::all
image
nashaofu added a commit that referenced this issue Mar 28, 2024
)

* fix: Panic in Window::all() while in mission control on MacOS #116

* chore: update version
@nashaofu
Copy link
Owner

nashaofu commented Mar 28, 2024

fixed in #117

@tpatterson
Copy link
Author

Fixed! Brilliant! and thank you very much. As promised I sponsored you again for this and those other things you fixed while you were at it.

@nashaofu
Copy link
Owner

Thank you again

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