SIP account: app crashes when finishing call
-
client B calls client A
-
call starts normally
-
A hangup call
-
app crashed on B
thread #9 (closed), stop reason = EXC_BAD_ACCESS (code=1, address=0xb9c6d4d1b9ee649d)
frame #0: 0x000000018ffcc804 libsystem_c.dylibstrncasecmp_l + 92 frame #1: 0x0000000103449bfc Ring
pj_stricmp2 + 72
- frame #2 (closed): 0x000000010361b4ec Ring
jami::Sdp::getMediaSlots(this=0x00000002801e5fb0, session=0x000000010f8e8a28, remote=false) const at sdp.cpp:595:14 frame #3: 0x000000010361c0f0 Ring
jami::Sdp::getMediaSlots(this=0x00000002801e5fb0) const at sdp.cpp:694:16 frame #4 (closed): 0x000000010367d960 Ringjami::SIPCall::startAllMedia(this=0x000000010f8be018) at sipcall.cpp:1174:24 frame #5: 0x00000001036b29f8 Ring
jami::SIPCall::onMediaUpdate(this=0x0000000283a604a8)::$_15::operator()() const at sipcall.cpp:1405:24 frame #6 (closed): 0x00000001036b2894 Ringvoid jami::runOnMainThread<jami::SIPCall::onMediaUpdate()::$_15>(this=0x0000000283a604a8)::$_15&&)::'lambda'()::operator()() at manager.h:972:87 frame #7: 0x00000001036b285c Ring
decltype(__f=0x0000000283a604a8)::$_15>(fp)(std::__1::forward<void jami::runOnMainThreadjami::SIPCall::onMediaUpdate()::$_15(jami::SIPCall::onMediaUpdate()::$_15&&)::'lambda'()&>(fp0)...)) std::__1::__invoke<void jami::runOnMainThreadjami::SIPCall::onMediaUpdate()::$_15(jami::SIPCall::onMediaUpdate()::$_15&&)::'lambda'()&>(jami::SIPCall::onMediaUpdate()::$_15&&, void jami::runOnMainThreadjami::SIPCall::onMediaUpdate()::$_15(jami::SIPCall::onMediaUpdate()::$_15&&)::'lambda'()&...) at type_traits:3545:1
caused by accessing inviteSession after the destruction