Just got this exception on 1.6 emulator. Everything in my database was
lost, the db file was still there but the tables were gone. Did anyone
else experienced this? What might have caused this? I hope this is
just an emulator bug...

E/Database(  876): Failed to setLocale() when constructing, closing
the
database
E/Database(  876):
android.database.sqlite.SQLiteDatabaseCorruptException: database disk
image is malformed
E/Database(  876):      at
android.database.sqlite.SQLiteDatabase.native_setLocale(Native
Method)
E/Database(  876):      at
android.database.sqlite.SQLiteDatabase.setLocale(SQLiteDatabase.java:
1637)
E/Database(  876):      at
android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:
1587)
E/Database(  876):      at
android.database.sqlite.SQLiteDatabase.openDatabase
(SQLiteDatabase.java:638)
E/Database(  876):      at
android.database.sqlite.SQLiteDatabase.openOrCreateDatabase
(SQLiteDatabase.java:659)
...
E/Database(  876):      at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1123)
E/Database(  876):      at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2364)
E/Database(  876):      at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2417)
E/Database(  876):      at android.app.ActivityThread.access$2100
(ActivityThread.java:
116)
E/Database(  876):      at android.app.ActivityThread$H.handleMessage
(ActivityThread.java:
1794)
E/Database(  876):      at android.os.Handler.dispatchMessage
(Handler.java:
99)
E/Database(  876):      at android.os.Looper.loop(Looper.java:
123)
E/Database(  876):      at android.app.ActivityThread.main
(ActivityThread.java:
4203)
E/Database(  876):      at java.lang.reflect.Method.invokeNative
(Native
Method)
E/Database(  876):      at java.lang.reflect.Method.invoke(Method.java:
521)
E/Database(  876):      at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:
791)
E/Database(  876):      at com.android.internal.os.ZygoteInit.main
(ZygoteInit.java:
549)
E/Database(  876):      at dalvik.system.NativeStart.main(Native
Method)
E/Database(  876): Deleting and re-creating corrupt database /data/
data/com.test/test.db
E/Database(  876):
android.database.sqlite.SQLiteDatabaseCorruptException: database disk
image is malformed
E/Database(  876):      at
android.database.sqlite.SQLiteDatabase.native_setLocale(Native
Method)
E/Database(  876):      at
android.database.sqlite.SQLiteDatabase.setLocale(SQLiteDatabase.java:
1637)
E/Database(  876):      at
android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:
1587)
E/Database(  876):      at
android.database.sqlite.SQLiteDatabase.openDatabase
(SQLiteDatabase.java:638)
E/Database(  876):      at
android.database.sqlite.SQLiteDatabase.openOrCreateDatabase
(SQLiteDatabase.java:659)
...
E/Database(  876):      at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1123)
E/Database(  876):      at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2364)
E/Database(  876):      at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2417)
E/Database(  876):      at android.app.ActivityThread.access$2100
(ActivityThread.java:
116)
E/Database(  876):      at android.app.ActivityThread$H.handleMessage
(ActivityThread.java:
1794)
E/Database(  876):      at android.os.Handler.dispatchMessage
(Handler.java:
99)
E/Database(  876):      at android.os.Looper.loop(Looper.java:
123)
E/Database(  876):      at android.app.ActivityThread.main
(ActivityThread.java:
4203)
E/Database(  876):      at java.lang.reflect.Method.invokeNative
(Native
Method)
E/Database(  876):      at java.lang.reflect.Method.invoke(Method.java:
521)
E/Database(  876):      at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:
791)
E/Database(  876):      at com.android.internal.os.ZygoteInit.main
(ZygoteInit.java:
549)
E/Database(  876):      at dalvik.system.NativeStart.main(Native
Method)

E/Database(  876): Failure 1 (no such table: app_data) on 0x1d0b68
when preparing 'DELETE from app_data WHERE key='102''.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to