Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index out of bounds after puzzle reset and then placing the first number #128

Closed
stephengeorgewest opened this issue Jan 2, 2025 · 3 comments

Comments

@stephengeorgewest
Copy link

java.lang.IndexOutOfBoundsException: Index: 400, Size: 0
java.lang.IndexOutOfBoundsException: Index: 400, Size: 0
at java.util.ArrayList.get(ArrayList.java:437)
at okhttp3.internal.http.StatusLine.addState(Unknown Source:6)
at com.kaajjo.libresudoku.ui.game.GameViewModel.processInput(Unknown Source:195)
at com.kaajjo.libresudoku.ui.game.GameScreenKt$GameScreen$3$$ExternalSyntheticLambda0.invoke(Unknown Source:61)
at com.ramcosta.composedestinations.DestinationsNavHostKt$$ExternalSyntheticLambda1.invoke(Unknown Source:101)
at androidx.compose.foundation.gestures.TapGestureDetectorKt$detectTapGestures$2$1.invokeSuspend(Unknown Source:328)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source:8)
at kotlinx.coroutines.JobKt.resume(Unknown Source:80)
at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(Unknown Source:104)
at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl(Unknown Source:32)
at kotlinx.coroutines.CancellableContinuationImpl.resumeWith(Unknown Source:16)
at androidx.compose.ui.input.pointer.SuspendingPointerInputModifierNodeImpl.dispatchPointerEvent(Unknown Source:50)
at androidx.compose.ui.input.pointer.SuspendingPointerInputModifierNodeImpl.onPointerEvent-H0pRuoY(Unknown Source:30)
at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(Unknown Source:156)
at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(Unknown Source:135)
at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(Unknown Source:135)
at coil.ImageLoader$Builder.dispatchChanges(Unknown Source:35)
at androidx.compose.material.ripple.StateLayer.process-BIzXfog(Unknown Source:140)
at androidx.compose.ui.platform.AndroidComposeView.sendMotionEvent-8iAsVTc(Unknown Source:80)
at androidx.compose.ui.platform.AndroidComposeView.handleMotionEvent-8iAsVTc(Unknown Source:374)
at androidx.compose.ui.platform.AndroidComposeView.dispatchTouchEvent(Unknown Source:75)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3118)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2799)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3118)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2799)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3118)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2799)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3118)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2799)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3118)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2799)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3118)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2799)
at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:530)
at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1899)
at android.app.Activity.dispatchTouchEvent(Activity.java:4217)
at androidx.appcompat.app.AppCompatDelegateImpl$AppCompatWindowCallback.dispatchTouchEvent(Unknown Source:2)
at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:488)
at android.view.View.dispatchPointerEvent(View.java:14619)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:6170)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:5973)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5464)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5521)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5487)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:5639)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5495)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:5696)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5468)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5521)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5487)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5495)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5468)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:8313)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:8229)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:8190)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:8449)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:227)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:342)
at android.os.Looper.loop(Looper.java:197)
at android.app.ActivityThread.main(ActivityThread.java:7803)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [androidx.compose.ui.platform.MotionDurationScaleImpl@7b37c5, androidx.compose.runtime.BroadcastFrameClock@6d2f51a, DeferredCoroutine{Cancelling}@a9c784b, AndroidUiDispatcher@6484228]

@stephengeorgewest
Copy link
Author

...A6....4..8.6B.4A...C712.7B...A68..C14.89...73.3.....B..4.6...7A..C.1.2.....64..............6.3........9....B...2..7..A1...B.7.2.94..2..1...3.

@stephengeorgewest
Copy link
Author

Adding the 9 in the right second to top, below the a above the c. Screenshot_20250102-070914

@kaajjo
Copy link
Owner

kaajjo commented Jan 2, 2025

Thanks for good logs! Fixed in 7f7f202
A new version 2.0.1 with fix has just been released

@kaajjo kaajjo closed this as completed Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants