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

Stack Overflow | kathleen55 | 7 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd and Rafael Fischer Viola . Or join the community to write better ones.
  1. 0

    android Fatal Exception: AsyncTask #5

    Stack Overflow | 7 months ago | kathleen55
    java.lang.RuntimeException: An error occured while executing doInBackground()
  2. 0
    samebug tip
    You expected a file in the SD card or internal memory, but you have to deal with a file from Google drive.
    via GitHub by forouher
  3. 0
    samebug tip
    The cursor might not be initalized.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    In cause your problem comes because of mediastore, you have to try changing Albums.ALBUM_ID, to Albums._ID
  6. 0

    Force Close in use "ContactsContract.CommonDataKinds.StructuredName"

    Stack Overflow | 4 years ago | user2446281
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mhb.Provider/com.mhb.Provider.MainActivity}: java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.

    at android.database.CursorWindow.nativeGetString()
  2. Android Platform
    CursorWrapper.getString
    1. android.database.CursorWindow.nativeGetString(Native Method)
    2. android.database.CursorWindow.getString(CursorWindow.java:438)
    3. android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:51)
    4. android.database.CursorWrapper.getString(CursorWrapper.java:114)
    4 frames
  3. com.iceteck.silicompressorr
    SiliCompressor.compress
    1. com.iceteck.silicompressorr.SiliCompressor.getRealPathFromURI(SiliCompressor.java:322)
    2. com.iceteck.silicompressorr.SiliCompressor.compressImage(SiliCompressor.java:163)
    3. com.iceteck.silicompressorr.SiliCompressor.compress(SiliCompressor.java:59)
    3 frames
  4. ground.project.com
    UploadPhotoActivity$ImageCompressionAsyncTask.doInBackground
    1. ground.project.com.undergroundproject.UploadPhotoActivity$ImageCompressionAsyncTask.doInBackground(UploadPhotoActivity.java:124)
    2. ground.project.com.undergroundproject.UploadPhotoActivity$ImageCompressionAsyncTask.doInBackground(UploadPhotoActivity.java:113)
    2 frames
  5. Android Platform
    AsyncTask$2.call
    1. android.os.AsyncTask$2.call(AsyncTask.java:288)
    1 frame
  6. Java RT
    FutureTask.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:237)
    1 frame