pjsip-android
pjsip-android copied to clipboard
Fatal signal 11 (SIGSEGV)
Hi,
I will try PjSip but when set account, my app crash with error: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xe in tid 24345 (SipService)
here what a do:
mAccount = SipAccountData()
mAccount.host = serverSip
mAccount.realm = serverSip
mAccount.port = port
mAccount.username = userName
mAccount.password = userPwd
mAccountId = SipServiceCommand.setAccount(this, mAccount)
log console:
2021-12-19 11:34:25.993 25261-25300/com.henkadev.testpjsip D/SipService: PJSIP started! 2021-12-19 11:34:25.995 25261-25261/com.henkadev.testpjsip D/SipServiceBR: SIP service stack started 2021-12-19 11:34:26.032 25261-25300/com.henkadev.testpjsip D/SipService: SIP account sip:username@serverSip successfully added 2021-12-19 11:34:26.032 25261-25300/com.henkadev.testpjsip D/SipService: SipService created! 2021-12-19 11:34:26.033 25261-25300/com.henkadev.testpjsip D/SipService: Reconfiguring sip:username@serverSip 2021-12-19 11:34:26.033 25261-25300/com.henkadev.testpjsip D/SipService: addAccount => SIP account setRegistration
2021-12-19 11:34:26.035 25261-25300/com.henkadev.testpjsip A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xe in tid 25300 (SipService), pid 25261 (v.testpjsip)
2021-12-19 11:34:26.065 25261-25261/com.henkadev.testpjsip D/SipServiceBR: onRegistration - accountID: username@serverSip , registrationStateCode: 200 2021-12-19 11:34:26.065 25261-25261/com.henkadev.testpjsip I/MainActivity: onRegistration: 200
Do you know what a do wrong ?or How debug ?
Thanks!
I am facing the same issue when the user hangs up the call on a poor internet connection.PJSIP has no proper documentation to figure out these types of bugs and crashes.
Try with latest develop, it has native debug and logs can be enabled via api. Check it out