chunky icon indicating copy to clipboard operation
chunky copied to clipboard

Sign crashes when loaded due to out of bounds text on the image (debug only assertion)

Open NotStirred opened this issue 2 years ago • 5 comments

see attached world to reproduce

Exception in thread "Scene Manager" java.lang.AssertionError
	at se.llbit.chunky.resources.PalettizedBitmapImage.setPixel(PalettizedBitmapImage.java:37)
	at se.llbit.chunky.resources.SignTexture.<init>(SignTexture.java:100)
	at se.llbit.chunky.entity.WallSignEntity.<init>(WallSignEntity.java:103)
	at se.llbit.chunky.entity.WallSignEntity.<init>(WallSignEntity.java:95)
	at se.llbit.chunky.block.WallSign.toBlockEntity(WallSign.java:48)
	at se.llbit.chunky.renderer.scene.Scene.loadChunks(Scene.java:1314)
	at se.llbit.chunky.renderer.scene.SynchronousSceneManager.loadFreshChunks(SynchronousSceneManager.java:230)
	at se.llbit.chunky.renderer.scene.AsynchronousSceneManager.lambda$loadFreshChunks$4(AsynchronousSceneManager.java:161)
	at se.llbit.chunky.renderer.scene.AsynchronousSceneManager.run(AsynchronousSceneManager.java:82)

crashy sign.zip

NotStirred avatar May 10 '22 20:05 NotStirred

I cannot reproduce this in the latest snapshot by simply loading all chunks in the world with Load entities > Other enabled. Am I missing something, or was this bug fixed at some point?

Peregrine05 avatar Sep 08 '22 09:09 Peregrine05

@Peregrine05 This was a debug only assertion, did you enable assertions?

leMaik avatar Sep 08 '22 10:09 leMaik

I do not know how to enable assertions, so I do not think that they were enabled. The debug console and verbose logging are enabled, though.

Peregrine05 avatar Sep 08 '22 10:09 Peregrine05

Logging will not enable assertions, so you can't possibly reproduce this.

leMaik avatar Sep 08 '22 10:09 leMaik

To enable assertions launch with the -ea java argument

NotStirred avatar Sep 08 '22 13:09 NotStirred