Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

IllegalStateException: Failed to build unique file #180

Open
akrulec opened this issue Nov 7, 2023 · 2 comments
Open

IllegalStateException: Failed to build unique file #180

akrulec opened this issue Nov 7, 2023 · 2 comments

Comments

@akrulec
Copy link

akrulec commented Nov 7, 2023

Hi,

I'm using this library for some video uploading, and I keep seeing this error pop up in Firebase Crashlytics:

Fatal Exception: java.lang.IllegalStateException
Failed to build unique file: /storage/emulated/0/Movies/compressed_video_temp.mp4 bucket_display_name=Movies volume_name=external_primary date_modified=null date_expires=null _display_name=compressed_video_temp.mp4 mime_type=video/mp4 _data=/storage/emulated/0/Movies/compressed_video_temp.mp4 _size=null is_trashed=0 is_pending=0 bucket_id=-1730634595 relative_path=Movies/

Full stack:

android.os.Parcel.createExceptionOrNull (Parcel.java:3065)
android.os.Parcel.createException (Parcel.java:3041)
android.os.Parcel.readException (Parcel.java:3024)
android.database.DatabaseUtils.readExceptionFromParcel (DatabaseUtils.java:190)
android.database.DatabaseUtils.readExceptionFromParcel (DatabaseUtils.java:142)
android.content.ContentProviderProxy.update (ContentProviderNative.java:685)
android.content.ContentResolver.update (ContentResolver.java:2416)
android.content.ContentResolver.update (ContentResolver.java:2378)
com.abedelazizshe.lightcompressorlibrary.VideoCompressor.saveVideoInExternal (VideoCompressor.kt:343)
com.abedelazizshe.lightcompressorlibrary.VideoCompressor.saveVideoFile (VideoCompressor.kt:237)
com.abedelazizshe.lightcompressorlibrary.VideoCompressor.access$saveVideoFile (VideoCompressor.kt)
com.abedelazizshe.lightcompressorlibrary.VideoCompressor$doVideoCompression$1.invokeSuspend (VideoCompressor.kt:152)
kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (ContinuationImpl.kt:33)
kotlinx.coroutines.DispatchedTask.run (DispatchedTask.kt:106)
android.os.Handler.handleCallback (Handler.java:958)
android.os.Handler.dispatchMessage (Handler.java:99)
android.os.Looper.loopOnce (Looper.java:205)
android.os.Looper.loop (Looper.java:294)
android.app.ActivityThread.main (ActivityThread.java:8177)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:552)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:971)

Any idea what we might be doing wrong?

@rachit1797
Copy link

Getting a Similar Issue. Any Solution?

@rachit1797
Copy link

@AbedElazizShe Any Update on this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants