wordpress-mobile / WordPress-Android

WordPress for Android
http://android.wordpress.org
GNU General Public License v2.0
2.96k stars 1.31k forks source link

IllegalArgumentException: You must pass a valid uri and observer #20615

Closed sentry-io[bot] closed 5 months ago

sentry-io[bot] commented 5 months ago

Sentry Issue: JETPACK-ANDROID-HXB

java.lang.IllegalArgumentException: You must pass a valid uri and observer
    at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:219)
    at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:189)
    at android.content.ContentProviderProxy.query(ContentProviderNative.java:472)
    at android.content.ContentResolver.query(ContentResolver.java:1195)
    at android.content.ContentResolver.query(ContentResolver.java:1122)
    at android.content.ContentResolver.query(ContentResolver.java:1078)
    at org.wordpress.android.util.MediaUtils.getFilenameFromURI(MediaUtils.java:164)
    at org.wordpress.android.util.MediaUtils.downloadExternalMedia(MediaUtils.java:230)
    at org.wordpress.android.util.MediaUtils.downloadExternalMedia(MediaUtils.java:193)
    at org.wordpress.android.util.WPMediaUtils.fetchMedia(WPMediaUtils.java:455)
    at org.wordpress.android.util.WPMediaUtilsWrapper.fetchMedia(WPMediaUtilsWrapper.kt:10)
    at org.wordpress.android.ui.mediapicker.insert.DeviceListInsertUseCase$insert$2.invokeSuspend(DeviceListInsertUseCase.kt:20)
    at org.wordpress.android.ui.mediapicker.insert.DeviceListInsertUseCase$insert$2.invoke(DeviceListInsertUseCase.kt:0)
    at org.wordpress.android.ui.mediapicker.insert.DeviceListInsertUseCase$insert$2.invoke(DeviceListInsertUseCase.kt:0)
    at org.wordpress.android.ui.mediapicker.insert.DeviceListInsertUseCase$insert$2.invoke(DeviceListInsertUseCase.kt:0)
    at org.wordpress.android.ui.mediapicker.insert.DeviceListInsertUseCase$insert$2.invoke(DeviceListInsertUseCase.kt:0)
    at kotlinx.coroutines.flow.SafeFlow.collectSafely(Builders.kt:61)
    at kotlinx.coroutines.flow.AbstractFlow.collect(Flow.kt:230)
    at kotlinx.coroutines.flow.internal.ChannelFlowOperatorImpl.flowCollect(ChannelFlow.kt:195)
    at kotlinx.coroutines.flow.internal.ChannelFlowOperator.collectTo$suspendImpl(ChannelFlow.kt:157)
    at kotlinx.coroutines.flow.internal.ChannelFlowOperator.collectTo(ChannelFlow.kt:0)
    at kotlinx.coroutines.flow.internal.ChannelFlow$collectToFun$1.invokeSuspend(ChannelFlow.kt:60)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.CoroutineContextKt.withContinuationContext
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:90)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
dangermattic commented 5 months ago

Thanks for reporting! 👍

sentry-io[bot] commented 5 months ago

Sentry Issue: WORDPRESS-ANDROID-2X56

antonis commented 5 months ago

All occurrences are on Android 11 at this point.