Compressor icon indicating copy to clipboard operation
Compressor copied to clipboard

Fatal Exception: IllegalStateException

Open utsavDave97 opened this issue 4 years ago • 12 comments

Fatal Exception: java.lang.IllegalStateException: this must not be null at id.zelory.compressor.UtilKt.loadBitmap(Util.kt:34) at id.zelory.compressor.constraint.QualityConstraint.satisfy(QualityConstraint.kt:21) at id.zelory.compressor.Compressor$compress$3.invokeSuspend(Compressor.kt:28) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

any idea why?

utsavDave97 avatar Feb 24 '21 13:02 utsavDave97

@utsavDave97 got any update for this ?

prudhvir3ddy avatar Mar 16 '21 14:03 prudhvir3ddy

@prudhvir3ddy no update yet. Sorry. You getting the same exception?

utsavDave97 avatar Mar 16 '21 16:03 utsavDave97

Yes

prudhvir3ddy avatar Mar 16 '21 17:03 prudhvir3ddy

Are you getting this error on all devices or specific to single device?

nareshkatta99 avatar Apr 07 '21 22:04 nareshkatta99

i have the same exception, got any update for this ?

SilvestreRamirez avatar Apr 12 '21 19:04 SilvestreRamirez

No update. But most likely will change the library. @nareshkatta99 @prudhvir3ddy @SilvestreRamirez

utsavDave97 avatar Apr 13 '21 01:04 utsavDave97

It wold be very helpful for us if you provide minimal code to reproduce this error. Will try to resolve ASAP. @utsavDave97 @prudhvir3ddy @SilvestreRamirez

nareshkatta99 avatar Apr 14 '21 05:04 nareshkatta99

Devices in which this is seen most are Galaxy A50,A51 , moto g-fast, Galaxy S20 5G

utsavDave97 avatar May 15 '21 04:05 utsavDave97

I am facing the same issue with Samsung Galaxy S8 running OS 9

Sabboo avatar May 30 '21 10:05 Sabboo

I am facing the same issue with Samsung Galaxy M31s

paragRaneWork avatar Oct 17 '21 08:10 paragRaneWork

Same issue on Redmi 9A devices

Is there anything we can do to prevent this crash ?

ly469097645 avatar Aug 01 '22 10:08 ly469097645

if you trying to compress .tiff image or any unsupported format that Compressor Library do not support that this occurs. put validation before you start to Compress image.

krunalpatel3 avatar May 25 '23 10:05 krunalpatel3