pjproject icon indicating copy to clipboard operation
pjproject copied to clipboard

Android Crash when load native lib pjsip, pjsua2 on android 7

Open bienpx224 opened this issue 5 years ago • 1 comments

Describe the bug

pjsip 2.11 built with bcg729, opus,. and everything do well but in andoird 7 ( api : 24) i got crash with error : Failed to load native lib pjsua2. Failed to load native library pjsua2 java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__sendto_chk" referenced by "/data/app/com.sipsdk.demo-2/lib/x86/libpjsua2.so"...

Steps to reproduce

run project pjsua2

PJSIP version

2.11

Context

pjsip 2.11 built with bcg729, opus,. and everything do well but in andoird 7 ( api : 24) i got crash with error : Failed to load native lib pjsua2.

Log, call stack, etc

Failed to load native library pjsua2
    java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__sendto_chk" referenced by "/data/app/com.sipsdk.demo-2/lib/x86/libpjsua2.so"...

bienpx224 avatar Sep 01 '21 03:09 bienpx224

I have same isssue like you, and I rebuild pjsip just in arm64-v8a, armeabi-v7a, x86. And IT SOLVED. Will it help you.

bienpx224 avatar Oct 26 '21 03:10 bienpx224