.ase file exception when contain grouped layer
- Dominant language
- Kotlin
- Stars
- 3k
- Forks
- 148
- Avg merge
- 13h 44m
- Merged PRs (30d)
- 1
Description
```
java.lang.IndexOutOfBoundsException: index: 6, size: 6
at korlibs.datastructure.FastArrayList.throwIndexOtOfBounds(NonJs.kt:217)
at korlibs.datastructure.FastArrayList.get(NonJs.kt:272)
at korlibs.korge.view.animation.ImageAnimationView.setFrame(ImageAnimationView.kt:92)
at korlibs.korge.view.animation.ImageAnimationView.setFirstFrame(ImageAnimationView.kt:133)
at korlibs.korge.view.animation.ImageAnimationView.didSetAnimation(ImageAnimationView.kt:165)
at korlibs.korge.view.animation.ImageAnimationView.(ImageAnimationView.kt:174)
at MyScene.sceneMain(main.kt:45)
at MyScene$sceneMain$1.invokeSuspend(main.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at korlibs.render.GameWindowCoroutineDispatcher.executePending-N3vl5Ow(GameWindow.kt:183)
at korlibs.render.GameWindow.frameUpdate-N3vl5Ow(GameWindow.kt:660)
at korlibs.render.GameWindow.frame-QoAYZFY(GameWindow.kt:569)
at korlibs.render.GameWindow.frame-QoAYZFY$default(GameWindow.kt:556)
at korlibs.render.awt.BaseAwtGameWindow.paintInContextInternal(BaseAwtGameWindow.kt:293)
at korlibs.render.awt.BaseAwtGameWindow.paintInContext(BaseAwtGameWindow.kt:204)
at korlibs.render.awt.BaseAwtGameWindow$paintInContextDelegate$1.invoke(BaseAwtGameWindow.kt:195)
at korlibs.render.awt.BaseAwtGameWindow$paintInContextDelegate$1.invoke(BaseAwtGameWindow.kt:194)
at korlibs.render.osx.MacAWTOpenglContext.useContext$lambda$13(MacosGLContext.kt:222)
at java.desktop/sun.java2d.opengl.OGLRenderQueue$QueueFlusher.run(OGLRenderQueue.java:232)
at java.base/java.lang.Thread.run(Thread.java:833)
```
## [not grouped layer: test.ase.zip](https://github.com/korlibs/korge/files/12094170/test.ase.zip)
## [tested grouped layer: test.ase.zip](https://github.com/korlibs/korge/files/12094257/test.ase.zip)
## [test code](https://gist.github.com/Bruce0203/54405188444d2d9fcd03def8fc312933)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at korlibs.korge.view.animation.ImageAnimationView.setFrame in ImageAnimationView.kt:92 and reproduce the exception with the provided grouped-layer test. Compare the grouped and ungrouped .ase files and the linked test code. Done means the grouped-layer asset loads without the reported IndexOutOfBoundsException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100