tingsu / DroidDefects

A database of crash (exception) bugs for Android apps
20 stars 2 forks source link

Different crash for tripmobile #3

Open auermich93 opened 10 months ago

auermich93 commented 10 months ago

The app tribmobile (me.tripsit.tripmobile) reveals a different crash upon following the crash procedure outlined here: https://github.com/tingsu/DroidDefects/tree/master/reproducible-cases/tripmobile-me.tripsit.mobile-1.0

When clicking on the 'Factsheets' ImageButton (2nd step) the app crashes with the following stack trace:

java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:325)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
Caused by: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
at android.os.Handler.<init>(Handler.java:200)
at android.os.Handler.<init>(Handler.java:114)
at android.app.Dialog.<init>(Dialog.java:122)
at android.app.AlertDialog.<init>(AlertDialog.java:200)
at android.app.AlertDialog$Builder.create(AlertDialog.java:1086)
at android.app.AlertDialog$Builder.show(AlertDialog.java:1111)
at me.tripsit.mobile.common.ErrorHandlingActivity.handleGenericError(ErrorHandlingActivity.java:21)
at me.tripsit.mobile.factsheets.DrugNamesAsyncTask.doInBackground(DrugNamesAsyncTask.java:50)
at me.tripsit.mobile.factsheets.DrugNamesAsyncTask.doInBackground(DrugNamesAsyncTask.java:19)
at android.os.AsyncTask$2.call(AsyncTask.java:305)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) 
at java.lang.Thread.run(Thread.java:761) 

Tested on a Pixel XL API 25 (7.1.1).