machineloop / nookdevs

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

nooklibrary crashes #138

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Tap on the nooklibrary logo to launch it

What is the expected output? What do you see instead?
I expect it to start. Instead, the "My Books" title flashes for a second, then 
I'm back to the applications menu.

What version of the product are you using? On what operating system?
nooklibrary 0.1.3. Nook 1.4.0.

Please provide any additional information below.

Here's the log:
E/FictionwiseBooks( 2240): No User Info
E/FictionwiseBooks( 2240): No User Info
D/SurfaceFlinger( 1831): Returning pmem allocator!
I/RadioWakeLock( 1831): Acquiring Radio Wake Lock: 
'RADIO_ON_WAKE_LOCK[NookLibrary.scanTask1132324584]{2240/10011}{438101c8}'
I/RadioWakeLock( 1831): -------------------------
I/RadioWakeLock( 1831): Radio Wake Locks Held: 'On': 1  'Sleep': 0
I/RadioWakeLock( 1831):     # lock type[app tag]{app pid/uid}{unique lock object 
hash}
I/RadioWakeLock( 1831):     1:  
RADIO_ON_WAKE_LOCK[NookLibrary.scanTask1132324584]{2240/10011}{438101c8}
I/RadioWakeLock( 1831): -------------------------
I/RadioPM ( 1961): Updating Radios power state: 
I/RadioPM ( 1961): + -------sys state----------
I/RadioPM ( 1961): Airplane Mode        : true
I/RadioPM ( 1961): Sys Pwr State        : 1 
I/RadioPM ( 1961): Battery Voltage (mV) : 4140  Level (%) : 96
I/RadioPM ( 1961): Plugged-in           : 2 USB 
I/RadioPM ( 1961): Connectivity         : 
I/RadioPM ( 1961): Wifi Disabled        : No
I/RadioPM ( 1961): No Users             : false
I/RadioPM ( 1961): - -------sys state----------
I/RadioPM ( 1961): Radio[Wifi].setPower('true')
I/WifiService( 1831): Enabling Wi-Fi...
E/FictionwiseBooks( 2240): No User Info
E/FictionwiseBooks( 2240): No User Info
E/Database( 2240): SELECT locale FROM android_metadata failed
E/Database( 2240): Failed to setLocale() when constructing, closing the database
E/Database( 2240): android.database.sqlite.SQLiteDiskIOException: disk I/O error
E/Database( 2240):  at 
android.database.sqlite.SQLiteDatabase.native_setLocale(Native Method)
E/Database( 2240):  at 
android.database.sqlite.SQLiteDatabase.setLocale(SQLiteDatabase.java:1636)
E/Database( 2240):  at 
android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1586)
E/Database( 2240):  at 
android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:638)
E/Database( 2240):  at com.nookdevs.library.BNBooks.getBooks(BNBooks.java:169)
E/Database( 2240):  at 
com.nookdevs.library.NookLibrary$7.run(NookLibrary.java:586)
E/Database( 2240):  at java.lang.Thread.run(Thread.java:1058)
W/dalvikvm( 2240): threadid=25: thread exiting with uncaught exception 
(group=0x4000fe68)
E/AndroidRuntime( 2240): Uncaught handler: thread Thread-13 exiting due to 
uncaught exception
E/AndroidRuntime( 2240): android.database.sqlite.SQLiteDiskIOException: disk 
I/O error
E/AndroidRuntime( 2240):    at 
android.database.sqlite.SQLiteDatabase.native_setLocale(Native Method)
E/AndroidRuntime( 2240):    at 
android.database.sqlite.SQLiteDatabase.setLocale(SQLiteDatabase.java:1636)
E/AndroidRuntime( 2240):    at 
android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1586)
E/AndroidRuntime( 2240):    at 
android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:638)
E/AndroidRuntime( 2240):    at 
com.nookdevs.library.BNBooks.getBooks(BNBooks.java:169)
E/AndroidRuntime( 2240):    at 
com.nookdevs.library.NookLibrary$7.run(NookLibrary.java:586)
E/AndroidRuntime( 2240):    at java.lang.Thread.run(Thread.java:1058)
E/ActivityManager( 1831): SUPPRESSING CRASH DIALOG.....
E/ConnectivityService( 1831): binderDied(): 
RADIO_ON_WAKE_LOCK[NookLibrary.scanTask1132324584]{2240/10011}{438101c8} has 
been abandoned by client process. Purging.
I/RadioWakeLock( 1831): Releasing Radio Wake Lock: 
'RADIO_ON_WAKE_LOCK[NookLibrary.scanTask1132324584]{2240/10011}{438101c8}'
I/RadioWakeLock( 1831): -------------------------
I/RadioWakeLock( 1831): Radio Wake Locks Held: 'On': 0  'Sleep': 0
I/RadioWakeLock( 1831): None
I/RadioWakeLock( 1831): -------------------------
E/WifiHW  ( 1831): Unable to open connection to supplicant on "eth0": No such 
file or directory
W/BluetoothHeadset( 1831): Proxy not attached to service
I/ConnectivityService( 1831): Radio 'On' Lock damping period expired.
I/ConnectivityService( 1831): Radio 'On' Lock damping period expired.
I/ConnectivityService( 1831): Radio 'On' Lock damping period expired.
I/dalvikvm-heap( 1831): Grow heap (frag case) to 4.421MB for 8208-byte 
allocation
I/ConnectivityService( 1831): --> Connection: CONNECTIVITY_ACTION[NetworkInfo: 
type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: (none), 
roaming: false, failover: false, isAvailable: true]
I/RadioPM ( 1961): <= Wifi Connectivity available: 'false' --> 'true'
I/RadioPM ( 1961): Updating Radios power state: 
I/RadioPM ( 1961): + -------sys state----------
I/RadioPM ( 1961): Airplane Mode        : true
I/RadioPM ( 1961): Sys Pwr State        : 1 
I/RadioPM ( 1961): Battery Voltage (mV) : 4140  Level (%) : 96
I/RadioPM ( 1961): Plugged-in           : 2 USB 
I/RadioPM ( 1961): Connectivity         : Wifi 
I/RadioPM ( 1961): Wifi Disabled        : No
I/RadioPM ( 1961): No Users             : false
I/RadioPM ( 1961): - -------sys state----------
I/ConnectivityService( 1831): -> teardown[MOBILE]
I/RadioWakeLock( 1831): Acquiring Radio Wake Lock: 
'RADIO_ON_WAKE_LOCK[SyncReceiver]{1995/1000}{437e3028}'
I/RadioWakeLock( 1831): -------------------------
I/RadioWakeLock( 1831): Radio Wake Locks Held: 'On': 1  'Sleep': 0
I/RadioWakeLock( 1831):     # lock type[app tag]{app pid/uid}{unique lock object 
hash}
I/RadioWakeLock( 1831):     1:  
RADIO_ON_WAKE_LOCK[SyncReceiver]{1995/1000}{437e3028}
I/RadioWakeLock( 1831): -------------------------
I/ConnectivityService( 1831): -> teardown[MOBILE]
I/RadioPM ( 1961): Updating Radios power state: 
I/RadioPM ( 1961): + -------sys state----------
I/RadioPM ( 1961): Airplane Mode        : true
I/RadioPM ( 1961): Sys Pwr State        : 1 
I/RadioPM ( 1961): Battery Voltage (mV) : 4140  Level (%) : 96
I/RadioPM ( 1961): Plugged-in           : 2 USB 
I/RadioPM ( 1961): Connectivity         : Wifi 
I/RadioPM ( 1961): Wifi Disabled        : No
I/RadioPM ( 1961): No Users             : false
I/RadioPM ( 1961): - -------sys state----------
I/RadioWakeLock( 1831): Releasing Radio Wake Lock: 
'RADIO_ON_WAKE_LOCK[SyncReceiver]{1995/1000}{437e3028}'
I/RadioWakeLock( 1831): -------------------------
I/RadioWakeLock( 1831): Radio Wake Locks Held: 'On': 0  'Sleep': 0
I/RadioWakeLock( 1831): None
I/RadioWakeLock( 1831): -------------------------
I/ConnectivityService( 1831): Radio 'On' Lock damping period expired.
I/ConnectivityService( 1831): -> teardown[MOBILE]
I/ConnectivityService( 1831): Radio 'On' Lock damping period expired.
I/ConnectivityService( 1831): -> teardown[MOBILE]
I/ConnectivityService( 1831): Radio 'On' Lock damping period expired.
I/ConnectivityService( 1831): -> teardown[MOBILE]
I/ConnectivityService( 1831): Radio 'On' Lock damping period expired.
I/ConnectivityService( 1831): -> teardown[MOBILE]
I/ConnectivityService( 1831): Radio 'Sleep' Lock damping period expired, 
'NO_LOCKS_ACTION' required= true
I/RadioPM ( 1961): Updating Radios power state: 
I/RadioPM ( 1961): + -------sys state----------
I/RadioPM ( 1961): Airplane Mode        : true
I/RadioPM ( 1961): Sys Pwr State        : 1 
I/RadioPM ( 1961): Battery Voltage (mV) : 4140  Level (%) : 96
I/RadioPM ( 1961): Plugged-in           : 2 USB 
I/RadioPM ( 1961): Connectivity         : Wifi 
I/RadioPM ( 1961): Wifi Disabled        : No
I/RadioPM ( 1961): No Users             : true
I/RadioPM ( 1961): - -------sys state----------
I/RadioPM ( 1961): Radio[Wifi].setPower('false')
I/WifiService( 1831): Disabling Wi-Fi...
E/ConnectivityService( 1831): MobileDataStateTracker errored out 'reconnect' 
request. This is normal.
I/RadioPM ( 1961): <= Wifi Connectivity available: 'true' --> 'false'
I/RadioPM ( 1961): Updating Radios power state: 
I/RadioPM ( 1961): + -------sys state----------
I/RadioPM ( 1961): Airplane Mode        : true
I/RadioPM ( 1961): Sys Pwr State        : 1 
I/RadioPM ( 1961): Battery Voltage (mV) : 4140  Level (%) : 96
I/RadioPM ( 1961): Plugged-in           : 2 USB 
I/RadioPM ( 1961): Connectivity         : 
I/RadioPM ( 1961): Wifi Disabled        : No
I/RadioPM ( 1961): No Users             : true
I/RadioPM ( 1961): - -------sys state----------
E/vold    ( 1737): Unable to lookup media '/class/mmc_host/mmc2/mmc2:0000'
E/vold    ( 1737): Error processing uevent msg (I/O error)

