Re: pjsip android - set max call to 1 makes app crash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Good day for all!
There is no error in lib it was my fault. I figure out what was wrong in my app. The problem was in class MyCall extends Call in callback onCallState. I remove:

if (ci.getState() ==  pjsip_inv_state.PJSIP_INV_STATE_DISCONNECTED)
{
	this.delete();
}

after add it again, like it was in orginal, problem resolved itself.
So remember to delete your calls :)

br
Andrzej



W dniu 2016-12-09 o 11:24, Andrzej Grajnert pisze:
Hi all,
on android app I have a crash connected with set max call to 1 by
UaConfig ua_cfg = epConfig.getUaConfig();
ua_cfg.setMaxCalls(1L)
or in config_site_sample #define PJSUA_MAX_CALLS 1

on third connection(one after one) i have crash in library. Without set
max calls it's not crash, so i think this is connected.

here is log from crash:
12-09 10:13:46.931 486-486/? A/DEBUG: Build fingerprint:
'lge/pplus_global_com/pplus:6.0/MRA58K/162530832dd57:user/release-keys'
12-09 10:13:46.931 486-486/? A/DEBUG: Revision: '11'
12-09 10:13:46.932 486-486/? A/DEBUG: ABI: 'arm64'
12-09 10:13:46.932 486-486/? A/DEBUG: pid: 22021, tid: 22031, name:
FinalizerDaemon >>> ... <<<
12-09 10:13:46.932 486-486/? A/DEBUG: signal 6 (SIGABRT), code -6
(SI_TKILL), fault addr --------
12-09 10:13:46.958 504-642/? E/ThermalEngine: ACTION: CLUSTER - Setting
CLUSTER[1] to 1689600
12-09 10:13:46.977 486-486/? A/DEBUG: Abort message:
'../src/pj/os_core_unix.c:692: pj_thread_this: assertion "!"Calling
pjlib from unknown/external thread. You must " "register external
threads with pj_thread_register() " "before calling any pjlib
functions."" failed'
12-09 10:13:46.977 486-486/? A/DEBUG: x0 0000000000000000 x1
000000000000560f x2 0000000000000006 x3 0000000000000000
12-09 10:13:46.977 486-486/? A/DEBUG: x4 0000000000000000 x5
0000000000000001 x6 0000000000000000 x7 0000000000000000
12-09 10:13:46.977 486-486/? A/DEBUG: x8 0000000000000083 x9
feff63646b686065 x10 7f7f7f7f7f7f7f7f x11 0101010101010101
12-09 10:13:46.977 486-486/? A/DEBUG: x12 0000007fb5f59890 x13
c7e91afb0c3707ab x14 c7e91afb0c3707ab x15 0033fd9eb23e6aa9
12-09 10:13:46.977 486-486/? A/DEBUG: x16 0000007fb5f53568 x17
0000007fb5ee3a74 x18 0000007fb167d586 x19 0000007fb167f500
12-09 10:13:46.977 486-486/? A/DEBUG: x20 0000007fb167f440 x21
000000000000000b x22 0000000000000006 x23 0000000013a69120
12-09 10:13:46.977 486-486/? A/DEBUG: x24 0000007fb167f2a8 x25
0000007fb167f2c8 x26 000000007239f701 x27 0000000071834c28
12-09 10:13:46.977 486-486/? A/DEBUG: x28 0000007fa0df74c0 x29
0000007fb167d800 x30 0000007fb5ee1c78
12-09 10:13:46.977 486-486/? A/DEBUG: sp 0000007fb167d800 pc
0000007fb5ee3a7c pstate 0000000020000000
12-09 10:13:46.988 486-486/? A/DEBUG: backtrace:
12-09 10:13:46.988 486-486/? A/DEBUG: #00 pc 0000000000068a7c
/system/lib64/libc.so (tgkill+8)
12-09 10:13:46.988 486-486/? A/DEBUG: #01 pc 0000000000066c74
/system/lib64/libc.so (pthread_kill+68)
12-09 10:13:46.988 486-486/? A/DEBUG: #02 pc 0000000000023b38
/system/lib64/libc.so (raise+28)
12-09 10:13:46.988 486-486/? A/DEBUG: #03 pc 000000000001e2d8
/system/lib64/libc.so (abort+60)
12-09 10:13:46.988 486-486/? A/DEBUG: #04 pc 0000000000021720
/system/lib64/libc.so (libc_fatal+128)
12-09 10:13:46.988 486-486/? A/DEBUG: #05 pc 000000000001e3b0
/system/lib64/libc.so (assert2+40)
12-09 10:13:46.988 486-486/? A/DEBUG: #06 pc 00000000002e41b0
/data/app/...-1/lib/arm64/libpjsua2.so (pj_thread_this+72)
12-09 10:13:46.988 486-486/? A/DEBUG: #07 pc 00000000002eefe0
/data/app/...-1/lib/arm64/libpjsua2.so (pj_log+1576)
12-09 10:13:46.988 486-486/? A/DEBUG: #08 pc 00000000002ef5c8
/data/app/...-1/lib/arm64/libpjsua2.so (pj_log_4+172)
12-09 10:13:46.988 504-642/? E/ThermalEngine: ACTION: CLUSTER - Setting
CLUSTER[1] to 1824000
12-09 10:13:46.988 486-486/? A/DEBUG: #09 pc 0000000000170b08
/data/app/...-1/lib/arm64/libpjsua2.so (pjsua_call_hangup+300)
12-09 10:13:46.988 486-486/? A/DEBUG: #10 pc 000000000014fc18
/data/app/...-1/lib/arm64/libpjsua2.so
(_ZN2pj4Call6hangupERKNS_11CallOpParamE+116)
12-09 10:13:46.988 486-486/? A/DEBUG: #11 pc 000000000014ee50
/data/app/...-1/lib/arm64/libpjsua2.so (_ZN2pj4CallD1Ev+140)
12-09 10:13:46.988 486-486/? A/DEBUG: #12 pc 00000000000bfda0
/data/app/...-1/lib/arm64/libpjsua2.so (_ZN17SwigDirector_CallD1Ev+96)
12-09 10:13:46.988 486-486/? A/DEBUG: #13 pc 00000000000bfe08
/data/app/...-1/lib/arm64/libpjsua2.so (_ZN17SwigDirector_CallD0Ev+16)
12-09 10:13:46.988 486-486/? A/DEBUG: #14 pc 00000000001029e0
/data/app/...-1/lib/arm64/libpjsua2.so
(Java_org_pjsip_pjsua2_pjsua2JNI_delete_1Call+68)
12-09 10:13:46.988 486-486/? A/DEBUG: #15 pc 00000000001a8330
/data/data/.../cache/slice-intermediates-exploded-aar-pjsualib-release_2dae88a6c41fc49006c468d42159ae10bd8a3f61-classes.dex
(offset 0x6d000) (void org.pjsip.pjsua2.pjsua2JNI.delete_Call(long)+132)
12-09 10:13:46.988 486-486/? A/DEBUG: #16 pc 000000000008ee24
/data/data/.../cache/slice-intermediates-exploded-aar-pjsualib-release_2dae88a6c41fc49006c468d42159ae10bd8a3f61-classes.dex
(offset 0x6d000) (void org.pjsip.pjsua2.Call.delete()+248)
12-09 10:13:46.988 486-486/? A/DEBUG: #17 pc 000000000008f0b4
/data/data/.../cache/slice-intermediates-exploded-aar-pjsualib-release_2dae88a6c41fc49006c468d42159ae10bd8a3f61-classes.dex
(offset 0x6d000) (void org.pjsip.pjsua2.Call.finalize()+56)
12-09 10:13:46.988 486-486/? A/DEBUG: #18 pc 0000000003815d84
/system/framework/arm64/boot.oat (offset 0x2bc5000)

hope it help.
BR, Andrzej



_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux