aws / amazon-chime-sdk-android

An Android client library for integrating multi-party communications powered by the Amazon Chime service.
https://aws.amazon.com/chime/chime-sdk/
Apache License 2.0
105 stars 49 forks source link

Exception while doing TURN Request & Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR) #82

Closed ajkerfaisal closed 4 years ago

ajkerfaisal commented 4 years ago

Describe the bug I am facing an issue with meetings duration of more than 5 minutes. In my app, meetings consist of only 2 attendees. Lets say PersonA is the meeting creator and PersonB joins that meeting. When PersonA leaves the meeting then PersonB gets notified by onAttendeesLeft then I kick PersonB also from the meeting. Things all are fine but weirdly app is crashing for those meetings of duration more than 5 minutes. Error log mentioned below. Please help

Logs E/DefaultVideoClientObserver: Exception while doing TURN Request: java.io.FileNotFoundException: https://ccp.cp.ue1.app.chime.aws/v2/turn_sessions

A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 1602 (atd.de), pid 1602 (ad.de)

Test environment Info (please complete the following information):

ajkerfaisal commented 4 years ago

Found the issue. I was calling our API for disconnecting the call first. When I get the response from API I used to stop() audioVideo. Solution: By stopping audioVideo first then calling the API for disconnecting the call solved the issue. Now it all makes sense now, one should delete the meeting room last. But one thing still does not make sense. Why it only crashed for calls longer than 5 minutes only. Still a mystery.

zhinang-amazon commented 4 years ago

Hi @ajkerfaisal Glad that you were able to fix the issue. The meetings end automatically after a period of inactivity. See documentation here

ajkerfaisal commented 4 years ago

@zhinang-amazon I think you misunderstood that problem I was facing. Inactivity was never the case.