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

Width constraint violation #56

Open
kirillt opened this issue Oct 14, 2022 · 0 comments
Open

Width constraint violation #56

kirillt opened this issue Oct 14, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@kirillt
Copy link
Member

kirillt commented Oct 14, 2022

java.lang.IllegalArgumentException: x + width must be <= bitmap.width()
	at android.graphics.Bitmap.createBitmap(Bitmap.java:984)
	at android.graphics.Bitmap.createBitmap(Bitmap.java:950)
	at space.taran.arkretouch.EditActivity$cropImage$2.invokeSuspend(EditActivity.kt:718)
	at space.taran.arkretouch.EditActivity$cropImage$2.invoke(Unknown Source:8)
	at space.taran.arkretouch.EditActivity$cropImage$2.invoke(Unknown Source:4)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:166)
	at kotlinx.coroutines.BuildersKt.withContext(Unknown Source:1)
	at space.taran.arkretouch.EditActivity.cropImage(EditActivity.kt:710)
	at space.taran.arkretouch.EditActivity.access$cropImage(EditActivity.kt:136)
	at space.taran.arkretouch.EditActivity$saveImageFromCropOrDrawMode$1.invokeSuspend(EditActivity.kt:683)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:749)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
	Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@82b1758, Dispatchers.IO]
@kirillt kirillt added the bug Something isn't working label Oct 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant