Closed GoogleCodeExporter closed 9 years ago
Ah, this is a tricky one. I spent at least 10 min trying to analyze the code
and find out why get(0) would fail. It seems that uploadAllTracks ensures that
there is at least one point before attempting to call get(0), but it somehow
fails.
I'd be interested in seeing a good explanation :)
Original comment by ba...@google.com
on 14 Oct 2010 at 4:50
I don't see it ensuring there's at least one entry - where do you say that is?
From what I see, if you try to upload before any points are recorde
Anyway, one possible cause is when there's a single point - in that case stop
id - start_id = 0, it's missing a +1 to get the number of locations.
Anyway, please review:
http://code.google.com/r/rdamazio-mytracks-staging1/source/detail?r=3004e3e31fc9
a42823b9e12c98153d091545f42e
http://code.google.com/r/rdamazio-mytracks-staging1/source/detail?r=54871eb770ae
3d1050d3052c0f4fdba49711fee4
http://code.google.com/r/rdamazio-mytracks-staging1/source/detail?r=690c3a719aad
43bf3d71cbb2de623c4ff4591d52
Original comment by rdama...@google.com
on 14 Oct 2010 at 9:50
This has been merged.
Original comment by rdama...@google.com
on 25 Oct 2010 at 8:45
This has been merged.
Original comment by rdama...@google.com
on 25 Oct 2010 at 8:46
This has been merged.
Original comment by rdama...@google.com
on 25 Oct 2010 at 8:46
I still had this problem today as I tried MyTracks-1.0.20-rrc1.
Original comment by hariskar
on 23 Nov 2010 at 11:12
How many times did you try? My first one failed but the second succeeded. Can
you send a log of the failure?
Original comment by sandordo...@google.com
on 23 Nov 2010 at 3:22
Once and uninstalled. The Log collector does nothave the log of today morning,
it starts at 17:00...
Original comment by hariskar
on 23 Nov 2010 at 3:40
Hi, log from my HTC Hero of the Mytracks upload failure.
Thanks!
Fred
Log Collector version: 1.1.0
Device model: HTC Hero
Firmware version: 2.1-update1
Kernel version: 2.6.29-063c4d24
htc-kernel@and18-2 )
#1 PREEMPT Thu May 27 00:21:28 CST 2010
Build number: ERE27
********************************************************************************
************************************************************************
11-26 08:14:17.380 I/ActivityManager( 78): Starting activity: Intent {
act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]
flg=0x10200000
cmp=com.google.android.maps.mytracks/com.google.android.apps.mytracks.MyTracks
bnds=[243,238][317,317] }
11-26 08:14:17.510 I/ActivityManager( 78): Start proc
com.google.android.maps.mytracks for activity
com.google.android.maps.mytracks/com.google.android.apps.mytracks.MyTracks:
pid=11479 uid=10078 gids={3003, 1015}
11-26 08:14:17.620 I/dalvikvm(11479): Debugger thread not active, ignoring DDM
send (t=0x41504e4d l=38)
11-26 08:14:17.650 D/AK8973 ( 62): Compass Start
11-26 08:14:17.650 D/Sensors ( 78): open_akm, fd=171
11-26 08:14:17.710 W/dalvikvm( 78): disableGcForExternalAlloc: false
11-26 08:14:17.720 I/dalvikvm(11479): Debugger thread not active, ignoring DDM
send (t=0x41504e4d l=68)
11-26 08:14:17.960 I/ActivityThread(11479): Publishing provider
com.google.android.maps.mytracks:
com.google.android.apps.mytracks.content.MyTracksProvider
11-26 08:14:18.700 D/MyTracks(11479): MyTracks.onCreate
11-26 08:14:19.030 D/MyTracks(11479): MyTracksMap.onCreate
11-26 08:14:19.791 D/LocationManager(11479): Constructor: service =
android.location.ILocationManager$Stub$Proxy@44983f50
11-26 08:14:19.800 D/MyTracks(11479): MyTracksMap.setSelectedTrack:
selectedTrackId = -1, trackId = 2
11-26 08:14:19.800 D/MyTracks(11479): MyTracksMap.onStart
11-26 08:14:19.910 D/MyTracks(11479): recordingTrackId: -1, selectedTrackId: 2
11-26 08:14:19.930 D/MyTracks(11479): MyTracks.onResume
11-26 08:14:19.930 D/MyTracks(11479): MyTracks: Trying to bind to track
recording service...
11-26 08:14:19.940 D/MyTracks(11479): MyTracks: ...bind finished!
11-26 08:14:19.940 D/MyTracks(11479): MyTracksMap.onResume
11-26 08:14:19.950 D/MyTracks(11479): MyTracksMap.setSelectedTrack:
selectedTrackId = 2, trackId = 2
11-26 08:14:19.950 D/MyTracks(11479): MyTracksMap: ContentObserver.onChange
11-26 08:14:19.950 D/MyTracks(11479): MyTracksMap: ContentObserver.onChange
waypoints
11-26 08:14:20.090 D/dalvikvm(11479): GC freed 3807 objects / 253264 bytes in
118ms
11-26 08:14:20.110 D/MyTracks(11479): MyTracksMap: Using location provider gps
11-26 08:14:20.120 D/GpsLocationProvider( 78):
addListener(com.google.android.maps.mytracks)
11-26 08:14:20.120 D/GpsLocationProvider( 78): setMinTime 0
11-26 08:14:20.120 D/GpsLocationProvider( 78): startNavigating
11-26 08:14:20.130 D/libgps ( 78): qct_gps_set_qos_time_out(standalone = 2,
agps = 89)
11-26 08:14:20.130 D/libgps ( 78): qct_gps_set_position_mode = 1,
fix_frequency = 1
11-26 08:14:20.130 D/libgps ( 78): qct_gps_start
11-26 08:14:20.140 D/NetworkLocationProvider( 78): addListener():
maps.mytracks
11-26 08:14:20.140 D/NetworkLocationProvider( 78): setMinTime: 60000
11-26 08:14:20.150 D/libgps ( 78): report status : 1
11-26 08:14:20.150 D/GpsLocationProvider( 78): Acquiring wakelock
11-26 08:14:20.180 D/WifiService( 78): acquireWifiLockLocked:
WifiLock{NetworkLocationProvider type=2 binder=android.os.Binder@44bd58d0}
11-26 08:14:20.190 D/WifiService( 78): enable and start wifi due to
updateWifiState
11-26 08:14:20.190 D/MyTracks(11479): MyTracksMap: Now registering sensor
listeners.
11-26 08:14:20.240 D/NetworkLocationProvider( 78): onCellLocationChanged
[234,28427222]
11-26 08:14:20.400 I/MapActivity(11479): Handling network change
notification:CONNECTED
11-26 08:14:20.400 E/MapActivity(11479): Couldn't get connection factory client
11-26 08:14:20.830 I/ActivityManager( 78): Process
com.google.android.apps.maps:LocationFriendService (pid 11440) has died.
11-26 08:14:20.980 D/dalvikvm(11479): GC freed 5465 objects / 321936 bytes in
123ms
11-26 08:14:21.280 D/libgps ( 78): report status : 3
11-26 08:14:21.490 D/dalvikvm(11479): GC freed 10897 objects / 762800 bytes in
97ms
11-26 08:14:21.610 D/dalvikvm(11479): GC freed 379 objects / 46032 bytes in
100ms
11-26 08:14:21.860 I/ActivityManager( 78): Displayed activity
com.google.android.maps.mytracks/com.google.android.apps.mytracks.MyTracks:
4362 ms (total 4362 ms)
11-26 08:14:22.240 D/dalvikvm(11479): GC freed 2517 objects / 422432 bytes in
143ms
11-26 08:14:25.210 D/WifiService( 78): releaseWifiLockLocked:
WifiLock{NetworkLocationProvider type=2 binder=android.os.Binder@44bd58d0}
11-26 08:14:25.210 D/WifiService( 78): enable and start wifi due to
updateWifiState
11-26 08:14:26.881 E/libagl ( 78): uses alphaPlaneWorkaround
11-26 08:14:28.140 W/dalvikvm( 78): disableGcForExternalAlloc: true
11-26 08:14:28.140 I/ActivityManager( 78): Starting activity: Intent {
cmp=com.google.android.maps.mytracks/com.google.android.apps.mytracks.MyTracksLi
st }
11-26 08:14:28.150 D/MyTracks(11479): MyTracksMap.onSaveInstanceState
11-26 08:14:28.150 D/MyTracks(11479): MyTracks.onPause
11-26 08:14:28.150 D/MyTracks(11479): MyTracks: Trying to unbind from track
recording service...
11-26 08:14:28.160 D/MyTracks(11479): MyTracks: ...unbind finished!
11-26 08:14:28.160 D/MyTracks(11479): MyTracksMap.onPause
11-26 08:14:28.160 D/MyTracks(11479): MyTracksMap: Now unregistering location
listeners.
11-26 08:14:28.160 D/LocationManager(11479): removeUpdates: listener =
com.google.android.apps.mytracks.MyTracksMap$6@4494d180
11-26 08:14:28.160 D/GpsLocationProvider( 78):
removeListener(com.google.android.maps.mytracks)
11-26 08:14:28.160 D/NetworkLocationProvider( 78): removeListener():
maps.mytracks
11-26 08:14:28.160 D/GpsLocationProvider( 78): stopNavigating
11-26 08:14:28.160 D/libgps ( 78): qct_gps_stop
11-26 08:14:28.160 D/libgps ( 78): report status : 2
11-26 08:14:28.170 I/ActivityManager( 78): Launch activity, postpone
broadcast intents
11-26 08:14:28.190 D/NetworkLocationProvider( 78): setMinTime: 60000
11-26 08:14:28.210 D/WifiService( 78): acquireWifiLockLocked:
WifiLock{NetworkLocationProvider type=2 binder=android.os.Binder@44bd58d0}
11-26 08:14:28.220 D/NetworkLocationProvider( 78): onCellLocationChanged
[234,28427222]
11-26 08:14:28.240 D/WifiService( 78): enable and start wifi due to
updateWifiState
11-26 08:14:28.260 D/MyTracks(11479): MyTracksMap: Now unregistering sensor
listeners.
11-26 08:14:28.330 W/dalvikvm( 78): disableGcForExternalAlloc: false
11-26 08:14:29.390 I/ActivityManager( 78): Displayed activity
com.google.android.maps.mytracks/com.google.android.apps.mytracks.MyTracksList:
1099 ms (total 1099 ms)
11-26 08:14:29.390 D/MyTracks(11479): MyTracks.onStop
11-26 08:14:29.441 D/MyTracks(11479): MyTracksMap.onStop
11-26 08:14:31.240 D/dalvikvm(11479): GC freed 4247 objects / 407016 bytes in
129ms
11-26 08:14:33.240 D/WifiService( 78): releaseWifiLockLocked:
WifiLock{NetworkLocationProvider type=2 binder=android.os.Binder@44bd58d0}
11-26 08:14:33.240 D/WifiService( 78): enable and start wifi due to
updateWifiState
11-26 08:14:33.360 W/dalvikvm( 78): disableGcForExternalAlloc: false
11-26 08:14:33.411 D/MyTracks(11479): MyTracksMap.onSharedPreferenceChanged:
selectedTrack
11-26 08:14:33.440 D/AndroidRuntime(11479): Shutting down VM
11-26 08:14:33.440 W/dalvikvm(11479): threadid=3: thread exiting with uncaught
exception (group=0x4001e390)
11-26 08:14:33.440 E/AndroidRuntime(11479): Uncaught handler: thread main
exiting due to uncaught exception
11-26 08:14:33.630 D/WifiService( 78): acquireWifiLockLocked:
WifiLock{NetworkLocationProvider type=2 binder=android.os.Binder@44bd58d0}
11-26 08:14:33.630 D/WifiService( 78): enable and start wifi due to
updateWifiState
11-26 08:14:33.640 D/NetworkLocationProvider( 78): getLocation(): triggering
a wifi scan
11-26 08:14:33.670 D/NetworkLocationProvider( 78): onCellLocationChanged
[234,28427222]
11-26 08:14:33.680 E/AndroidRuntime(11479): java.lang.RuntimeException: Failure
delivering result ResultInfo{who=null, request=3, result=13, data=Intent { (has
extras) }} to activity
{com.google.android.maps.mytracks/com.google.android.apps.mytracks.MyTracks}:
java.lang.IllegalArgumentException: Activity#onCreateDialog did not create a
dialog for id 4
11-26 08:14:33.680 E/AndroidRuntime(11479): at
android.app.ActivityThread.deliverResults(ActivityThread.java:3504)
11-26 08:14:33.680 E/AndroidRuntime(11479): at
android.app.ActivityThread.handleSendResult(ActivityThread.java:3546)
11-26 08:14:33.680 E/AndroidRuntime(11479): at
android.app.ActivityThread.access$2700(ActivityThread.java:126)
11-26 08:14:33.680 E/AndroidRuntime(11479): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1962)
11-26 08:14:33.680 E/AndroidRuntime(11479): at
android.os.Handler.dispatchMessage(Handler.java:99)
11-26 08:14:33.680 E/AndroidRuntime(11479): at
android.os.Looper.loop(Looper.java:123)
11-26 08:14:33.680 E/AndroidRuntime(11479): at
android.app.ActivityThread.main(ActivityThread.java:4595)
11-26 08:14:33.680 E/AndroidRuntime(11479): at
java.lang.reflect.Method.invokeNative(Native Method)
11-26 08:14:33.680 E/AndroidRuntime(11479): at
java.lang.reflect.Method.invoke(Method.java:521)
11-26 08:14:33.680 E/AndroidRuntime(11479): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
11-26 08:14:33.680 E/AndroidRuntime(11479): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
11-26 08:14:33.680 E/AndroidRuntime(11479): at
dalvik.system.NativeStart.main(Native Method)
11-26 08:14:33.680 E/AndroidRuntime(11479): Caused by:
java.lang.IllegalArgumentException: Activity#onCreateDialog did not create a
dialog for id 4
11-26 08:14:33.680 E/AndroidRuntime(11479): at
android.app.Activity.createDialog(Activity.java:878)
11-26 08:14:33.680 E/AndroidRuntime(11479): at
android.app.Activity.showDialog(Activity.java:2523)
11-26 08:14:33.680 E/AndroidRuntime(11479): at
com.google.android.apps.mytracks.DialogManager$5.run(DialogManager.java:204)
11-26 08:14:33.680 E/AndroidRuntime(11479): at
android.app.Activity.runOnUiThread(Activity.java:3689)
11-26 08:14:33.680 E/AndroidRuntime(11479): at
com.google.android.apps.mytracks.DialogManager.showDialogSafely(DialogManager.ja
va:201)
11-26 08:14:33.680 E/AndroidRuntime(11479): at
com.google.android.apps.mytracks.MyTracks.onActivityResult(MyTracks.java:557)
11-26 08:14:33.680 E/AndroidRuntime(11479): at
com.google.android.apps.mytracks.MyTracks.onActivityResult(MyTracks.java:468)
11-26 08:14:33.680 E/AndroidRuntime(11479): at
android.app.Activity.dispatchActivityResult(Activity.java:3868)
11-26 08:14:33.680 E/AndroidRuntime(11479): at
android.app.ActivityGroup.dispatchActivityResult(ActivityGroup.java:123)
11-26 08:14:33.680 E/AndroidRuntime(11479): at
android.app.ActivityThread.deliverResults(ActivityThread.java:3500)
11-26 08:14:33.680 E/AndroidRuntime(11479): ... 11 more
11-26 08:14:33.730 I/Process ( 78): Sending signal. PID: 11479 SIG: 3
11-26 08:14:33.730 I/dalvikvm(11479): threadid=7: reacting to signal 3
11-26 08:14:33.771 I/dalvikvm(11479): Wrote stack trace to
'/data/anr/traces.txt'
11-26 08:14:34.162 I/wpa_supplicant( 130): CTRL-EVENT-SCAN-RESULTS Ready
11-26 08:14:34.162 I/wpa_supplicant( 130): - wpa_supplicant_event_scan_results
RETURN (ap_scan = 2)-
11-26 08:14:34.170 D/NetworkLocationProvider( 78): updateWifIScanResults(): 5
APs
11-26 08:14:34.290 D/LocationMasfClient( 78): getNetworkLocation(): Returning
cache location with accuracy 48.0
11-26 08:14:34.400 I/ActivityManager( 78): Start proc
com.google.android.apps.maps:LocationFriendService for service
com.google.android.apps.maps/com.google.googlenav.friend.android.LocationFriendS
ervice: pid=11496 uid=10029 gids={3003, 1015}
11-26 08:14:34.490 D/LocationManagerService( 78): Acquired wakelock
11-26 08:14:34.490 D/LocationManagerService( 78): Released wakelock
11-26 08:14:34.530 I/dalvikvm(11496): Debugger thread not active, ignoring DDM
send (t=0x41504e4d l=38)
11-26 08:14:34.780 I/dalvikvm(11496): Debugger thread not active, ignoring DDM
send (t=0x41504e4d l=104)
11-26 08:14:35.180 D/libgps ( 78): report status : 4
11-26 08:14:35.180 D/GpsLocationProvider( 78): Releasing wakelock
11-26 08:14:35.521 D/dalvikvm(11496): GC freed 2011 objects / 154520 bytes in
102ms
11-26 08:14:36.690 I/Process (11479): Sending signal. PID: 11479 SIG: 9
11-26 08:14:36.720 D/ActivityManager( 78): foreground app died, app =
com.google.android.maps.mytracks
11-26 08:14:36.720 I/ActivityManager( 78): Process
com.google.android.maps.mytracks (pid 11479) has died.
11-26 08:14:36.720 W/ContentService( 78): binderDied() at ObserverNode name
tracks
11-26 08:14:36.740 I/WindowManager( 78): WIN DEATH: Window{44d9ba30
com.google.android.maps.mytracks/com.google.android.apps.mytracks.MyTracksList
paused=false}
11-26 08:14:36.750 I/WindowManager( 78): WIN DEATH: Window{44c72688
com.google.android.maps.mytracks/com.google.android.apps.mytracks.MyTracks
paused=false}
11-26 08:14:36.750 I/WindowManager( 78): WIN DEATH: Window{44db0eb8
AtchDlg:com.google.android.maps.mytracks/com.google.android.apps.mytracks.MyTrac
ksList paused=false}
11-26 08:14:36.760 E/ActivityManager( 78): fail to set top app changed!
11-26 08:14:36.811 D/Sensors ( 78): close_akm, fd=171
11-26 08:14:36.830 I/UsageStats( 78): Unexpected resume of com.htc.launcher
while already resumed in com.google.android.maps.mytracks
11-26 08:14:36.850 W/dalvikvm( 78): disableGcForExternalAlloc: false
11-26 08:14:36.910 W/InputManagerService( 78): Got RemoteException sending
setActive(false) notification to pid 11479 uid 10078
11-26 08:14:36.930 D/dalvikvm(11496): GC freed 2144 objects / 163976 bytes in
414ms
11-26 08:14:37.310 D/AK8973 ( 62): Compass CLOSE
11-26 08:14:38.670 D/WifiService( 78): releaseWifiLockLocked:
WifiLock{NetworkLocationProvider type=2 binder=android.os.Binder@44bd58d0}
11-26 08:14:38.670 D/WifiService( 78): enable and start wifi due to
updateWifiState
11-26 08:14:39.160 D/DragLayer( 163): touch event action ACTION_DOWN
11-26 08:14:39.440 D/DragLayer( 163): touch event action ACTION_UP
11-26 08:14:41.140 D/DragLayer( 163): touch event action ACTION_DOWN
11-26 08:14:41.210 D/DragLayer( 163): touch event action ACTION_UP
11-26 08:14:41.321 W/dalvikvm( 78): disableGcForExternalAlloc: true
11-26 08:14:41.321 I/ActivityManager( 78): Starting activity: Intent {
act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]
flg=0x10200000 cmp=com.xtralogic.android.logcollector/.SendLogActivity }
11-26 08:14:41.370 I/ActivityManager( 78): Start proc
com.xtralogic.android.logcollector for activity
com.xtralogic.android.logcollector/.SendLogActivity: pid=11503 uid=10084
gids={1007, 1015}
11-26 08:14:41.470 I/dalvikvm(11503): Debugger thread not active, ignoring DDM
send (t=0x41504e4d l=38)
11-26 08:14:41.510 W/dalvikvm( 78): disableGcForExternalAlloc: false
11-26 08:14:41.510 I/dalvikvm(11503): Debugger thread not active, ignoring DDM
send (t=0x41504e4d l=72)
11-26 08:14:42.060 I/ActivityManager( 78): Displayed activity
com.xtralogic.android.logcollector/.SendLogActivity: 703 ms (total 703 ms)
11-26 08:14:42.370 W/Rosie ( 163): mAddHtcWidgetByOtherActivity = false,
mIsOpenSlideWhenLeaveLaunch = true
11-26 08:14:43.720 I/global (11503): Default buffer size used in
BufferedReader constructor. It would be better to be explicit if an 8k-char
buffer is required.
11-26 08:14:44.300 D/dalvikvm(11503): GC freed 1678 objects / 265520 bytes in
225ms
Original comment by fred...@gmail.com
on 26 Nov 2010 at 8:36
Thanks, but this is already fixed.
Original comment by rdama...@google.com
on 26 Nov 2010 at 9:58
Sorry, I don't understand. I downloaded the application again this morning,
tried to upload, and got the above error. So it does not seem to be fixed.
Original comment by fred...@gmail.com
on 26 Nov 2010 at 10:03
We have not published a new version with the fix yet.
Original comment by rdama...@google.com
on 26 Nov 2010 at 10:17
Oh, sorry, I understand now. Thanks!
Original comment by fred...@gmail.com
on 26 Nov 2010 at 10:18
Original issue reported on code.google.com by
rdama...@google.com
on 14 Oct 2010 at 1:02