Sanjivkumarroshan / csipsimple

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

a serious problem of the android timer (it blocks and other timers will not be fired) #2810

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.open the csipsimple and just wait
2.after a while(may be a half of day ,may be longer),it can not register anymore

What is the expected output? What do you see instead?
pjsip is registered ,but not

What version of the product are you using? On what device / operating
system?
the newest version compiled by myself ,Samsung note 2

Please provide any additional information below.

logs here:
10-10 19:37:42.122 V/Timer wrap(14265): FIRE START 147
10-10 19:37:42.122 V/libpjsip(14265): 19:37:42.129 timer_android.  FIRE timer 
20 of heap 1
10-10 19:37:42.122 W/libpjsip(14265): 19:37:42.131 timer_android.  release 
grp_lock : of 1 for this entry 147
10-10 19:37:42.122 W/libpjsip(14265): 19:37:42.134 timer_android.  do real job 
: of 1 for this entry 147
10-10 19:37:42.132 V/libpjsip(14265): 19:37:42.138 timer_android.  Scheduling 
timer 4 of 1 in 300000 ms @ 0x5fe70158
10-10 19:37:42.152 V/Timer wrap(14265): Schedule timer 131 in 300000ms @ 
199237637
10-10 19:37:42.192 W/libpjsip(14265): 19:37:42.195 timer_android.  done real 
job : of 1 for this entry 147
10-10 19:37:42.192 V/libpjsip(14265): 19:37:42.199 timer_android.  FIRE done 
and released
10-10 19:37:42.202 V/SipWakeLock(14265): release wakelock: holder count=0
10-10 19:37:42.212 V/Timer wrap(14265): FIRE DONE 147
10-10 19:37:46.552 V/Timer wrap(14265): FIRE Received TIMER 161 198942040 vs 
198942051
10-10 19:37:46.552 I/Timer wrap(14265): executorThread is still running ? true
10-10 19:37:46.552 V/SipWakeLock(14265): acquire wakelock: holder count=1
10-10 19:37:46.562 V/Timer wrap(14265): FIRE START 161
10-10 19:37:46.562 V/libpjsip(14265): 19:37:46.569 timer_android.  FIRE timer 
34 of heap 1
10-10 19:37:46.562 W/libpjsip(14265): 19:37:46.570 timer_android.  release 
grp_lock : of 1 for this entry 161
10-10 19:37:46.562 W/libpjsip(14265): 19:37:46.572 timer_android.  do real job 
: of 1 for this entry 161
10-10 19:37:46.572 D/libpjsip(14265): 19:37:46.578    pjsua_acc.c  Acc 2: 
setting registration..
10-10 19:37:46.572 V/libpjsip(14265): 19:37:46.580 timer_android.  .Ask to 
cancel something already fired or cancelled : -1 @ 0x5fe5ea90

you can see "FIRE DONE 147" but never see "FIRE DONE 161" ,it seems blocked in 
cb(ht, entry) of timer_android.c . it has happened many times

Original issue reported on code.google.com by tangxian...@gmail.com on 16 Oct 2014 at 2:31

GoogleCodeExporter commented 9 years ago

Original comment by r3gis...@gmail.com on 22 Jun 2015 at 11:31