Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entering infinite wait when WASAPISource is destroyed #11516

Open
FanZR123 opened this issue Nov 13, 2024 · 0 comments
Open

Entering infinite wait when WASAPISource is destroyed #11516

FanZR123 opened this issue Nov 13, 2024 · 0 comments

Comments

@FanZR123
Copy link

Operating System Info

Windows 11

Other OS

No response

OBS Studio Version

31.0.0-beta3

OBS Studio Version (Other)

No response

OBS Studio Log URL

none

OBS Studio Crash Log URL

No response

Expected Behavior

WASAPISource can be destroyed normally

Current Behavior

When switching scene collections, wsapisource will be destroyed.

Thread_41664 ->Deactivate(),close reconnectThread
Thread_26716->~WASAPISource->Stop(), if reconnectThread is valid,wait idleSignal

Stop() is likely to be called before Deactivate(), so reconnectThread is valid and therefore enters the wait state.
The idleSignal is only sent when the device pushes data to call OnSampleReady.
If the device does not push data, the idleSignal will never be sent and stop() will always be in a waiting state.

1731484793
1731484837

Steps to Reproduce

1.add audio input source
2.Switch scene collection
3.
...

Anything else we should know?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant