anongit / mytracks

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

updateTrackerThread is not stopped properly #191

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
While analyzing the app freezes, I came across a few cases where the stack 
trace shows multiple updateTrackerThread (e.g. 
http://market.android.com/publish/Home#SHOW_FEEDBACK:ANR_DETAILS:com.google.andr
oid.maps.mytracks:com.google.android.maps.mytracks%252Fcom.google.android.apps.m
ytracks.MyTracksList:ANR+keyDispatchingTimedOut:2):

DALVIK THREADS:
"main" prio=5 tid=1 NATIVE
  | group="main" sCount=1 dsCount=0 s=N obj=0x4001d8c0 self=0xccc8
  | sysTid=1729 nice=0 sched=0/0 cgrp=default handle=-1345017816
  | schedstat=( 25614013784 7283935425 14437 )
  at android.database.sqlite.SQLiteStatement.native_execute(Native Method)
  at android.database.sqlite.SQLiteStatement.execute(SQLiteStatement.java:55)
  at android.database.sqlite.SQLiteDatabase.delete(SQLiteDatabase.java:1598)
  at com.google.android.apps.mytracks.content.MyTracksProvider.delete(MyTracksProvider.java:186)
  at android.content.ContentProvider$Transport.delete(ContentProvider.java:198)
  at android.content.ContentResolver.delete(ContentResolver.java:675)
  at com.google.android.apps.mytracks.content.MyTracksProviderUtilsImpl.deleteAllTracks(MyTracksProviderUtilsImpl.java:452)
  at com.google.android.apps.mytracks.MyTracksDeleteAllTracks$1.onClick(MyTracksDeleteAllTracks.java:61)
  at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:158)
  at android.os.Handler.dispatchMessage(Handler.java:99)
  at android.os.Looper.loop(Looper.java:123)
  at android.app.ActivityThread.main(ActivityThread.java:4627)
  at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:521)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
  at dalvik.system.NativeStart.main(Native Method)

"updateTrackThread" prio=5 tid=10 WAIT
  | group="main" sCount=1 dsCount=0 s=N obj=0x44927048 self=0x669700
  | sysTid=1757 nice=0 sched=0/0 cgrp=default handle=7969336
  | schedstat=( 591430666 597351073 238 )
  at java.lang.Object.wait(Native Method)
  - waiting on <0x44927238> (a android.os.MessageQueue)
  at java.lang.Object.wait(Object.java:288)
  at android.os.MessageQueue.next(MessageQueue.java:146)
  at android.os.Looper.loop(Looper.java:110)
  at android.os.HandlerThread.run(HandlerThread.java:60)

"Binder Thread #3" prio=5 tid=13 NATIVE
  | group="main" sCount=1 dsCount=0 s=N obj=0x449296d8 self=0x73fc38
  | sysTid=1754 nice=0 sched=0/0 cgrp=default handle=5571344
  | schedstat=( 22033692 38818357 71 )
  at dalvik.system.NativeStart.run(Native Method)

"updateTrackThread" prio=5 tid=7 WAIT
  | group="main" sCount=1 dsCount=0 s=N obj=0x44881a20 self=0x682010
  | sysTid=1746 nice=0 sched=0/0 cgrp=default handle=6865536
  | schedstat=( 485870366 282318110 314 )
  at java.lang.Object.wait(Native Method)
  - waiting on <0x447a5c48> (a android.os.MessageQueue)
  at java.lang.Object.wait(Object.java:288)
  at android.os.MessageQueue.next(MessageQueue.java:146)
  at android.os.Looper.loop(Looper.java:110)
  at android.os.HandlerThread.run(HandlerThread.java:60)

"updateTrackThread" prio=5 tid=9 WAIT
  | group="main" sCount=1 dsCount=0 s=N obj=0x4484fe18 self=0xdf480
  | sysTid=1738 nice=0 sched=0/0 cgrp=default handle=914880
  | schedstat=( 1469207764 827941895 549 )
  at java.lang.Object.wait(Native Method)
  - waiting on <0x44848df0> (a android.os.MessageQueue)
  at java.lang.Object.wait(Object.java:288)
  at android.os.MessageQueue.next(MessageQueue.java:146)
  at android.os.Looper.loop(Looper.java:110)
  at android.os.HandlerThread.run(HandlerThread.java:60)

"Binder Thread #2" prio=5 tid=6 NATIVE
  | group="main" sCount=1 dsCount=0 s=N obj=0x4476a3c0 self=0x11fbc8
  | sysTid=1734 nice=0 sched=0/0 cgrp=default handle=1174296
  | schedstat=( 68450924 76293948 182 )
  at dalvik.system.NativeStart.run(Native Method)

"Binder Thread #1" prio=5 tid=5 NATIVE
  | group="main" sCount=1 dsCount=0 s=N obj=0x44769600 self=0x11e950
  | sysTid=1733 nice=0 sched=0/0 cgrp=default handle=1152960
  | schedstat=( 64270016 316284188 172 )
  at dalvik.system.NativeStart.run(Native Method)

"Compiler" daemon prio=5 tid=4 VMWAIT
  | group="system" sCount=1 dsCount=0 s=N obj=0x447632a0 self=0x119620
  | sysTid=1732 nice=0 sched=0/0 cgrp=default handle=1152176
  | schedstat=( 1672332720 726898208 8399 )
  at dalvik.system.NativeStart.run(Native Method)

"Signal Catcher" daemon prio=5 tid=3 RUNNABLE
  | group="system" sCount=0 dsCount=0 s=N obj=0x447631e8 self=0x133d18
  | sysTid=1731 nice=0 sched=0/0 cgrp=default handle=1260760
  | schedstat=( 36193849 41107178 15 )
  at dalvik.system.NativeStart.run(Native Method)

"HeapWorker" daemon prio=5 tid=2 VMWAIT
  | group="system" sCount=1 dsCount=0 s=N obj=0x431a78e8 self=0x1317c8
  | sysTid=1730 nice=0 sched=0/0 cgrp=default handle=1251208
  | schedstat=( 224395748 87463381 164 )
  at dalvik.system.NativeStart.run(Native Method)

Original issue reported on code.google.com by ba...@google.com on 14 Oct 2010 at 5:10

GoogleCodeExporter commented 9 years ago
More feedback:

Oct 11, 2010 3:18:12 AM1.0.19not tracking all the. time
Sep 10, 2010 3:59:15 PM1.0.17error when exporting all tracks (90) as tcx file 
type
Aug 23, 2010 3:04:32 AM1.0.15while deleting several (more than 20) tracks 
recorded to phone app stopped responding
Aug 11, 2010 11:37:15 PM1.0.15my tracks has not been recording properly and 
cannot record. I intend to reload as this app was fantastic when was working
Aug 9, 2010 1:51:50 AM1.0.15mytracks will not record new tracks and will not 
delete existing ones
Apr 27, 2010 4:27:28 AM1.0.11i use my tracks to log my daily runs. i then send 
my tracks info to google maps and google docs. for the past two days the gps 
has been off. yesterday only my time was logged. todat half a mile of my run 
went missing. please fix this app to perform the way it has in the past. thanks.

Original comment by ba...@google.com on 14 Oct 2010 at 5:12

GoogleCodeExporter commented 9 years ago
Sent a fix: 
http://code.google.com/r/bartn-mytracks/source/detail?r=7065ca01191913d4a94b6f9d
b1d085750a2de38f

Please review.

Original comment by ba...@google.com on 22 Oct 2010 at 5:16

GoogleCodeExporter commented 9 years ago
LGTM. If you're done please mark as fixed.

Original comment by rdama...@google.com on 22 Oct 2010 at 5:35

GoogleCodeExporter commented 9 years ago
I can't (no access).  But this is done.

Original comment by ba...@google.com on 22 Oct 2010 at 5:38

GoogleCodeExporter commented 9 years ago
And you now have access :)

Original comment by rdama...@google.com on 22 Oct 2010 at 5:48

GoogleCodeExporter commented 9 years ago
Thanks!

Original comment by ba...@google.com on 22 Oct 2010 at 5:55