But if I go manually to the database, the query works:
sqlite> SELECT locale FROM android_metadata;
en_US

I also checked the owner of the directory and that of the application: they are 
both app_11.

I uninstalled the app and installed it again, it didn't fix it.

I also tried moving some books to the internal SD card and removing the 
external card, it still crashed.

I also ran fsck.vfat in both the internal and external SD cards, no errors 
found.

I backed up my books and formatted the external SD card (mkfs.vfat), no change.

Before this happened, I had been using it for months, and it always worked 
fine. Yesterday I tried to copy some books to the external SD card and it 
complained that it was full (although it had plenty of space). Maybe there's 
some problem with that card, but I tried running the application without the 
external SD and it crashes all the same.

Thanks!

Original issue reported on code.google.com by grimborg@gmail.com on 16 Nov 2010 at 9:10

GoogleCodeExporter commented 8 years ago
The default library application (not nookdevs) works, though.

Original comment by grimborg@gmail.com on 16 Nov 2010 at 9:11

GoogleCodeExporter commented 8 years ago
I also tried completely deleting all my books, in case one of them was causing 
the error. No change.

Original comment by grimborg@gmail.com on 16 Nov 2010 at 10:13

GoogleCodeExporter commented 8 years ago
Tried the query in all the databases of the application: all of them have the 
same locale.

