SIGSEGV SEGV_MAPERR at 0x00000008 0 libpjsua2.so 0x56585a88 pj::Call::getInfo() const 1 libpjsua2.so 0x56546b44 std::allocator<pj::CallMediaInfo>::allocator()
I use pjsip for one of my hobby projects (GPL compliant). Above you can see the stack received from crashtics. I am using Java shell for pjsip.
This error accounts for a lot of users (50%), however I cannot reproduce it on my local devices.
Not sure, but I suspect the next java call will result in an error. What C ++ call through JNI
public void notifyCallState(MyCall call) { if (currentCall == null || call.getId() != currentCall.getId()) return; CallInfo ci; try { ci = call.getInfo(); } catch (Exception e) { ci = null; } Message m = Message.obtain(handler, MSG_TYPE.CALL_STATE, ci); m.sendToTarget(); if (ci != null && ci.getState() == pjsip_inv_state.PJSIP_INV_STATE_DISCONNECTED) { currentCall = null; } }
The snapshots of the code are taken from examples that come from the psjua download. Link to http repo . My code is the same. Any help is much appreciated
source share