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

Crash on OTDefaultAudioDevice handleRouteChange #323

Open
danhilton1 opened this issue Sep 11, 2024 · 2 comments
Open

Crash on OTDefaultAudioDevice handleRouteChange #323

danhilton1 opened this issue Sep 11, 2024 · 2 comments

Comments

@danhilton1
Copy link

Hello

We recently received a crash report on our app and our reporting service identified the handleRouteChange method in OTDefaultAudioDevice as the most likely cause. We don't have our own implementation of this file so this is the built-in file from OpenTok. Unfortunately it doesn't give the line of code but it gives this crash log:
NSRangeException (crashed)
Application threw exception NSRangeException: *** -[__NSArray0 objectAtIndex:]: index 0 beyond bounds for empty array

From looking at the user journey data, the user started connecting to a session and then received a phone call whilst this was happening. I believe this meant the audio process was being taken up by the phone call and OpenTok was unable to setup audio as there was no device available. It's a fairly edge case scenario but a user has experienced it so it's worth investigating.

Device: iPhone 13 Pro, iOS 17.6.1
SDK version: 2.72.2
Session ID: 1_MX40NzkwNjc3MX5-MTcyNDUxMDk3MTg0M35ob1QrTTB0clZUWk8vdEZXbVcrYlRsWjl-fn4

@v-kpheng
Copy link
Contributor

@danhilton1, apologies for the belated reply.

Were you able to reproduce this? I'll ask engineering if anything stands out. Do you have another session ID to share?

@v-kpheng
Copy link
Contributor

@danhilton1, a full stack trace would be helpful. If needed, you can plugin in the custom audio drive (objC or Swift) to get a proper trace.

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