NiiightmareXD / windows-capture

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

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

Open AurevoirXavier opened 1 month ago

AurevoirXavier commented 1 month 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 1 month ago

Hey, can you tell me the name of the application

AurevoirXavier commented 1 month ago

Hey, can you tell me the name of the application

"Counter-Strike 2"

NiiightmareXD commented 1 month 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

NiiightmareXD commented 3 weeks ago

I can't replicate this, maybe it's an antivirus problem?

AurevoirXavier commented 3 weeks ago

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

OBS works.

I can't replicate this, maybe it's an antivirus problem?

Strange. But it can work every first time.

Is there anything that I need to be careful while on_close.