• Resolved onebond23

    (@onebond23)


    Hi,
    I have been developing an online store using woocommerce. Initially when I tried to upload products from the android app (Android version 10), it worked fine but now every time it shows the error “Error uploading product image”.
    Using adb logcat, I got the logs and found that the following exception was occurring:

    02-10 21:02:58.916  7305 10434 E WordPress-UTILS: Error reading orientation of the file: /data/user/0/com.woocommerce.android/cache/JPEG_20210210_210248_3161848984972470923.jpg
    02-10 21:02:58.916  7305 10434 E WordPress-UTILS: java.lang.IllegalArgumentException: Volume data not found
    02-10 21:02:58.916  7305 10434 E WordPress-UTILS: 	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:170)
    02-10 21:02:58.916  7305 10434 E WordPress-UTILS: 	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:140)
    02-10 21:02:58.916  7305 10434 E WordPress-UTILS: 	at android.content.ContentProviderProxy.query(ContentProviderNative.java:423)
    02-10 21:02:58.916  7305 10434 E WordPress-UTILS: 	at android.content.ContentResolver.query(ContentResolver.java:951)
    02-10 21:02:58.916  7305 10434 E WordPress-UTILS: 	at android.content.ContentResolver.query(ContentResolver.java:887)
    02-10 21:02:58.916  7305 10434 E WordPress-UTILS: 	at android.content.ContentResolver.query(ContentResolver.java:843)
    02-10 21:02:58.916  7305 10434 E WordPress-UTILS: 	at org.wordpress.android.util.ImageUtils.getImageOrientation(ImageUtils.java:101)
    02-10 21:02:58.916  7305 10434 E WordPress-UTILS: 	at org.wordpress.android.util.ImageUtils.optimizeImage(ImageUtils.java:548)
    02-10 21:02:58.916  7305 10434 E WordPress-UTILS: 	at com.woocommerce.android.media.ProductImagesUtils.getOptimizedImageUri(ProductImagesUtils.kt:169)
    02-10 21:02:58.916  7305 10434 E WordPress-UTILS: 	at com.woocommerce.android.media.ProductImagesUtils.getOptimizedImagePath(ProductImagesUtils.kt:178)
    02-10 21:02:58.916  7305 10434 E WordPress-UTILS: 	at com.woocommerce.android.media.ProductImagesUtils.mediaModelFromLocalUri(ProductImagesUtils.kt:50)
    02-10 21:02:58.916  7305 10434 E WordPress-UTILS: 	at com.woocommerce.android.media.ProductImagesService.onHandleWork(ProductImagesService.kt:150)
    02-10 21:02:58.916  7305 10434 E WordPress-UTILS: 	at androidx.core.app.JobIntentService$CommandProcessor.doInBackground(JobIntentService.java:392)
    02-10 21:02:58.916  7305 10434 E WordPress-UTILS: 	at androidx.core.app.JobIntentService$CommandProcessor.doInBackground(JobIntentService.java:383)
    02-10 21:02:58.916  7305 10434 E WordPress-UTILS: 	at android.os.AsyncTask$3.call(AsyncTask.java:378)
    02-10 21:02:58.916  7305 10434 E WordPress-UTILS: 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    02-10 21:02:58.916  7305 10434 E WordPress-UTILS: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
    02-10 21:02:58.916  7305 10434 E WordPress-UTILS: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    02-10 21:02:58.916  7305 10434 E WordPress-UTILS: 	at java.lang.Thread.run(Thread.java:919)
    02-10 21:02:58.917  4886 11936 D GameManagerService: setTargetFrameRate(), mCurrentUserId: 0, callerUserId: 0
    02-10 21:02:58.917 10798 10845 D GOS:ExternalSdkCore: restoreDefault()
    02-10 21:02:58.917  8672 10989 W MediaPlayer: Couldn't open content://0@settings/system/notification_sound_cache
    02-10 21:02:58.917  8672 10989 W MediaPlayer: java.io.FileNotFoundException: open failed: ENOENT (No such file or directory)
    02-10 21:02:58.917  8672 10989 W MediaPlayer: 	at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:149)
    02-10 21:02:58.917  8672 10989 W MediaPlayer: 	at android.content.ContentProviderProxy.openTypedAssetFile(ContentProviderNative.java:705)
    02-10 21:02:58.917  8672 10989 W MediaPlayer: 	at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1694)
    02-10 21:02:58.917  8672 10989 W MediaPlayer: 	at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1510)
    02-10 21:02:58.917  8672 10989 W MediaPlayer: 	at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1427)
    02-10 21:02:58.917  8672 10989 W MediaPlayer: 	at android.media.MediaPlayer.attemptDataSource(MediaPlayer.java:1180)
    02-10 21:02:58.917  8672 10989 W MediaPlayer: 	at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1143)
    02-10 21:02:58.917  8672 10989 W MediaPlayer: 	at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1080)
    02-10 21:02:58.917  8672 10989 W MediaPlayer: 	at com.android.systemui.media.NotificationPlayer$CreationAndCompletionThread.run(NotificationPlayer.java:116)
    02-10 21:02:58.918  8672 10989 W MediaPlayer: Couldn't open null uri
    02-10 21:02:58.918  8672 10989 W MediaPlayer: java.lang.NullPointerException: uri
    02-10 21:02:58.918  8672 10989 W MediaPlayer: 	at com.android.internal.util.Preconditions.checkNotNull(Preconditions.java:133)
    02-10 21:02:58.918  8672 10989 W MediaPlayer: 	at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1484)
    02-10 21:02:58.918  8672 10989 W MediaPlayer: 	at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1427)
    02-10 21:02:58.918  8672 10989 W MediaPlayer: 	at android.media.MediaPlayer.attemptDataSource(MediaPlayer.java:1180)
    02-10 21:02:58.918  8672 10989 W MediaPlayer: 	at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1145)
    02-10 21:02:58.918  8672 10989 W MediaPlayer: 	at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1080)
    02-10 21:02:58.918  8672 10989 W MediaPlayer: 	at com.android.systemui.media.NotificationPlayer$CreationAndCompletionThread.run(NotificationPlayer.java:116)
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Cannot upload image using woocommerce app’ is closed to new replies.