# sqlite3 fictionwise.db 'select * from android_metadata';
en_US
# sqlite3 webviewCache.db 'select * from android_metadata';
en_US
# sqlite3 smashwords.db 'select * from android_metadata';
en_US
# sqlite3 webview.db  'select * from android_metadata';
en_US
# sqlite3 myBooks.db 'select * from android_metadata';
en_US

Original comment by grimborg@gmail.com on 16 Nov 2010 at 10:19

GoogleCodeExporter commented 8 years ago
Maybe I found something, but I don't know what to do with it. It would be great 
if any of you would provide some guidance (although I think it's not a bug in 
nooklibrary at all).

I ran the query on all the databases in the nook, and I got a disk I/O error on 
/data/data/com.bravo.home/theDB.db

Any clues on how to fix it? Maybe replace it with a backup from the nook from 
any of you?

Thanks!

Here's the result of running the query in all dbs:

# find / -name "*.db"|while read i; do echo $i; sqlite3 $i 'select * from 
android_metadata;';done
/data/data/com.android.providers.downloads/databases/downloads.db
en_US
/data/data/com.bravo.home/theDB.db
SQL error: disk I/O error
/data/data/com.nookdevs.browser/databases/webview.db
en_US
/data/data/com.nookdevs.browser/databases/webviewCache.db
en_US
/data/data/com.kbs.nooklet/databases/webview.db
en_US
/data/data/com.kbs.nooklet/databases/webviewCache.db
en_US
/data/data/com.bravo.library/AppInfoDB.db
en_US
/data/data/com.android.providers.contacts/databases/contacts.db
en_US
/data/data/com.android.providers.userdictionary/databases/user_dict.db
en_US
/data/data/net.nookapps.googlereader/databases/webview.db
en_US
/data/data/net.nookapps.googlereader/databases/webviewCache.db
en_US
/data/data/ru.mynook.library/databases/rss.db
en_US
/data/data/ru.mynook.library/databases/viewers.db
en_US
/data/data/com.bravo.app.browser/databases/webview.db
en_US
/data/data/com.bravo.app.browser/databases/webviewCache.db
en_US
/data/data/com.bravo.app.browser/app_icons/WebpageIcons.db
SQL error: no such table: android_metadata
/data/data/com.kbs.trook/databases/webview.db
en_US
/data/data/com.kbs.trook/databases/trook.db
en_US
/data/data/com.kbs.trook/databases/webviewCache.db
en_US
/data/data/ru.mynook.launcher/databases/items.db
en_US
/data/data/com.android.providers.media/databases/internal.db
en_US
/data/data/com.android.providers.media/databases/external-4ce1ad4c.db
en_US
/data/data/com.android.providers.media/databases/external-42181015.db
en_US
/data/data/com.android.providers.media/databases/external-ffffffff.db
en_US
/data/data/com.android.providers.settings/databases/settings.db
en_US
/data/system/syncmanager.db
en_US
/system/media/reference/b_and_g_dictionaries.db
en_US

Original comment by grimborg@gmail.com on 16 Nov 2010 at 10:28

GoogleCodeExporter commented 8 years ago
Fixed. Please close.

I found a theDB.db.bak, copied it over theDB.db and now it works.

Original comment by grimborg@gmail.com on 16 Nov 2010 at 10:33

GoogleCodeExporter commented 8 years ago
Hi,
Thanks for the details. I'll keep it open for a while just in case someone else 
has the same issue. 

Original comment by hari.swa...@gmail.com on 16 Nov 2010 at 3:08

GoogleCodeExporter commented 8 years ago

Original comment by hari.swa...@gmail.com on 4 Jan 2011 at 1:39