CapSoftware / scap

High-performance, cross-platform screen capture library in Rust.
https://crates.io/crates/scap
Other
231 stars 44 forks source link

The crash of a scam after running for a long time #131

Open giuseppe2028 opened 2 weeks ago

giuseppe2028 commented 2 weeks ago

After running the main with a loop, and not with for statement, it crashes after random time, with the message: "Error!" if it is run on Mac. I'have tried to run it on windows and the error is this:

PHOTO-2024-11-07-14-44-31

https://github.com/CapSoftware/scap/blob/83da3aac93b276e4e9284a23e7dc7f2a680bdb92/src/capturer/engine/mac/mod.rs#L32C1-L37C2