[G1 Android Development] ZilverZurfarn:
My Tracks problem

Seems like I'll have to start with the hated "Does anyone else", buy just one mention of some problems with this in this thread, and nothing in the issues:

My Tracks starts fine, but as soon as I press Start recording, some odd graphics anomalies appear on screen, and soon the Force Close popup arrives.

Any attempt at restarting My Tracks just brings up the Force Close dialog.

Log:

I/ActivityManager( 2200): Start proc com.google.android.maps.mytracks:trackrecord for service com.google.android.maps.mytracks/com.google.android.apps.mytracks.services.TrackRecordingService: pid=16364 uid=10062 gids={3003, 1015}
D/MyTracks(16308): MyTracks: Trying to bind to track recording service...
W/InputManagerService( 2200): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@43afb9d0
D/MyTracks(16364): TrackRecordingService.onCreate
W/Service (16364): setForeground: This API will be removed!! at com.google.android.apps.mytracks.services.TrackRecordingService
D/LocationManager(16364): Constructor: service = android.location.ILocationManager$Stub$Proxy@43a758b8
D/MyTracks(16364): TrackRecordingService.onSharedPreferenceChanged
D/MyTracks(16364): TrackRecordingService: minRecordingDistance = 5
D/MyTracks(16364): Preparing to register location listener w/ TrackRecordingService...
D/GpsLocationProvider( 2200): setMinTime 0
D/MyTracks(16364): ...location listener now registered w/ TrackRecordingService @ 0
D/MyTracks(16364): TrackRecordingService.onBind
D/MyTracks(16308): MyTracks: Service now connected.
D/MyTracks(16364): TrackRecordingService.startNewTrack
D/MyTracksProvider(16364): MyTracksProviderUtils.insertTrack
D/ActivityThread(16364): Loading provider com.google.android.maps.mytracks: com.google.android.apps.mytracks.content.MyTracksProvider
I/ActivityManager( 2200): Process com.google.android.apps.maps:LocationFriendService (pid 16338) has died.
D/MyTracksProvider(16364): MyTracksProvider.insert
D/GpsLocationProvider( 2200): TTFF: 23099
D/MyTracks(16364): TrackRecordingService.onLocationChanged
D/MyTracks(16364): Not recording. No track to append to available.
D/MyTracksProvider(16364): MyTracksProviderUtils.updateTrack
D/MyTracksProvider(16364): MyTracksProviderUtils.insertWaypoint
D/MyTracksProvider(16364): MyTracksProvider.insert
D/MyTracks(16364): Preparing to register location listener w/ TrackRecordingService...
D/GpsLocationProvider( 2200): setMinTime 0
D/MyTracks(16364): ...location listener now registered w/ TrackRecordingService @ 0
I/NotificationService( 2200): enqueueToast pkg=com.google.android.maps.mytracks callback=android.app.ITransientNotification$Stub$Proxy@43dd2c28 duration=0
D/ (16308): unable to unlink '/data/data/com.google.android.maps.mytracks/shared_prefs/MyTracksSettings.xml.bak': No such file or directory (errno=2)
D/MyTracks(16364): TrackRecordingService.sharedPrefereneChange
D/MyTracks(16364): TrackRecordingService.onSharedPreferenceChanged
D/MyTracks(16364): Preparing to register location listener w/ TrackRecordingService...
D/GpsLocationProvider( 2200): setMinTime 0
D/MyTracks(16364): ...location listener now registered w/ TrackRecordingService @ 0
D/MyTracks(16364): TrackRecordingService.sharedPrefereneChange
D/MyTracks(16364): TrackRecordingService.onSharedPreferenceChanged
D/MyTracks(16364): Preparing to register location listener w/ TrackRecordingService...
D/GpsLocationProvider( 2200): setMinTime 0
D/MyTracks(16364): ...location listener now registered w/ TrackRecordingService @ 0
D/MyTracks(16308): MyTracksMap: ContentObserver.onChange waypoints
W/dalvikvm(16308): threadid=19: thread exiting with uncaught exception (group=0x4001e170)
E/AndroidRuntime(16308): Uncaught handler: thread updateTrackThread exiting due to uncaught exception
E/AndroidRuntime(16308): android.database.sqlite.SQLiteException: no such column: −1: , while compiling: SELECT * FROM trackpoints WHERE (trackid=1 AND _id>=−1) ORDER BY _id DESC LIMIT 10000
E/AndroidRuntime(16308):	at android.database.sqlite.SQLiteProgram.native_compile(Native Method)
E/AndroidRuntime(16308):	at android.database.sqlite.SQLiteProgram.compile(SQLiteProgram.java:110)
E/AndroidRuntime(16308):	at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:59)
E/AndroidRuntime(16308):	at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:49)
E/AndroidRuntime(16308):	at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:49)
E/AndroidRuntime(16308):	at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1118)
E/AndroidRuntime(16308):	at android.database.sqlite.SQLiteQueryBuilder.query(SQLiteQueryBuilder.java:316)
E/AndroidRuntime(16308):	at android.database.sqlite.SQLiteQueryBuilder.query(SQLiteQueryBuilder.java:266)
E/AndroidRuntime(16308):	at com.google.android.apps.mytracks.content.MyTracksProvider.query(MyTracksProvider.java:263)
E/AndroidRuntime(16308):	at android.content.ContentProvider$Transport.query(ContentProvider.java:129)
E/AndroidRuntime(16308):	at android.content.ContentResolver.query(ContentResolver.java:152)
E/AndroidRuntime(16308):	at com.google.android.apps.mytracks.content.MyTracksProviderUtils.getLocationsCursor(MyTracksProviderUtils.java:826)
E/AndroidRuntime(16308):	at com.google.android.apps.mytracks.content.MyTracksProviderUtils.getTrackPoints(MyTracksProviderUtils.java:873)
E/AndroidRuntime(16308):	at com.google.android.apps.mytracks.MyTracksMap$2.run(MyTracksMap.java:168)
E/AndroidRuntime(16308):	at android.os.Handler.handleCallback(Handler.java:587)
E/AndroidRuntime(16308):	at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime(16308):	at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(16308):	at android.os.HandlerThread.run(HandlerThread.java:60)
I/Process ( 2200): Sending signal. PID: 16308 SIG: 3
I/dalvikvm(16308): threadid=7: reacting to signal 3
I/dalvikvm(16308): Wrote stack trace to '/data/anr/traces.txt'
D/GpsLocationProvider( 2200): TTFF: 24107
D/MyTracks(16364): TrackRecordingService.onLocationChanged
D/MyTracksProvider(16364): MyTracksProviderUtils.insertTrackPoint
D/MyTracksProvider(16364): MyTracksProvider.insert
D/MyTracksProvider(16364): MyTracksProvider.insertTrackPoint
D/MyTracks(16308): MyTracksMap: ContentObserver.onChange
D/MyTracks(16364): TrackRecordingService.onLocationChanged
D/MyTracks(16364): Not recording. Distance to last recorded point (0,278909 m) is less than 5 m.
D/MyTracks(16364): TrackRecordingService.onLocationChanged
D/MyTracks(16364): Not recording. Distance to last recorded point (0,853961 m) is less than 5 m.
D/MyTracks(16364): TrackRecordingService.onLocationChanged
D/MyTracks(16364): Found two identical locations.
D/MyTracksProvider(16364): MyTracksProviderUtils.insertTrackPoint
D/MyTracksProvider(16364): MyTracksProvider.insert
D/MyTracksProvider(16364): MyTracksProvider.insertTrackPoint
D/MyTracks(16308): MyTracksMap: ContentObserver.onChange
D/MyTracks(16308): MyTracksMap: ContentObserver.onChange waypoints

This is from a fully wiped install. Uninstalling and reinstalling doesn't help any.Problem persists.

Looks like a DB problem?

/Mats