livekit / client-sdk-android

LiveKit SDK for Android
https://docs.livekit.io
Apache License 2.0
165 stars 64 forks source link

Application randomly crashes when often connect/disconnect from the call multiple times in a row #314

Closed serhiynovos closed 8 months ago

serhiynovos commented 8 months ago

I noticed that my app is randomly crashing, so I started playing with it, and when I very quickly and often connect/disconnect a call app is crashing with next stack trace. I'm using latest 1.5.0 release and I know that it has memory leaks fixes where was fixed and one of the fixes was disposing peer connection instead of closing.

Was able to reproduce it by calling device and when it joins a call just hand a call. It's not always happens, I have to try it multiple times to reproduce it.

LiveKit crash
serhiynovos commented 8 months ago

Sometimes it's crashing with this error

Livekit_Crash_2
davidliu commented 8 months ago

What version of the sdk is this using?

serhiynovos commented 8 months ago

1.5.0