[Tilt, TyTN II, MDA Vario III Android Development] gimuccopteltd:
Debugging market

Hello,

When I try to update an app on the market or install a new one I got the process.gapps force close problem, even if I installed the latest fullmarket fix.

Using adb and logcat I managed to debug the problem. Below is the complete log, maybe this could help you guys to make it working.

As you may notice the market is complaining about not being able to create the android_metadata table, and then to select the locale itself...

Any clue? I'm using english (US) locale, SD partitions install, on the tytn II

I/ActivityThread( 2910): Publishing provider com.android.globalsearch.log: com.google.android.providers.enhancedgooglesearch.ClickLogProvider
E/Database( 2910): CREATE TABLE android_metadata failed
E/Database( 2910): Failed to setLocale() when constructing, closing the database
E/Database( 2910): android.database.sqlite.SQLiteException: database is locked
E/Database( 2910):	at android.database.sqlite.SQLiteDatabase.native_setLocale(Native Method)
E/Database( 2910):	at android.database.sqlite.SQLiteDatabase.setLocale(SQLiteDatabase.java:1751)
E/Database( 2910):	at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1701)
E/Database( 2910):	at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:739)
E/Database( 2910):	at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:761)
E/Database( 2910):	at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:754)
E/Database( 2910):	at android.app.ApplicationContext.openOrCreateDatabase(ApplicationContext.java:473)
E/Database( 2910):	at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:98)
E/Database( 2910):	at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:158)
E/Database( 2910):	at com.google.android.providers.talk.TalkProvider.queryInternal(TalkProvider.java:1426)
E/Database( 2910):	at com.google.android.providers.talk.TalkProvider.query(TalkProvider.java:1105)
E/Database( 2910):	at android.content.ContentProvider$Transport.query(ContentProvider.java:130)
E/Database( 2910):	at android.content.ContentResolver.query(ContentResolver.java:202)
E/Database( 2910):	at com.google.android.gtalkservice.service.GTalkServiceContext.createImProviders(GTalkServiceContext.java:63)
E/Database( 2910):	at com.google.android.gtalkservice.service.GTalkServiceContext.<init>(GTalkServiceContext.java:57)
E/Database( 2910):	at com.google.android.gtalkservice.service.GTalkService.onCreate(GTalkService.java:848)
E/Database( 2910):	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2780)
E/Database( 2910):	at android.app.ActivityThread.access$3200(ActivityThread.java:119)
E/Database( 2910):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1917)
E/Database( 2910):	at android.os.Handler.dispatchMessage(Handler.java:99)
E/Database( 2910):	at android.os.Looper.loop(Looper.java:123)
E/Database( 2910):	at android.app.ActivityThread.main(ActivityThread.java:4363)
E/Database( 2910):	at java.lang.reflect.Method.invokeNative(Native Method)
E/Database( 2910):	at java.lang.reflect.Method.invoke(Method.java:521)
E/Database( 2910):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/Database( 2910):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/Database( 2910):	at dalvik.system.NativeStart.main(Native Method)
E/SQLiteOpenHelper( 2910): Couldn't open talk.db for writing (will try read-only):
E/SQLiteOpenHelper( 2910): android.database.sqlite.SQLiteException: database is locked
E/SQLiteOpenHelper( 2910):	at android.database.sqlite.SQLiteDatabase.native_setLocale(Native Method)
E/SQLiteOpenHelper( 2910):	at android.database.sqlite.SQLiteDatabase.setLocale(SQLiteDatabase.java:1751)
E/SQLiteOpenHelper( 2910):	at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1701)
E/SQLiteOpenHelper( 2910):	at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:739)
E/SQLiteOpenHelper( 2910):	at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:761)
E/SQLiteOpenHelper( 2910):	at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:754)
E/SQLiteOpenHelper( 2910):	at android.app.ApplicationContext.openOrCreateDatabase(ApplicationContext.java:473)
E/SQLiteOpenHelper( 2910):	at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:98)
E/SQLiteOpenHelper( 2910):	at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:158)
E/SQLiteOpenHelper( 2910):	at com.google.android.providers.talk.TalkProvider.queryInternal(TalkProvider.java:1426)
E/SQLiteOpenHelper( 2910):	at com.google.android.providers.talk.TalkProvider.query(TalkProvider.java:1105)
E/SQLiteOpenHelper( 2910):	at android.content.ContentProvider$Transport.query(ContentProvider.java:130)
E/SQLiteOpenHelper( 2910):	at android.content.ContentResolver.query(ContentResolver.java:202)
E/SQLiteOpenHelper( 2910):	at com.google.android.gtalkservice.service.GTalkServiceContext.createImProviders(GTalkServiceContext.java:63)
E/SQLiteOpenHelper( 2910):	at com.google.android.gtalkservice.service.GTalkServiceContext.<init>(GTalkServiceContext.java:57)
E/SQLiteOpenHelper( 2910):	at com.google.android.gtalkservice.service.GTalkService.onCreate(GTalkService.java:848)
E/SQLiteOpenHelper( 2910):	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2780)
E/SQLiteOpenHelper( 2910):	at android.app.ActivityThread.access$3200(ActivityThread.java:119)
E/SQLiteOpenHelper( 2910):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1917)
E/SQLiteOpenHelper( 2910):	at android.os.Handler.dispatchMessage(Handler.java:99)
E/SQLiteOpenHelper( 2910):	at android.os.Looper.loop(Looper.java:123)
E/SQLiteOpenHelper( 2910):	at android.app.ActivityThread.main(ActivityThread.java:4363)
E/SQLiteOpenHelper( 2910):	at java.lang.reflect.Method.invokeNative(Native Method)
E/SQLiteOpenHelper( 2910):	at java.lang.reflect.Method.invoke(Method.java:521)
E/SQLiteOpenHelper( 2910):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/SQLiteOpenHelper( 2910):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/SQLiteOpenHelper( 2910):	at dalvik.system.NativeStart.main(Native Method)
E/Database( 2910): SELECT locale FROM android_metadata failed
D/dalvikvm( 2910): GC freed 3808 objects / 341296 bytes in 264ms
E/Database( 2910): Failed to setLocale() when constructing, closing the database
E/Database( 2910): android.database.sqlite.SQLiteException: database is locked
E/Database( 2910):	at android.database.sqlite.SQLiteDatabase.native_setLocale(Native Method)
E/Database( 2910):	at android.database.sqlite.SQLiteDatabase.setLocale(SQLiteDatabase.java:1751)
E/Database( 2910):	at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1701)
E/Database( 2910):	at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:739)
E/Database( 2910):	at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:168)
E/Database( 2910):	at com.google.android.providers.talk.TalkProvider.queryInternal(TalkProvider.java:1426)
E/Database( 2910):	at com.google.android.providers.talk.TalkProvider.query(TalkProvider.java:1105)
E/Database( 2910):	at android.content.ContentProvider$Transport.query(ContentProvider.java:130)
E/Database( 2910):	at android.content.ContentResolver.query(ContentResolver.java:202)
E/Database( 2910):	at com.google.android.gtalkservice.service.GTalkServiceContext.createImProviders(GTalkServiceContext.java:63)
E/Database( 2910):	at com.google.android.gtalkservice.service.GTalkServiceContext.<init>(GTalkServiceContext.java:57)
E/Database( 2910):	at com.google.android.gtalkservice.service.GTalkService.onCreate(GTalkService.java:848)
E/Database( 2910):	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2780)
E/Database( 2910):	at android.app.ActivityThread.access$3200(ActivityThread.java:119)
E/Database( 2910):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1917)
E/Database( 2910):	at android.os.Handler.dispatchMessage(Handler.java:99)
E/Database( 2910):	at android.os.Looper.loop(Looper.java:123)
E/Database( 2910):	at android.app.ActivityThread.main(ActivityThread.java:4363)
E/Database( 2910):	at java.lang.reflect.Method.invokeNative(Native Method)
E/Database( 2910):	at java.lang.reflect.Method.invoke(Method.java:521)
E/Database( 2910):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/Database( 2910):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/Database( 2910):	at dalvik.system.NativeStart.main(Native Method)
D/AndroidRuntime( 2910): Shutting down VM
W/dalvikvm( 2910): threadid=3: thread exiting with uncaught exception (group=0x4001e180)
E/AndroidRuntime( 2910): Uncaught handler: thread main exiting due to uncaught exception
E/AndroidRuntime( 2910): java.lang.RuntimeException: Unable to create service com.google.android.gtalkservice.service.GTalkService: android.database.sqlite.SQLiteException: database is locked
E/AndroidRuntime( 2910):	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2790)
E/AndroidRuntime( 2910):	at android.app.ActivityThread.access$3200(ActivityThread.java:119)
E/AndroidRuntime( 2910):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1917)
E/AndroidRuntime( 2910):	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2910):	at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 2910):	at android.app.ActivityThread.main(ActivityThread.java:4363)
E/AndroidRuntime( 2910):	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2910):	at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 2910):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime( 2910):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime( 2910):	at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2910): Caused by: android.database.sqlite.SQLiteException: database is locked
E/AndroidRuntime( 2910):	at android.database.sqlite.SQLiteDatabase.native_setLocale(Native Method)
E/AndroidRuntime( 2910):	at android.database.sqlite.SQLiteDatabase.setLocale(SQLiteDatabase.java:1751)
E/AndroidRuntime( 2910):	at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1701)
E/AndroidRuntime( 2910):	at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:739)
E/AndroidRuntime( 2910):	at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:168)
E/AndroidRuntime( 2910):	at com.google.android.providers.talk.TalkProvider.queryInternal(TalkProvider.java:1426)
E/AndroidRuntime( 2910):	at com.google.android.providers.talk.TalkProvider.query(TalkProvider.java:1105)
E/AndroidRuntime( 2910):	at android.content.ContentProvider$Transport.query(ContentProvider.java:130)
E/AndroidRuntime( 2910):	at android.content.ContentResolver.query(ContentResolver.java:202)
E/AndroidRuntime( 2910):	at com.google.android.gtalkservice.service.GTalkServiceContext.createImProviders(GTalkServiceContext.java:63)
E/AndroidRuntime( 2910):	at com.google.android.gtalkservice.service.GTalkServiceContext.<init>(GTalkServiceContext.java:57)
E/AndroidRuntime( 2910):	at com.google.android.gtalkservice.service.GTalkService.onCreate(GTalkService.java:848)
E/AndroidRuntime( 2910):	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2780)
E/AndroidRuntime( 2910):	... 10 more
D/dalvikvm( 1480): GC freed 11202 objects / 961568 bytes in 500ms
I/Process ( 1480): Sending signal. PID: 2910 SIG: 3
I/dalvikvm( 2910): threadid=7: reacting to signal 3
I/dalvikvm( 2910): Wrote stack trace to '/data/anr/traces.txt'
I/dalvikvm( 2910): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm( 2910): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor@43ffe880 on partner that has not been deactivated or closed
I/dalvikvm( 2910):	at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
I/dalvikvm( 2910):	at dalvik.system.NativeStart.run(Native Method)
I/DumpStateReceiver( 1480): Added state dump to 2 crashes
I/DumpStateReceiver( 1480): Added state dump to 1 crashes
I/DumpStateReceiver( 1480): Added state dump to 1 crashes
D/skia ( 2831): purging 334K from font cache [41 entries]
D/dalvikvm( 2831): GC freed 11957 objects / 742152 bytes in 329ms
D/NetworkLocationProvider( 1480): onCellLocationChanged [327776,214017]
D/dalvikvm( 1527): GC freed 2446 objects / 114880 bytes in 142ms
W/ActivityManager( 1480): Timeout executing service: ServiceRecord{441d6a28 com.google.android.apps.gtalkservice/com.google.android.gtalkservice.service.GTalkService}
D/skia ( 1480): purging 44K from font cache [6 entries]
D/dalvikvm( 1480): GC freed 3954 objects / 489064 bytes in 298ms
D/dalvikvm( 1627): GC freed 1283 objects / 71480 bytes in 138ms
D/dalvikvm( 2785): GC freed 3665 objects / 159728 bytes in 137ms
D/NetworkLocationProvider( 1480): onCellLocationChanged [327776,214020]
D/skia ( 1538): purging 13K from font cache [2 entries]
D/dalvikvm( 1538): GC freed 372 objects / 13248 bytes in 157ms
D/dalvikvm( 2209): GC freed 151 objects / 5232 bytes in 126ms