Panic in Window::all() while in mission control on MacOS
tpatterson opened this issue · comments
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](https://private-user-images.githubusercontent.com/1031531/317331621-96b6e0fb-bde8-43a7-be95-3e74fa6a9779.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTI1OTg2MDgsIm5iZiI6MTcxMjU5ODMwOCwicGF0aCI6Ii8xMDMxNTMxLzMxNzMzMTYyMS05NmI2ZTBmYi1iZGU4LTQzYTctYmU5NS0zZTc0ZmE2YTk3NzkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDQwOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA0MDhUMTc0NTA4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZmRhNGZmYmRiNzk4OWIyMjIyYWQ4OWUxMGI3NzcwYjc2NmRjN2Y0MTU4OWY3Y2NiOTcxOTZjZDcwZTgxMTlkNiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.kEHF4ij_Wwcf6rxAsD0_1frC4vG5vBuFjuFw_2Tppag)
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.
Thank you again