java.lang.IllegalStateException: Unable to create new file: /android_asset/Resources/sdcard/dcim/Camera/tia-1548357546.jpg

Appcelerator JIRA | Thomas Huelbert | 6 years ago
  1. 0

    1.Phone > camera > camera basic with adb on 2.take an image and check out put results: (image loads and looks as expected) E/ ( 7572): can't open '/android_asset/Resources/sdcard/dcim/Camera/tia-1548357546.jpg' E/MediaScannerService( 7572): Exception in handleMessage E/MediaScannerService( 7572): java.lang.IllegalStateException: Unable to create new file: /android_asset/Resources/sdcard/dcim/Camera/tia-1548357546.jpg E/MediaScannerService( 7572): at com.android.providers.media.MediaProvider.ensureFile(MediaProvider.java:1693) E/MediaScannerService( 7572): at com.android.providers.media.MediaProvider.insertInternal(MediaProvider.java:1803) E/MediaScannerService( 7572): at com.android.providers.media.MediaProvider.insert(MediaProvider.java:1734) E/MediaScannerService( 7572): at android.content.ContentProvider$Transport.insert(ContentProvider.java:198) E/MediaScannerService( 7572): at android.media.MediaScanner$MyMediaScannerClient.endFile(MediaScanner.java:774) E/MediaScannerService( 7572): at android.media.MediaScanner$MyMediaScannerClient.doScanFile(MediaScanner.java:522) E/MediaScannerService( 7572): at android.media.MediaScanner.scanSingleFile(MediaScanner.java:1219) E/MediaScannerService( 7572): at com.android.providers.media.MediaScannerService.scanFile(MediaScannerService.java:200) E/MediaScannerService( 7572): at com.android.providers.media.MediaScannerService.access$100(MediaScannerService.java:48) E/MediaScannerService( 7572): at com.android.providers.media.MediaScannerService$ServiceHandler.handleMessage(MediaScannerService.java:244) E/MediaScannerService( 7572): at android.os.Handler.dispatchMessage(Handler.java:99) E/MediaScannerService( 7572): at android.os.Looper.loop(Looper.java:123) E/MediaScannerService( 7572): at com.android.providers.media.MediaScannerService.run(MediaScannerService.java:188) E/MediaScannerService( 7572): at java.lang.Thread.run(Thread.java:1019) D/AudioHardware( 75): AudioHardware pcm playback is going to standby.

    Appcelerator JIRA | 6 years ago | Thomas Huelbert
    java.lang.IllegalStateException: Unable to create new file: /android_asset/Resources/sdcard/dcim/Camera/tia-1548357546.jpg
  2. 0

    1.Phone > camera > camera basic with adb on 2.take an image and check out put results: (image loads and looks as expected) E/ ( 7572): can't open '/android_asset/Resources/sdcard/dcim/Camera/tia-1548357546.jpg' E/MediaScannerService( 7572): Exception in handleMessage E/MediaScannerService( 7572): java.lang.IllegalStateException: Unable to create new file: /android_asset/Resources/sdcard/dcim/Camera/tia-1548357546.jpg E/MediaScannerService( 7572): at com.android.providers.media.MediaProvider.ensureFile(MediaProvider.java:1693) E/MediaScannerService( 7572): at com.android.providers.media.MediaProvider.insertInternal(MediaProvider.java:1803) E/MediaScannerService( 7572): at com.android.providers.media.MediaProvider.insert(MediaProvider.java:1734) E/MediaScannerService( 7572): at android.content.ContentProvider$Transport.insert(ContentProvider.java:198) E/MediaScannerService( 7572): at android.media.MediaScanner$MyMediaScannerClient.endFile(MediaScanner.java:774) E/MediaScannerService( 7572): at android.media.MediaScanner$MyMediaScannerClient.doScanFile(MediaScanner.java:522) E/MediaScannerService( 7572): at android.media.MediaScanner.scanSingleFile(MediaScanner.java:1219) E/MediaScannerService( 7572): at com.android.providers.media.MediaScannerService.scanFile(MediaScannerService.java:200) E/MediaScannerService( 7572): at com.android.providers.media.MediaScannerService.access$100(MediaScannerService.java:48) E/MediaScannerService( 7572): at com.android.providers.media.MediaScannerService$ServiceHandler.handleMessage(MediaScannerService.java:244) E/MediaScannerService( 7572): at android.os.Handler.dispatchMessage(Handler.java:99) E/MediaScannerService( 7572): at android.os.Looper.loop(Looper.java:123) E/MediaScannerService( 7572): at com.android.providers.media.MediaScannerService.run(MediaScannerService.java:188) E/MediaScannerService( 7572): at java.lang.Thread.run(Thread.java:1019) D/AudioHardware( 75): AudioHardware pcm playback is going to standby.

    Appcelerator JIRA | 6 years ago | Thomas Huelbert
    java.lang.IllegalStateException: Unable to create new file: /android_asset/Resources/sdcard/dcim/Camera/tia-1548357546.jpg
  3. 0

    1.platform > camera take a pic and check adb E/MediaScannerService( 3516): Exception in handleMessage E/MediaScannerService( 3516): java.lang.IllegalStateException: Unable to create new file: /android_asset/Resources/sdcard/dcim/Camera/tia820582356.jpg E/MediaScannerService( 3516): at com.android.providers.media.MediaProvider.ensureFile(MediaProvider.java:2153) E/MediaScannerService( 3516): at com.android.providers.media.MediaProvider.insertFile(MediaProvider.java:2323) E/MediaScannerService( 3516): at com.android.providers.media.MediaProvider.insertInternal(MediaProvider.java:2653) E/MediaScannerService( 3516): at com.android.providers.media.MediaProvider.insert(MediaProvider.java:2227) E/MediaScannerService( 3516): at android.content.ContentProvider$Transport.insert(ContentProvider.java:203) E/MediaScannerService( 3516): at android.media.MediaScanner$MyMediaScannerClient.endFile(MediaScanner.java:786) E/MediaScannerService( 3516): at android.media.MediaScanner$MyMediaScannerClient.doScanFile(MediaScanner.java:547) E/MediaScannerService( 3516): at android.media.MediaScanner.scanSingleFile(MediaScanner.java:1180) E/MediaScannerService( 3516): at com.android.providers.media.MediaScannerService.scanFile(MediaScannerService.java:193) E/MediaScannerService( 3516): at com.android.providers.media.MediaScannerService.access$100(MediaScannerService.java:49) E/MediaScannerService( 3516): at com.android.providers.media.MediaScannerService$ServiceHandler.handleMessage(MediaScannerService.java:237) E/MediaScannerService( 3516): at android.os.Handler.dispatchMessage(Handler.java:99) E/MediaScannerService( 3516): at android.os.Looper.loop(Looper.java:126) E/MediaScannerService( 3516): at com.android.providers.media.MediaScannerService.run(MediaScannerService.java:182) E/MediaScannerService( 3516): at java.lang.Thread.run(Thread.java:1020) D/TabletStatusBar( 238): lights on

    Appcelerator JIRA | 6 years ago | Thomas Huelbert
    java.lang.IllegalStateException: Unable to create new file: /android_asset/Resources/sdcard/dcim/Camera/tia820582356.jpg
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    1.platform > camera take a pic and check adb E/MediaScannerService( 3516): Exception in handleMessage E/MediaScannerService( 3516): java.lang.IllegalStateException: Unable to create new file: /android_asset/Resources/sdcard/dcim/Camera/tia820582356.jpg E/MediaScannerService( 3516): at com.android.providers.media.MediaProvider.ensureFile(MediaProvider.java:2153) E/MediaScannerService( 3516): at com.android.providers.media.MediaProvider.insertFile(MediaProvider.java:2323) E/MediaScannerService( 3516): at com.android.providers.media.MediaProvider.insertInternal(MediaProvider.java:2653) E/MediaScannerService( 3516): at com.android.providers.media.MediaProvider.insert(MediaProvider.java:2227) E/MediaScannerService( 3516): at android.content.ContentProvider$Transport.insert(ContentProvider.java:203) E/MediaScannerService( 3516): at android.media.MediaScanner$MyMediaScannerClient.endFile(MediaScanner.java:786) E/MediaScannerService( 3516): at android.media.MediaScanner$MyMediaScannerClient.doScanFile(MediaScanner.java:547) E/MediaScannerService( 3516): at android.media.MediaScanner.scanSingleFile(MediaScanner.java:1180) E/MediaScannerService( 3516): at com.android.providers.media.MediaScannerService.scanFile(MediaScannerService.java:193) E/MediaScannerService( 3516): at com.android.providers.media.MediaScannerService.access$100(MediaScannerService.java:49) E/MediaScannerService( 3516): at com.android.providers.media.MediaScannerService$ServiceHandler.handleMessage(MediaScannerService.java:237) E/MediaScannerService( 3516): at android.os.Handler.dispatchMessage(Handler.java:99) E/MediaScannerService( 3516): at android.os.Looper.loop(Looper.java:126) E/MediaScannerService( 3516): at com.android.providers.media.MediaScannerService.run(MediaScannerService.java:182) E/MediaScannerService( 3516): at java.lang.Thread.run(Thread.java:1020) D/TabletStatusBar( 238): lights on

    Appcelerator JIRA | 6 years ago | Thomas Huelbert
    java.lang.IllegalStateException: Unable to create new file: /android_asset/Resources/sdcard/dcim/Camera/tia820582356.jpg
  6. 0

    Android Froyo setting ringtone

    Stack Overflow | 6 years ago | Pintac
    java.lang.IllegalStateException: Unknown URL: content://media/external/audio/albumart/-1

    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

      Unable to create new file: /android_asset/Resources/sdcard/dcim/Camera/tia-1548357546.jpg

      at com.android.providers.media.MediaProvider.ensureFile()
    2. com.android.providers
      MediaProvider.insert
      1. com.android.providers.media.MediaProvider.ensureFile(MediaProvider.java:1693)
      2. com.android.providers.media.MediaProvider.insertInternal(MediaProvider.java:1803)
      3. com.android.providers.media.MediaProvider.insert(MediaProvider.java:1734)
      3 frames
    3. Android Platform
      MediaScanner.scanSingleFile
      1. android.content.ContentProvider$Transport.insert(ContentProvider.java:198)
      2. android.media.MediaScanner$MyMediaScannerClient.endFile(MediaScanner.java:774)
      3. android.media.MediaScanner$MyMediaScannerClient.doScanFile(MediaScanner.java:522)
      4. android.media.MediaScanner.scanSingleFile(MediaScanner.java:1219)
      4 frames
    4. com.android.providers
      MediaScannerService$ServiceHandler.handleMessage
      1. com.android.providers.media.MediaScannerService.scanFile(MediaScannerService.java:200)
      2. com.android.providers.media.MediaScannerService.access$100(MediaScannerService.java:48)
      3. com.android.providers.media.MediaScannerService$ServiceHandler.handleMessage(MediaScannerService.java:244)
      3 frames
    5. Android Platform
      Looper.loop
      1. android.os.Handler.dispatchMessage(Handler.java:99)
      2. android.os.Looper.loop(Looper.java:123)
      2 frames
    6. com.android.providers
      MediaScannerService.run
      1. com.android.providers.media.MediaScannerService.run(MediaScannerService.java:188)
      1 frame
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:1019)
      1 frame