NiiightmareXD / windows-capture

Fastest Windows Screen Capture Library For Rust And Python 🔥
MIT License
213 stars 31 forks source link

[BUG 🪲] exit code: 0xc0000005, STATUS_ACCESS_VIOLATION #87

Open AurevoirXavier opened 6 days ago

AurevoirXavier commented 6 days ago

Describe the bug 🐛

  1. Use Window instead of Monitor to capture the frame
  2. Write such logic, start capturing if the window name found, sleep and start finding the window again if the on_close triggered
  3. For the first time everything works, close and reopen the application, then exit code: 0xc0000005, STATUS_ACCESS_VIOLATION
  4. This only happens on fullscreen application

I guess there are some resources didn't get released properly for fullscreen application.

OS 🤖

NiiightmareXD commented 6 days ago

Hey, can you tell me the name of the application

AurevoirXavier commented 6 days ago

Hey, can you tell me the name of the application

"Counter-Strike 2"

NiiightmareXD commented 3 days ago

Hey, can you tell me the name of the application

"Counter-Strike 2"

Can you check if you can record using OBS window capture? maybe its a anti-cheat problem but I have no problem in Valorant