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

GitHub | spirosbond | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.

Root Cause Analysis

  1. 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.view.SurfaceView$1.<init>(SurfaceView.java:126) at android.view.SurfaceView.<init>(SurfaceView.java:126) at com.futerox.flashlight.CameraSurface.<init>(CameraSurface.java:49)

    at com.futerox.flashlight.Flash.loadParameters()
  2. com.futerox.flashlight
    SmsReceiver$ManageFlash.doInBackground
    1. com.futerox.flashlight.Flash.loadParameters(Flash.java:140)
    2. com.futerox.flashlight.Flash.enableFlash(Flash.java:199)
    3. com.futerox.flashlight.SmsReceiver$ManageFlash.doInBackground(SmsReceiver.java:73)
    4. com.futerox.flashlight.SmsReceiver$ManageFlash.doInBackground(SmsReceiver.java:50)
    4 frames
  3. Android Platform
    AsyncTask$2.call
    1. android.os.AsyncTask$2.call(AsyncTask.java:288)
    1 frame
  4. Java RT
    FutureTask.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:237)
    1 frame
  5. Android Platform
    AsyncTask$SerialExecutor$1.run
    1. android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
    1 frame
  6. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
    3. java.lang.Thread.run(Thread.java:841)
    3 frames