DBDigital / nookdevs

Automatically exported from code.google.com/p/nookdevs Please note I am not a developer. I only created this to prevent the code from being lost with the shutdown of GoogleCode. If you wish to work on this, contact me and I will add you. :)
0 stars 0 forks source link

Handling unexpected failures from IECMScannerService #34

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Every once in a while, it looks like the scanner service fails
catastrophically, and neither the stock b&n library nor the nooklibrary
open up.

I wonder if we could pop a dialog and trap these, otherwise it looks like
it's just not starting up at all?

poutine was also wondering if we could just trap and ignore the error and
leave the app running.

Appended are some stacktraces from a user who reported the issue.

#
E/nookLibrary( 2777): Exception calling scanDirectoriesBatch ...
#
E/nookLibrary( 2777): java.lang.NullPointerException
#
E/nookLibrary( 2777):   at android.os.Parcel.readException(Parcel.java:1240)
#
E/nookLibrary( 2777):   at android.os.Parcel.readException(Parcel.java:1222)
#
E/nookLibrary( 2777):   at
com.bravo.ecmscannerservice.IECMScannerService$Stub$Proxy.scanDirectoriesBatch(I
ECMScannerService.java:261)
#
E/nookLibrary( 2777):   at
com.nookdevs.library.NookLibrary.loadBookData(NookLibrary.java:334)
#
E/nookLibrary( 2777):   at
com.nookdevs.library.NookLibrary.access$11(NookLibrary.java:326)
#
E/nookLibrary( 2777):   at
com.nookdevs.library.NookLibrary$2$1.run(NookLibrary.java:349)
#
E/nookLibrary( 2777):   at java.lang.Thread.run(Thread.java:1058)

Original issue reported on code.google.com by kbsriram on 20 Feb 2010 at 12:28

GoogleCodeExporter commented 8 years ago

Original comment by kbsriram on 20 Feb 2010 at 12:28

GoogleCodeExporter commented 8 years ago
We can either display an error message and exit the app or continue.
If we continue, some files will be missing in the listing. probably have to 
display 
an error there as well.

Original comment by hari.swa...@gmail.com on 20 Feb 2010 at 12:44

GoogleCodeExporter commented 8 years ago
Included in 0.6 version.
Added logic to display an error message and continue when this happens. I 
couldn't 
reproduce the problem. So, I didn't really test this part. 

Original comment by hari.swa...@gmail.com on 6 Mar 2010 at 5:36