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

GitHub | philipwhiuk | 5 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 1583#249382067

    GitHub | 5 months ago | philipwhiuk
    java.lang.RuntimeException: An error occurred while executing doInBackground()
  2. 0

    K-9 mail crashes when trying to download an attachment

    GitHub | 3 months ago | marmistrz
    java.lang.RuntimeException: An error occurred while executing doInBackground()

    Root Cause Analysis

    1. java.lang.IllegalStateException

      No attachment data available

      at com.fsck.k9.mailstore.LocalStore.getRawAttachmentInputStream()
    2. com.fsck.k9
      AttachmentProvider.openFile
      1. com.fsck.k9.mailstore.LocalStore.getRawAttachmentInputStream(LocalStore.java:725)
      2. com.fsck.k9.mailstore.LocalStore.access$100(LocalStore.java:66)
      3. com.fsck.k9.mailstore.LocalStore$15.doDbWork(LocalStore.java:700)
      4. com.fsck.k9.mailstore.LocalStore$15.doDbWork(LocalStore.java:684)
      5. com.fsck.k9.mailstore.LockableDatabase.execute(LockableDatabase.java:275)
      6. com.fsck.k9.mailstore.LocalStore.getAttachmentInputStream(LocalStore.java:684)
      7. com.fsck.k9.provider.AttachmentProvider.getAttachmentInputStream(AttachmentProvider.java:186)
      8. com.fsck.k9.provider.AttachmentProvider.openAttachment(AttachmentProvider.java:167)
      9. com.fsck.k9.provider.AttachmentProvider.openFile(AttachmentProvider.java:78)
      9 frames
    3. Android Platform
      ContentResolver.openInputStream
      1. android.content.ContentProvider.openAssetFile(ContentProvider.java:1377)
      2. android.content.ContentProvider.openTypedAssetFile(ContentProvider.java:1557)
      3. android.content.ContentProvider.openTypedAssetFile(ContentProvider.java:1623)
      4. android.content.ContentProvider$Transport.openTypedAssetFile(ContentProvider.java:422)
      5. android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1145)
      6. android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:982)
      7. android.content.ContentResolver.openInputStream(ContentResolver.java:702)
      7 frames
    4. com.fsck.k9
      AttachmentController$SaveAttachmentAsyncTask.doInBackground
      1. com.fsck.k9.ui.messageview.AttachmentController.writeAttachmentToStorage(AttachmentController.java:147)
      2. com.fsck.k9.ui.messageview.AttachmentController.saveAttachmentWithUniqueFileName(AttachmentController.java:139)
      3. com.fsck.k9.ui.messageview.AttachmentController.access$900(AttachmentController.java:40)
      4. com.fsck.k9.ui.messageview.AttachmentController$SaveAttachmentAsyncTask.doInBackground(AttachmentController.java:346)
      5. com.fsck.k9.ui.messageview.AttachmentController$SaveAttachmentAsyncTask.doInBackground(AttachmentController.java:335)
      5 frames
    5. Android Platform
      AsyncTask$2.call
      1. android.os.AsyncTask$2.call(AsyncTask.java:304)
      1 frame
    6. Java RT
      FutureTask.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:237)
      1 frame