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

Known Issue: Audio Sessions - "Random" exceptions #34

Open
xenolightning opened this issue Apr 19, 2017 · 2 comments
Open

Known Issue: Audio Sessions - "Random" exceptions #34

xenolightning opened this issue Apr 19, 2017 · 2 comments
Assignees
Milestone

Comments

@xenolightning
Copy link
Owner

There is an issue in the session create code which causes either COM Objects to be access in a non thread safe manner, or the lifecycle is disposed prematurely.

The session controller should probably not be a DeviceCapability it causes oddities.

@xenolightning xenolightning added this to the 4.0.0 milestone Apr 19, 2017
@xenolightning xenolightning self-assigned this Apr 19, 2017
@barneywilliams
Copy link

I am wondering if the exception we are seeing is related to what you have seen:

Exception thrown at 0x0CBD288A in MyApplication.exe: 0xC0000005: Access violation reading location 0x00000000.
The Common Language Runtime cannot stop at this exception. Common causes include: incorrect COM interop marshalling and memory corruption. To investigate further use native-only debugging.
Exception thrown: 'System.NullReferenceException' in AudioSwitcher.AudioApi.CoreAudio.dll

We end up getting these 3 messages in the debugger over and over.

Thanks a ton for putting this project together! Any help would be much appreciated.

@xenolightning
Copy link
Owner Author

xenolightning commented Aug 17, 2017

Yeah, it looks to be the same if not related to: #31

It's fairly hard to track down exactly what is causing it. Only that it's somewhere in the session creation/initialization.

Are you using sessions in your app?

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

No branches or pull requests

2 participants