hecomi / uWindowCapture

This allows you to use Windows Graphics Capture / PrintWindow / BitBlt in Windows to capture multiple windows individually and easily use them as Texture2D in Unity.
https://tips.hecomi.com/entry/2021/04/30/230322
MIT License
493 stars 79 forks source link

Application crash with WGC #28

Open Curtis-VL opened 3 years ago

Curtis-VL commented 3 years ago

Hi Hecomi,

Sorry for yet another bug report! I'm unsure of the exact cause of this one but it happens upon capturing a window.

Player.log doesn't show any crash, it looks like the process was killed.

uWindowCapture.log shows the following: [uWC::Log][2021-05-02 21:50:51] Start [uWC::Log][2021-05-02 21:59:26] WindowsGraphicsCapture::DestroyPoolAndSession() throws an exception: 0x800706be [uWC::Log][2021-05-02 21:59:28] WindowsGraphicsCapture::DestroyPoolAndSession() throws an exception: 0x800706ba

(If I find more information about this I'll add it here)

hecomi commented 3 years ago

Thank you for all the information. And I'm sorry, it still seems to be very unstable.

Same as the previous issue, could you provide me what version you used for the test?

Curtis-VL commented 3 years ago

I believe this was v1.0.1. I will try to gather more information as others experience the issue!

Don't worry about the stability, you only released the new capture API support 2 days ago, I'm testing it with a beta testing team of around 30 people and find issues much quicker than you would alone. It's totally understandable. :)

I really appreciate your hard work!

hecomi commented 3 years ago

I'm both amazed and thrilled that 30 people have tested it, thank you!

I have not been able to reproduce the problem yet, so I would appreciate the following information if possible:

Curtis-VL commented 3 years ago

I will have this user test this as soon as they are free!

They are on Windows 10 20H2, they claim they saw their windows for a frame or two before the application crash. I will work with them to determine which window specifically was causing the problem or what combination.

hecomi commented 3 years ago

I have rewritten the thread-related handling to be safer. Some potential crash bugs have been fixed, so it would be helpful if you could check again in v1.0.2.

Curtis-VL commented 3 years ago

Hi Hecomi,

I've been talking with the user experiencing this crash and I'm struggling to find the cause, there's nothing in the Unity log that shows a crash or even the application closes, it looks like the process is killed.

Looking through Event Viewer, he found some errors: image image image

Sorry I'm not able to provide more information on this issue! All I know is that this issue happens when the window GameObject becomes active.