An error occured while executing doInBackground()

Bug #760333 reported by pjv
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Collectionista
In Progress
High
Unassigned
Alpha
In Progress
High
Unassigned

Bug Description

Feedback from user:

I tried to add ten books to my book collection by using the barcode scanner and the app crashed 4 times.

Likely relevant analytics data:

04/13/11 22:19:41 CET (1)

class java.lang.RuntimeException
Msg: An error occured while executing doInBackground()

V: 0.2.10
P: Android
E: uncaught

pjv (pjv)
Changed in collectionista:
importance: Undecided → High
Revision history for this message
pjv (pjv) wrote :

Can this be related to:

04/13/11 22:25:52 CET (2)

net.lp.collectionista.alpha.util.exceptions.ParseException: XStream could not parse the response at net.lp.collectionista.alpha.adapters.DiscogsMusicCDStore$DiscogsResponseHandler.parseResponse(DiscogsMusicCDStore.java:284) at net.lp.collectionista.alph
Msg: (publishProgress+Toast)

V: 0.2.10
P: Android
E: MusicCDItemScanAddTask:doInBackground-ParseException

I should add a Flurry exception to this in any case, with the barcode ISBN number!! Also should not crash.

Revision history for this message
pjv (pjv) wrote :

ParseException was already caught. I added barcode into Flurry.

The other different problem is:

04-15 00:14:32.255: ERROR/AndroidRuntime(15385): FATAL EXCEPTION: AsyncTask #3
04-15 00:14:32.255: ERROR/AndroidRuntime(15385): java.lang.RuntimeException: An error occured while executing doInBackground()
04-15 00:14:32.255: ERROR/AndroidRuntime(15385): at android.os.AsyncTask$3.done(AsyncTask.java:200)
04-15 00:14:32.255: ERROR/AndroidRuntime(15385): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
04-15 00:14:32.255: ERROR/AndroidRuntime(15385): at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
04-15 00:14:32.255: ERROR/AndroidRuntime(15385): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
04-15 00:14:32.255: ERROR/AndroidRuntime(15385): at java.util.concurrent.FutureTask.run(FutureTask.java:137)
04-15 00:14:32.255: ERROR/AndroidRuntime(15385): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
04-15 00:14:32.255: ERROR/AndroidRuntime(15385): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
04-15 00:14:32.255: ERROR/AndroidRuntime(15385): at java.lang.Thread.run(Thread.java:1096)
04-15 00:14:32.255: ERROR/AndroidRuntime(15385): Caused by: java.lang.RuntimeException: Only one Looper may be created per thread
04-15 00:14:32.255: ERROR/AndroidRuntime(15385): at android.os.Looper.prepare(Looper.java:73)
04-15 00:14:32.255: ERROR/AndroidRuntime(15385): at net.lp.collectionista.alpha.ui.activities.collections.cd.CDCollectionViewWindow$MusicCDItemScanAddTask.doInBackground(CDCollectionViewWindow.java:175)
04-15 00:14:32.255: ERROR/AndroidRuntime(15385): at net.lp.collectionista.alpha.ui.activities.collections.cd.CDCollectionViewWindow$MusicCDItemScanAddTask.doInBackground(CDCollectionViewWindow.java:1)
04-15 00:14:32.255: ERROR/AndroidRuntime(15385): at net.lp.collectionista.alpha.util.ScanAddTask.doInBackground(ScanAddTask.java:1)
04-15 00:14:32.255: ERROR/AndroidRuntime(15385): at android.os.AsyncTask$2.call(AsyncTask.java:185)
04-15 00:14:32.255: ERROR/AndroidRuntime(15385): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
04-15 00:14:32.255: ERROR/AndroidRuntime(15385): ... 4 more

Revision history for this message
pjv (pjv) wrote :

No need for Looper.prepare() there?

I should still add a testcase for this, and only then close the bug.

Changed in collectionista:
status: New → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.