Hi
We want to run a PJSIP application on an Android device.We have successfully
compiled the PJSIP on an ubuntu 14.04 system for android version.We are
following the below link to build the PJSIP with openh264 and libyuv
support for android version.
https://trac.pjsip.org/repos/wiki/Getting-Started/Android
https://trac.pjsip.org/repos/wiki/Getting-Started/Android
We are using below Android sdk and ndk versions:Android sdk:
android-sdk_r24.4.1-linux.tgz
http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
Android ndk: android-ndk-r11c-linux-x86_64.zip
http://dl.google.com/android/repository/android-ndk-r11c-linux-x86_64.zip
We are facing following issues when we run the compiled PJSUA binary on
android KITKAT/Marshmallow versions:
1)For APP_PLATFORM as Android-23 and Marshmallow as android version:
For this we are using android-23 as a TARGET while compiling openh264 and
as an APP_PLATFORM while configuring PJSIP.But when we run the PJSUA binary
on adb shell of the connected device(Marshmallow version),we get the below
error.
*"error: only position independent executables (PIE) are supported"
[We tried to solve this error by modifying the CFLAGS value but no luck.*We
were not able to configure pjsip with -fPIC in CFLAGS
]
*2)For APP_PLATFORM as Android-16 and KITKAT as android version:*For this
we are using android-16 as a TARGET while compiling openh264 and as an
APP_PLATFORM while configuring PJSIP.But when we run the pjsua binary on
adb shell of the connected device(KITKAT version),we are getting
segmentation fault.
Below are the logcat traces.
*V/XTWiFiOS( 1001): filter out passive location reportV/WLAN_PSA( 262): NL
MSG, len[048], NL type[0x11] WNI type[0x5050] len[028]V/WLAN_PSA( 262): NL
MSG, len[048], NL type[0x11] WNI type[0x5050] len[028]E/LocSvc_libulp(
1001): I/===> int ulp_msg_process_system_update(UlpSystemEvent) line 1460
E/LocSvc_libulp( 1001): I/int
ulp_msg_process_system_update(UlpSystemEvent): systemEvent:5
E/LocSvc_libulp( 1001): I/===> int
ulp_brain_process_system_update(UlpSystemEvent) line 2345 V/WLAN_PSA(
262): NL MSG, len[048], NL type[0x11] WNI type[0x5050] len[028]F/libc
(30123): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 30123
(pjsua-arm-unkno)I/DEBUG ( 246): *** *** *** *** *** *** *** *** *** ***
*** *** *** *** *** **I/DEBUG ( 246): AM write failure (32 / Broken
pipe)I/DEBUG ( 246): Build fingerprint:
'qcom/msm8909_512/msm8909_512:4.4.4/KTU84P/eng.lnxbuild.20150331.214016:userdebug/test-keys'I/DEBUG
( 246): Revision: '0'I/DEBUG ( 246): pid: 30123, tid: 30123, name:
pjsua-arm-unkno >>> ./pjsua-arm-unknown-linux-androideabi <<<I/DEBUG (
246): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr
00000000--------- beginning of /dev/log/systemW/NativeCrashListener( 1001):
Couldn't find ProcessRecord for pid 30123
*Can somebody help us to solve the above issues or tell us the correct way
to run pjsua binary on an android device?
*
With Warm Regards,
Vikas Sharma
VVDN Technologies Pvt Ltd
Cell* : *9971507491 | Skype : vsvikas2013
Just a little correction in the above query:
We were actually using Lollipop instead of Marshmallow android version.
With Warm Regards,
Vikas Sharma
VVDN Technologies Pvt Ltd
Cell* : *9971507491 | Skype : vsvikas2013
On Thu, Apr 28, 2016 at 10:59 PM, Vikas Sharma vikas.sharma@vvdntech.in
wrote:
Hi
We want to run a PJSIP application on an Android device.We have successfully
compiled the PJSIP on an ubuntu 14.04 system for android version.We are
following the below link to build the PJSIP with openh264 and libyuv
support for android version.
https://trac.pjsip.org/repos/wiki/Getting-Started/Android
https://trac.pjsip.org/repos/wiki/Getting-Started/Android
We are using below Android sdk and ndk versions:Android sdk:
android-sdk_r24.4.1-linux.tgz
http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
Android ndk: android-ndk-r11c-linux-x86_64.zip
http://dl.google.com/android/repository/android-ndk-r11c-linux-x86_64.zip
We are facing following issues when we run the compiled PJSUA binary on
android KITKAT/Marshmallow versions:
1)For APP_PLATFORM as Android-23 and Marshmallow as android version:
For this we are using android-23 as a TARGET while compiling openh264 and
as an APP_PLATFORM while configuring PJSIP.But when we run the PJSUA binary
on adb shell of the connected device(Marshmallow version),we get the below
error.
*"error: only position independent executables (PIE) are supported"
[We tried to solve this error by modifying the CFLAGS value but no luck.*We
were not able to configure pjsip with -fPIC in CFLAGS
]
*2)For APP_PLATFORM as Android-16 and KITKAT as android version:*For this
we are using android-16 as a TARGET while compiling openh264 and as an
APP_PLATFORM while configuring PJSIP.But when we run the pjsua binary on
adb shell of the connected device(KITKAT version),we are getting
segmentation fault.
Below are the logcat traces.
*V/XTWiFiOS( 1001): filter out passive location reportV/WLAN_PSA( 262):
NL MSG, len[048], NL type[0x11] WNI type[0x5050] len[028]V/WLAN_PSA( 262):
NL MSG, len[048], NL type[0x11] WNI type[0x5050] len[028]E/LocSvc_libulp(
1001): I/===> int ulp_msg_process_system_update(UlpSystemEvent) line 1460
E/LocSvc_libulp( 1001): I/int
ulp_msg_process_system_update(UlpSystemEvent): systemEvent:5
E/LocSvc_libulp( 1001): I/===> int
ulp_brain_process_system_update(UlpSystemEvent) line 2345 V/WLAN_PSA(
262): NL MSG, len[048], NL type[0x11] WNI type[0x5050] len[028]F/libc
(30123): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 30123
(pjsua-arm-unkno)I/DEBUG ( 246): *** *** *** *** *** *** *** *** *** ***
*** *** *** *** *** **I/DEBUG ( 246): AM write failure (32 / Broken
pipe)I/DEBUG ( 246): Build fingerprint:
'qcom/msm8909_512/msm8909_512:4.4.4/KTU84P/eng.lnxbuild.20150331.214016:userdebug/test-keys'I/DEBUG
( 246): Revision: '0'I/DEBUG ( 246): pid: 30123, tid: 30123, name:
pjsua-arm-unkno >>> ./pjsua-arm-unknown-linux-androideabi <<<I/DEBUG (
246): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr
00000000--------- beginning of /dev/log/systemW/NativeCrashListener( 1001):
Couldn't find ProcessRecord for pid 30123
*Can somebody help us to solve the above issues or tell us the correct way
to run pjsua binary on an android device?
*
With Warm Regards,
Vikas Sharma
VVDN Technologies Pvt Ltd
Cell* : *9971507491 | Skype : vsvikas2013
Hi,
Can we have some workaround details on the above issues.
With Warm Regards,
Vikas Sharma
VVDN Technologies Pvt Ltd
Cell* : *9971507491 | Skype : vsvikas2013
On Thu, Apr 28, 2016 at 11:12 PM, Vikas Sharma vikas.sharma@vvdntech.in
wrote:
Just a little correction in the above query:
We were actually using Lollipop instead of Marshmallow android version.
With Warm Regards,
Vikas Sharma
VVDN Technologies Pvt Ltd
Cell* : *9971507491 | Skype : vsvikas2013
On Thu, Apr 28, 2016 at 10:59 PM, Vikas Sharma vikas.sharma@vvdntech.in
wrote:
Hi
We want to run a PJSIP application on an Android device.We have successfully
compiled the PJSIP on an ubuntu 14.04 system for android version.We are
following the below link to build the PJSIP with openh264 and libyuv
support for android version.
https://trac.pjsip.org/repos/wiki/Getting-Started/Android
https://trac.pjsip.org/repos/wiki/Getting-Started/Android
We are using below Android sdk and ndk versions:Android sdk:
android-sdk_r24.4.1-linux.tgz
http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
Android ndk: android-ndk-r11c-linux-x86_64.zip
http://dl.google.com/android/repository/android-ndk-r11c-linux-x86_64.zip
We are facing following issues when we run the compiled PJSUA binary on
android KITKAT/Marshmallow versions:
1)For APP_PLATFORM as Android-23 and Marshmallow as android version:
For this we are using android-23 as a TARGET while compiling openh264 and
as an APP_PLATFORM while configuring PJSIP.But when we run the PJSUA binary
on adb shell of the connected device(Marshmallow version),we get the below
error.
*"error: only position independent executables (PIE) are
supported" [We tried to solve this error by modifying the CFLAGS
value but no luck.*We were not able to configure pjsip with -fPIC in
CFLAGS
]
*2)For APP_PLATFORM as Android-16 and KITKAT as android version:*For
this we are using android-16 as a TARGET while compiling openh264 and as an
APP_PLATFORM while configuring PJSIP.But when we run the pjsua binary on
adb shell of the connected device(KITKAT version),we are getting
segmentation fault.
Below are the logcat traces.
*V/XTWiFiOS( 1001): filter out passive location reportV/WLAN_PSA( 262):
NL MSG, len[048], NL type[0x11] WNI type[0x5050] len[028]V/WLAN_PSA( 262):
NL MSG, len[048], NL type[0x11] WNI type[0x5050] len[028]E/LocSvc_libulp(
1001): I/===> int ulp_msg_process_system_update(UlpSystemEvent) line 1460
E/LocSvc_libulp( 1001): I/int
ulp_msg_process_system_update(UlpSystemEvent): systemEvent:5
E/LocSvc_libulp( 1001): I/===> int
ulp_brain_process_system_update(UlpSystemEvent) line 2345 V/WLAN_PSA(
262): NL MSG, len[048], NL type[0x11] WNI type[0x5050] len[028]F/libc
(30123): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 30123
(pjsua-arm-unkno)I/DEBUG ( 246): *** *** *** *** *** *** *** *** *** ***
*** *** *** *** *** **I/DEBUG ( 246): AM write failure (32 / Broken
pipe)I/DEBUG ( 246): Build fingerprint:
'qcom/msm8909_512/msm8909_512:4.4.4/KTU84P/eng.lnxbuild.20150331.214016:userdebug/test-keys'I/DEBUG
( 246): Revision: '0'I/DEBUG ( 246): pid: 30123, tid: 30123, name:
pjsua-arm-unkno >>> ./pjsua-arm-unknown-linux-androideabi <<<I/DEBUG (
246): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr
00000000--------- beginning of /dev/log/systemW/NativeCrashListener( 1001):
Couldn't find ProcessRecord for pid 30123
*Can somebody help us to solve the above issues or tell us the correct
way to run pjsua binary on an android device?
*
With Warm Regards,
Vikas Sharma
VVDN Technologies Pvt Ltd
Cell* : *9971507491 | Skype : vsvikas2013
Hi,
I haven't had any of the issues you pointed out on Android 4.4 with PJSIP 2.4.5 compiled with openh264 and libyuv support.
By the logs you posted I assume you are either running on armv5 or arm-v7a.
I've made a complete automated build environment for PJSIP on Android and open sourced it.
If you want to try to build the libraries yourself by using it, you can find it here: https://github.com/gotev/pjsip-android-builder
I'm curious to see if you will still get the same error messages.
Alex Gotev
MobiMESH - VoiSmart Development Team
Via Benigno Crespi, 57
20159 Milano
web: http://www.mobimesh.it http://www.voismart.it
Da: "Vikas Sharma" vikas.sharma@vvdntech.in
A: "pjsip" pjsip@lists.pjsip.org
Inviato: Venerdì, 29 aprile 2016 9:16:43
Oggetto: Re: [pjsip] ISSUES While Running PJSUA Binary on ANDROID Device
Hi,
Can we have some workaround details on the above issues.
With Warm Regards,
Vikas Sharma
VVDN Technologies Pvt Ltd
Cel l : 9971507491 | Skype : vsvikas2013
On Thu, Apr 28, 2016 at 11:12 PM, Vikas Sharma < vikas.sharma@vvdntech.in > wrote:
Just a little correction in the above query:
We were actually using Lollipop instead of Marshmallow android version.
With Warm Regards,
Vikas Sharma
VVDN Technologies Pvt Ltd
Cel l : 9971507491 | Skype : vsvikas2013
On Thu, Apr 28, 2016 at 10:59 PM, Vikas Sharma < vikas.sharma@vvdntech.in > wrote:
BQ_BEGIN
Hi
We want to run a PJSIP application on an Android device.We have successfully compiled the PJSIP on an ubuntu 14.04 system for android version.We are following the below link to build the PJSIP with openh264 and libyuv support for android version.
https://trac.pjsip.org/repos/wiki/Getting-Started/Android
We are using below Android sdk and ndk versions:
Android sdk: android-sdk_r24.4.1-linux.tgz
Android ndk: android-ndk-r11c-linux-x86_64.zip
We are facing following issues when we run the compiled PJSUA binary on android KITKAT/Marshmallow versions:
1)For APP_PLATFORM as Android-23 and Marshmallow as android version:
For this we are using android-23 as a TARGET while compiling openh264 and as an APP_PLATFORM while configuring PJSIP.But when we run the PJSUA binary on adb shell of the connected device(Marshmallow version),we get the below error.
"error: only position independent executables (PIE) are supported" [We tried to solve this error by modifying the CFLAGS value but no luck . We were not able to configure pjsip with -fPIC in CFLAGS ]
2)For APP_PLATFORM as Android-16 and KITKAT as android version:
For this we are using android-16 as a TARGET while compiling openh264 and as an APP_PLATFORM while configuring PJSIP.But when we run the pjsua binary on adb shell of the connected device(KITKAT version),we are getting segmentation fault.
Below are the logcat traces.
V/XTWiFiOS( 1001): filter out passive location report
V/WLAN_PSA( 262): NL MSG, len[048], NL type[0x11] WNI type[0x5050] len[028]
V/WLAN_PSA( 262): NL MSG, len[048], NL type[0x11] WNI type[0x5050] len[028]
E/LocSvc_libulp( 1001): I/===> int ulp_msg_process_system_update(UlpSystemEvent) line 1460
E/LocSvc_libulp( 1001): I/int ulp_msg_process_system_update(UlpSystemEvent): systemEvent:5
E/LocSvc_libulp( 1001): I/===> int ulp_brain_process_system_update(UlpSystemEvent) line 2345
V/WLAN_PSA( 262): NL MSG, len[048], NL type[0x11] WNI type[0x5050] len[028]
F/libc (30123): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 30123 (pjsua-arm-unkno)
I/DEBUG ( 246): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 246): AM write failure (32 / Broken pipe)
I/DEBUG ( 246): Build fingerprint: 'qcom/msm8909_512/msm8909_512:4.4.4/KTU84P/eng.lnxbuild.20150331.214016:userdebug/test-keys'
I/DEBUG ( 246): Revision: '0'
I/DEBUG ( 246): pid: 30123, tid: 30123, name: pjsua-arm-unkno >>> ./pjsua-arm-unknown-linux-androideabi <<<
I/DEBUG ( 246): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
--------- beginning of /dev/log/system
W/NativeCrashListener( 1001): Couldn't find ProcessRecord for pid 30123
Can somebody help us to solve the above issues or tell us the correct way to run pjsua binary on an android device?
With Warm Regards,
Vikas Sharma
VVDN Technologies Pvt Ltd
Cel l : 9971507491 | Skype : vsvikas2013
BQ_END
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Starce output while running pjsua binary on android for above issue:
+++ killed by SIGSEGV +++
Segmentation fault
Logcat Traces:/WLAN_PSA( 262): NL MSG, len[048], NL type[0x11] WNI
type[0x5050] len[028]
V/WLAN_PSA( 262): NL MSG, len[4078], NL type[0x1C] WNI type[0x5900]
len[54799]
F/libc ( 7877): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread
7877 (simpleua)
I/DEBUG ( 248): *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 248): AM write failure (32 / Broken pipe)
I/DEBUG ( 248): Build fingerprint:
'qcom/msm8909_512/msm8909_512:4.4.4/KTU84P/eng.lnxbuild.20150331.214016:userdebug/test-keys'
I/DEBUG ( 248): Revision: '0'
W/NativeCrashListener( 1317): Couldn't find ProcessRecord for pid 7877
I/DEBUG ( 248): pid: 7877, tid: 7877, name: simpleua >>>
./system/bin/simpleua <<<
I/DEBUG ( 248): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr
00000000
I/DEBUG ( 248): r0 00000000 r1 00000ffc r2 00000001 r3 b6f44678
I/DEBUG ( 248): r4 00000000 r5 00000000 r6 00000000 r7 00000000
I/DEBUG ( 248): r8 00000000 r9 00000000 sl 00000000 fp 00000000
I/DEBUG ( 248): ip 00000000 sp beb27960 lr b6f35885 pc 00000000
cpsr 600e0010
I/DEBUG ( 248): d0 0000000000000000 d1 b611a9b400000001
Kindly tell us if we can get some information from these logs.
With Warm Regards,
Vikas Sharma
VVDN Technologies Pvt Ltd
Cell* : *9971507491 | Skype : vsvikas2013
On Fri, Apr 29, 2016 at 12:46 PM, Vikas Sharma vikas.sharma@vvdntech.in
wrote:
Hi,
Can we have some workaround details on the above issues.
With Warm Regards,
Vikas Sharma
VVDN Technologies Pvt Ltd
Cell* : *9971507491 | Skype : vsvikas2013
On Thu, Apr 28, 2016 at 11:12 PM, Vikas Sharma vikas.sharma@vvdntech.in
wrote:
Just a little correction in the above query:
We were actually using Lollipop instead of Marshmallow android version.
With Warm Regards,
Vikas Sharma
VVDN Technologies Pvt Ltd
Cell* : *9971507491 | Skype : vsvikas2013
On Thu, Apr 28, 2016 at 10:59 PM, Vikas Sharma vikas.sharma@vvdntech.in
wrote:
Hi
We want to run a PJSIP application on an Android device.We have successfully
compiled the PJSIP on an ubuntu 14.04 system for android version.We
are following the below link to build the PJSIP with openh264 and
libyuv support for android version.
https://trac.pjsip.org/repos/wiki/Getting-Started/Android
https://trac.pjsip.org/repos/wiki/Getting-Started/Android
We are using below Android sdk and ndk versions:Android sdk:
android-sdk_r24.4.1-linux.tgz
http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
Android ndk: android-ndk-r11c-linux-x86_64.zip
http://dl.google.com/android/repository/android-ndk-r11c-linux-x86_64.zip
We are facing following issues when we run the compiled PJSUA binary on
android KITKAT/Marshmallow versions:
1)For APP_PLATFORM as Android-23 and Marshmallow as android version:
For this we are using android-23 as a TARGET while compiling openh264
and as an APP_PLATFORM while configuring PJSIP.But when we run the PJSUA
binary on adb shell of the connected device(Marshmallow version),we get the
below error.
*"error: only position independent executables (PIE) are
supported" [We tried to solve this error by modifying the CFLAGS
value but no luck.*We were not able to configure pjsip with -fPIC in
CFLAGS
]
*2)For APP_PLATFORM as Android-16 and KITKAT as android version:*For
this we are using android-16 as a TARGET while compiling openh264 and as an
APP_PLATFORM while configuring PJSIP.But when we run the pjsua binary on
adb shell of the connected device(KITKAT version),we are getting
segmentation fault.
Below are the logcat traces.
*V/XTWiFiOS( 1001): filter out passive location reportV/WLAN_PSA( 262):
NL MSG, len[048], NL type[0x11] WNI type[0x5050] len[028]V/WLAN_PSA( 262):
NL MSG, len[048], NL type[0x11] WNI type[0x5050] len[028]E/LocSvc_libulp(
1001): I/===> int ulp_msg_process_system_update(UlpSystemEvent) line 1460
E/LocSvc_libulp( 1001): I/int
ulp_msg_process_system_update(UlpSystemEvent): systemEvent:5
E/LocSvc_libulp( 1001): I/===> int
ulp_brain_process_system_update(UlpSystemEvent) line 2345 V/WLAN_PSA(
262): NL MSG, len[048], NL type[0x11] WNI type[0x5050] len[028]F/libc
(30123): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 30123
(pjsua-arm-unkno)I/DEBUG ( 246): *** *** *** *** *** *** *** *** *** ***
*** *** *** *** *** **I/DEBUG ( 246): AM write failure (32 / Broken
pipe)I/DEBUG ( 246): Build fingerprint:
'qcom/msm8909_512/msm8909_512:4.4.4/KTU84P/eng.lnxbuild.20150331.214016:userdebug/test-keys'I/DEBUG
( 246): Revision: '0'I/DEBUG ( 246): pid: 30123, tid: 30123, name:
pjsua-arm-unkno >>> ./pjsua-arm-unknown-linux-androideabi <<<I/DEBUG (
246): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr
00000000--------- beginning of /dev/log/systemW/NativeCrashListener( 1001):
Couldn't find ProcessRecord for pid 30123
*Can somebody help us to solve the above issues or tell us the correct
way to run pjsua binary on an android device?
*
With Warm Regards,
Vikas Sharma
VVDN Technologies Pvt Ltd
Cell* : *9971507491 | Skype : vsvikas2013