sonuarya / csipsimple

Automatically exported from code.google.com/p/csipsimple
0 stars 0 forks source link

app crash after sending a message sometimes #2365

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?
1.just send a message

What is the expected output? What do you see instead?
send ok , but carsh soon

What version of the product are you using? On what operating system?
nightly on 4.1.2

Please provide any additional information below.
logs here:
05-16 02:01:16.046: I/ActivityManager(61): Starting: Intent { 
cmp=com.voipclient/.ui.messages.MessageActivity (has extras) } from pid 246
05-16 02:01:16.086: D/PhoneWindow(246): couldn't save which view has focus 
because the focused view android.view.View@4066c780 has no id.
05-16 02:01:16.096: D/SIP_HOME(246): On Pause SIPHOME
05-16 02:01:16.136: D/MessageActivity(246): savedInstanceState null
05-16 02:01:16.216: D/CallerInfo(246): Number found 1007, try People lookup
05-16 02:01:16.246: D/CallerInfo(246): sipUri sip:1007@27.24.190.6 miss cache
05-16 02:01:16.356: D/ComposeMessage(246): Resume compose message act
05-16 02:01:16.586: D/dalvikvm(246): GC_EXTERNAL_ALLOC freed 736K, 46% free 
4008K/7367K, external 2448K/2500K, paused 53ms
05-16 02:01:16.886: I/ActivityManager(61): Displayed 
com.voipclient/.ui.messages.MessageActivity: +778ms
05-16 02:01:20.976: D/ComposeMessage(246): sendMessage remoteFrom 
sip:1007@27.24.190.6
05-16 02:01:20.996: V/SipWakeLock(237): acquire wakelock: holder count=1
05-16 02:01:20.996: D/SIP SRV(237): will sms sip:1007@27.24.190.6
05-16 02:01:21.006: D/PjService(237): will call <sip:1007@27.24.190.6>
05-16 02:01:21.016: V/Timer wrap(237): Schedule 1 in 32000ms
05-16 02:01:21.016: V/Timer wrap(237): Schedule 2 in 500ms
05-16 02:01:21.026: V/Timer wrap(237): Cancel 2
05-16 02:01:21.026: V/Timer wrap(237): Cancel 1
05-16 02:01:21.036: V/Timer wrap(237): Schedule 1 in 5000ms
05-16 02:01:21.036: D/SIP UA Receiver(237): < LOCK CPU
05-16 02:01:21.036: W/dalvikvm(237): JNI WARNING: illegal start byte 0x87
05-16 02:01:21.036: W/dalvikvm(237):              string: 
'Accepted4.190.6<sip:18696115264@27.24.190.6><sip:18696115264@27.24.190.6>rt>��
��ek
05-16 02:01:21.036: W/dalvikvm(237): CGC   sip:18696115264@27.24.190.6 
SELF<sip:18696115264@27.24.190.6>sip:18696115264@27.24.190.6rt>��d|�
05-16 02:01:21.036: W/dalvikvm(237): CCcG%   sip:13659896255@27.24.190.6
05-16 02:01:21.036: W/dalvikvm(237): sip:13659896255@27.24.190.6"13659896255" 
<sip:13659896255@27.24.190.6><sip:18696115264@27.24.190.6>大好河山>�烂��
�
05-16 02:01:21.036: W/dalvikvm(237): 
CCcG    sip:13659896255@27.24.190.6    sip:13659896255@27.24.190.6"13659896255" 
<sip:13659896255@27.24.190.6><sip:18696115264@27.24.190.6>很纠结>��n�k
05-16 02:01:21.036: W/dalvikvm(237): 
CGC    sip:13659896255@27.24.190.6SELF<sip:13659896255@27.24.190.6>sip:13659
896255@27.24.190.6cv>����
05-16 02:01:21.036: W/dalvikvm(237): 
C   GC?  sip:13659896255@27.24.190.6SELF<sip:13659896255@27.24.190.6>sip:136598
96255@27.24.190.6'
05-16 02:01:21.036: W/dalvikvm(237):              in 
Lorg/pjsip/pjsua/pjsuaJNI;.pj_str_t_ptr_get 
(JLorg/pjsip/pjsua/pj_str_t;)Ljava/lang/String; (NewStringUTF)
05-16 02:01:21.036: I/dalvikvm(237): "Thread-168" prio=5 tid=16 NATIVE
05-16 02:01:21.036: I/dalvikvm(237):   | group="main" sCount=0 dsCount=0 
obj=0x405e8f40 self=0x30b4e8
05-16 02:01:21.036: I/dalvikvm(237):   | sysTid=323 nice=0 sched=0/0 
cgrp=default handle=2451440
05-16 02:01:21.036: I/dalvikvm(237):   | schedstat=( 12799786386 8460902935 
141752 )
05-16 02:01:21.036: I/dalvikvm(237):   at 
org.pjsip.pjsua.pjsuaJNI.pj_str_t_ptr_get(Native Method)
05-16 02:01:21.046: I/dalvikvm(237):   at 
org.pjsip.pjsua.pj_str_t.getPtr(pj_str_t.java:57)
05-16 02:01:21.046: I/dalvikvm(237):   at 
com.voipclient.pjsip.PjSipService.pjStrToString(PjSipService.java:2228)
05-16 02:01:21.046: I/dalvikvm(237):   at 
com.voipclient.pjsip.UAStateReceiver.on_pager_status(UAStateReceiver.java:328)
05-16 02:01:21.046: I/dalvikvm(237):   at 
org.pjsip.pjsua.pjsuaJNI.SwigDirector_Callback_on_pager_status(pjsuaJNI.java:137
2)
05-16 02:01:21.046: I/dalvikvm(237):   at dalvik.system.NativeStart.run(Native 
Method)
05-16 02:01:21.046: E/dalvikvm(237): VM aborting
05-16 02:01:21.077: D/Prefs(237): We are valid for MOBILE
05-16 02:01:21.127: D/SIP SRV(237): Inserted sip:1007@27.24.190.6
05-16 02:01:21.127: V/SipWakeLock(237): release wakelock: holder count=0
05-16 02:01:21.146: I/DEBUG(31): *** *** *** *** *** *** *** *** *** *** *** 
*** *** *** *** ***
05-16 02:01:21.146: I/DEBUG(31): Build fingerprint: 
'generic/sdk/generic:2.3.3/GRI34/101070:eng/test-keys'
05-16 02:01:21.146: I/DEBUG(31): pid: 237, tid: 323  >>> 
com.voipclient:sipStack <<<
05-16 02:01:21.146: I/DEBUG(31): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), 
fault addr deadd00d
05-16 02:01:21.146: I/DEBUG(31):  r0 fffffec4  r1 deadd00d  r2 00000026  r3 
00000000
05-16 02:01:21.146: I/DEBUG(31):  r4 800a45c0  r5 000000c0  r6 00000008  r7 
00000100
05-16 02:01:21.146: I/DEBUG(31):  r8 4910158c  r9 43b69ebc  10 43b69ea8  fp 
4372a5a8
05-16 02:01:21.146: I/DEBUG(31):  ip 800a4720  sp 49101530  lr afd19375  pc 
80045a4a  cpsr 20000030
05-16 02:01:21.166: D/Prefs(237): We are valid for MOBILE
05-16 02:01:21.166: D/SIP SRV(237): Direct sip start
05-16 02:01:21.176: V/ContactsAsyncHelper(246): No uri, just display 
placeholder.
05-16 02:01:21.186: V/SipWakeLock(237): acquire wakelock: holder count=1
05-16 02:01:21.236: D/Prefs(237): We are valid for MOBILE
05-16 02:01:21.346: D/Prefs(237): We are valid for MOBILE
05-16 02:01:21.346: D/SIP SRV(237): Start was asked and we should actually 
start now
05-16 02:01:21.346: D/SIP SRV(237): Ask pjservice to start itself
05-16 02:01:21.366: V/SipWakeLock(237): release wakelock: holder count=0
05-16 02:01:21.456: I/DEBUG(31):          #00  pc 00045a4a  
/system/lib/libdvm.so
05-16 02:01:21.456: I/DEBUG(31):          #01  pc 00037748  
/system/lib/libdvm.so
05-16 02:01:21.456: I/DEBUG(31):          #02  pc 000382f2  
/system/lib/libdvm.so
05-16 02:01:21.456: I/DEBUG(31):          #03  pc 0003837c  
/system/lib/libdvm.so
05-16 02:01:21.456: I/DEBUG(31):          #04  pc 000c1b08  
/data/data/com.voipclient/lib/libpjsipjni.so
05-16 02:01:21.456: I/DEBUG(31):          #05  pc 00017d74  
/system/lib/libdvm.so
05-16 02:01:21.456: I/DEBUG(31): code around pc:
05-16 02:01:21.456: I/DEBUG(31): 80045a28 447a4479 ed0cf7d1 20004c09 ee34f7d1 
05-16 02:01:21.456: I/DEBUG(31): 80045a38 447c4808 6bdb5823 d0002b00 49064798 
05-16 02:01:21.456: I/DEBUG(31): 80045a48 700a2226 eea0f7d1 000436b7 00045275 
05-16 02:01:21.456: I/DEBUG(31): 80045a58 0005eb82 fffffec4 deadd00d b510b40e 
05-16 02:01:21.456: I/DEBUG(31): 80045a68 4c0a4b09 447bb083 aa05591b 6b5bca02 
05-16 02:01:21.456: I/DEBUG(31): code around lr:
05-16 02:01:21.456: I/DEBUG(31): afd19354 b0834a0d 589c447b 26009001 686768a5 
05-16 02:01:21.476: I/DEBUG(31): afd19364 220ce008 2b005eab 1c28d003 47889901 
05-16 02:01:21.476: I/DEBUG(31): afd19374 35544306 d5f43f01 2c006824 b003d1ee 
05-16 02:01:21.476: I/DEBUG(31): afd19384 bdf01c30 000281a8 ffffff88 1c0fb5f0 
05-16 02:01:21.476: I/DEBUG(31): afd19394 43551c3d a904b087 1c16ac01 604d9004 
05-16 02:01:21.476: I/DEBUG(31): stack:
05-16 02:01:21.476: I/DEBUG(31):     491014f0  00000193  
05-16 02:01:21.476: I/DEBUG(31):     491014f4  afd18407  /system/lib/libc.so
05-16 02:01:21.476: I/DEBUG(31):     491014f8  afd4270c  /system/lib/libc.so
05-16 02:01:21.476: I/DEBUG(31):     491014fc  afd426b8  /system/lib/libc.so
05-16 02:01:21.476: I/DEBUG(31):     49101500  00000000  
05-16 02:01:21.476: I/DEBUG(31):     49101504  afd19375  /system/lib/libc.so
05-16 02:01:21.476: I/DEBUG(31):     49101508  0030b4e8  [heap]
05-16 02:01:21.476: I/DEBUG(31):     4910150c  afd183d9  /system/lib/libc.so
05-16 02:01:21.476: I/DEBUG(31):     49101510  00000100  
05-16 02:01:21.476: I/DEBUG(31):     49101514  0005eb82  [heap]
05-16 02:01:21.476: I/DEBUG(31):     49101518  000000c0  
05-16 02:01:21.476: I/DEBUG(31):     4910151c  00000008  
05-16 02:01:21.476: I/DEBUG(31):     49101520  00000100  
05-16 02:01:21.476: I/DEBUG(31):     49101524  afd18437  /system/lib/libc.so
05-16 02:01:21.476: I/DEBUG(31):     49101528  df002777  
05-16 02:01:21.476: I/DEBUG(31):     4910152c  e3a070ad  
05-16 02:01:21.476: I/DEBUG(31): #00 49101530  003e3714  [heap]
05-16 02:01:21.476: I/DEBUG(31):     49101534  8003774d  /system/lib/libdvm.so
05-16 02:01:21.476: I/DEBUG(31): #01 49101538  003e3714  [heap]
05-16 02:01:21.476: I/DEBUG(31):     4910153c  800382f7  /system/lib/libdvm.so
05-16 02:01:24.807: D/Zygote(33): Process 237 terminated by signal (11)
05-16 02:01:24.807: I/ActivityThread(246): Removing dead content provider: 
com.voipclient.db
05-16 02:01:24.816: I/ActivityManager(61): Process com.voipclient:sipStack (pid 
237) has died.
05-16 02:01:24.816: W/ActivityManager(61): Scheduling restart of crashed 
service com.voipclient/.service.SipService in 5000ms
05-16 02:01:24.816: I/ActivityManager(61): Kill com.voipclient (pid 246): 
provider com.voipclient.db.DBProvider in dying process com.voipclient:sipStack
05-16 02:01:24.816: I/Process(61): Sending signal. PID: 246 SIG: 9
05-16 02:01:24.816: W/AudioService(61): setMode() client died
05-16 02:01:24.816: W/AudioService(61):   AudioFocus   audio focus client died
05-16 02:01:24.816: W/AudioService(61):   AudioFocus   audio focus client died
05-16 02:01:24.866: I/ActivityManager(61): Process com.voipclient (pid 246) has 
died.
05-16 02:01:24.896: E/InputDispatcher(61): channel '406af768 
com.voipclient/com.voipclient.ui.messages.MessageActivity (server)' ~ Consumer 
closed input channel or an error occurred.  events=0x8
05-16 02:01:24.896: E/InputDispatcher(61): channel '406af768 
com.voipclient/com.voipclient.ui.messages.MessageActivity (server)' ~ Channel 
is unrecoverably broken and will be disposed!
05-16 02:01:24.896: I/WindowManager(61): WIN DEATH: Window{406c0530 
com.voipclient/com.voipclient.ui.SipHome paused=false}
05-16 02:01:24.906: I/WindowManager(61): WIN DEATH: Window{406af768 
com.voipclient/com.voipclient.ui.messages.MessageActivity paused=false}
05-16 02:01:24.916: E/InputDispatcher(61): Received spurious receive callback 
for unknown input channel.  fd=166, events=0x8
05-16 02:01:24.936: I/BootReceiver(61): Copying /data/tombstones/tombstone_08 
to DropBox (SYSTEM_TOMBSTONE)
05-16 02:01:25.016: D/dalvikvm(61): GC_FOR_MALLOC freed 686K, 43% free 
4517K/7879K, external 1316K/1828K, paused 72ms
05-16 02:01:25.036: I/ActivityManager(61): Start proc com.voipclient for 
activity com.voipclient/.ui.SipHome: pid=401 uid=10034 gids={3003, 3002, 1007, 
1015, 1006}

Original issue reported on code.google.com by tangxian...@gmail.com on 16 May 2013 at 2:27

GoogleCodeExporter commented 9 years ago
From the logs it's not logs from csipsimple but from
"com.voipclient".

Is it a fork of csipsimple? If so where can I find source code so that I can 
investigate?
Do you reproduce and can produce the logs with an csipsimple build from nightly 
build website?

Original comment by r3gis...@gmail.com on 16 May 2013 at 9:09

GoogleCodeExporter commented 9 years ago
first thanks , I am an android developer, the project what i am working
with is based on csipsimple.
now i found the bug occured in
function Java_org_pjsip_pjsua_pjsuaJNI_pj_1str_1t_1ptr_1get
as i know , chechjni.c will check  if the characters are legitimate . it
will crash if not passed.
please just see here:
https://groups.google.com/forum/?fromgroups#!topic/android-ndk/VgVBYzQ35AA

i think you should do something in
Java_org_pjsip_pjsua_pjsuaJNI_pj_1str_1t_1ptr_1get
to avoid potential problems

look forward to your reply !

Original comment by tangxian...@gmail.com on 17 May 2013 at 7:49