Conversations
Conversations copied to clipboard
Fix crash on android 11 and late when record video
This crash on android 11 and late when record video
E/AndroidRuntime: FATAL EXCEPTION: pool-25-thread-1 Process: com.majd.paraibachat, PID: 13789 java.lang.IllegalStateException: Only owner is able to interact with pending item content://media/external_primary/video/media/150 at android.os.Parcel.createExceptionOrNull(Parcel.java:2433) at android.os.Parcel.createException(Parcel.java:2409) at android.os.Parcel.readException(Parcel.java:2392) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:190) at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:153) at android.content.ContentProviderProxy.openTypedAssetFile(ContentProviderNative.java:780) at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:2027) at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1842) at android.content.ContentResolver.openInputStream(ContentResolver.java:1518) at com.majd.paraibachat.persistance.FileBackend.copyFileToPrivateStorage(FileBackend.java:716) at com.majd.paraibachat.persistance.FileBackend.copyFileToPrivateStorage(FileBackend.java:917) at com.majd.paraibachat.services.AttachFileToConversationRunnable.processAsFile(AttachFileToConversationRunnable.java:71) at com.majd.paraibachat.services.AttachFileToConversationRunnable.run(AttachFileToConversationRunnable.java:176) at com.majd.paraibachat.utils.SerialSingleThreadExecutor$Runner.run(SerialSingleThreadExecutor.java:60) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:920)
I’m unable to reproduce this crash. It looks like your camera app is not granting URI permissions. Which operating system and camera app are you using?
@iNPUTmice
I tested this on Android 12 on emulator android studio
This video is about a bug
https://drive.google.com/file/d/1Yqn_iqDtHQNe8Nke6WdSV5TdJo3YT98J/view?usp=sharing