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

Stack overflow when ticking Cobblestone generator #234

Open
NickAcPT opened this issue May 24, 2024 · 0 comments
Open

Stack overflow when ticking Cobblestone generator #234

NickAcPT opened this issue May 24, 2024 · 0 comments

Comments

@NickAcPT
Copy link

NickAcPT commented May 24, 2024

It seems that Kibe is calling its own tick method in one of the block generator ticking code, which causes a StackOverflow exception when using Tweakeroo:

Although Tweakeroo is in the call stack, I believe that it's working as intended and instead the issue is that the tick method for the cobblestone generator is recursing onto itself without any stop conditions.

Stacktrace
[23:03:38] [Render thread/ERROR]: Reported exception thrown!
net.minecraft.util.crash.CrashException: Ticking block entity
	at net.minecraft.world.chunk.WorldChunk$DirectBlockEntityTickInvoker.tick(WorldChunk.java:676) ~[client-intermediary.jar:?]
	at net.minecraft.world.chunk.WorldChunk$WrappedBlockEntityTickInvoker.tick(WorldChunk.java:716) ~[client-intermediary.jar:?]
	at net.minecraft.world.World.tickBlockEntities(World.java:470) ~[client-intermediary.jar:?]
	at net.minecraft.client.world.ClientWorld.tickEntities(ClientWorld.java:259) ~[client-intermediary.jar:?]
	at net.minecraft.client.MinecraftClient.tick(MinecraftClient.java:1901) ~[client-intermediary.jar:?]
	at net.minecraft.client.MinecraftClient.render(MinecraftClient.java:1181) ~[client-intermediary.jar:?]
	at net.minecraft.client.MinecraftClient.run(MinecraftClient.java:802) ~[client-intermediary.jar:?]
	at net.minecraft.client.main.Main.main(Main.java:250) ~[minecraft-1.20.1-client.jar:?]
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470) ~[fabric-loader-0.15.10.jar:?]
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) ~[fabric-loader-0.15.10.jar:?]
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) ~[fabric-loader-0.15.10.jar:?]
	at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:100) ~[NewLaunch.jar:?]
	at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129) ~[NewLaunch.jar:?]
	at org.prismlauncher.EntryPoint.main(EntryPoint.java:70) ~[NewLaunch.jar:?]
Caused by: java.lang.StackOverflowError
	at net.minecraft.item.ItemStack.handler$jjh000$tweakeroo$getMaxStackSizeStackSensitive(ItemStack.java:1595) ~[client-intermediary.jar:?]
	at net.minecraft.item.ItemStack.getMaxCount(ItemStack.java) ~[client-intermediary.jar:?]
	at io.github.lucaargolo.kibe.blocks.miscellaneous.BlockGeneratorBlockEntity$Companion.tick(BlockGeneratorBlockEntity.kt:94) ~[kibe-1.10.1-BETA 1.20.jar:?]
	at io.github.lucaargolo.kibe.blocks.miscellaneous.BlockGeneratorBlockEntity$Companion.tick(BlockGeneratorBlockEntity.kt:118) ~[kibe-1.10.1-BETA 1.20.jar:?]
	at io.github.lucaargolo.kibe.blocks.miscellaneous.BlockGeneratorBlockEntity$Companion.tick(BlockGeneratorBlockEntity.kt:118) ~[kibe-1.10.1-BETA 1.20.jar:?]
	at io.github.lucaargolo.kibe.blocks.miscellaneous.BlockGeneratorBlockEntity$Companion.tick(BlockGeneratorBlockEntity.kt:118) ~[kibe-1.10.1-BETA 1.20.jar:?]
	at io.github.lucaargolo.kibe.blocks.miscellaneous.BlockGeneratorBlockEntity$Companion.tick(BlockGeneratorBlockEntity.kt:118) ~[kibe-1.10.1-BETA 1.20.jar:?]
	at io.github.lucaargolo.kibe.blocks.miscellaneous.BlockGeneratorBlockEntity$Companion.tick(BlockGeneratorBlockEntity.kt:118) ~[kibe-1.10.1-BETA 1.20.jar:?]
	at io.github.lucaargolo.kibe.blocks.miscellaneous.BlockGeneratorBlockEntity$Companion.tick(BlockGeneratorBlockEntity.kt:118) ~[kibe-1.10.1-BETA 1.20.jar:?]
	at io.github.lucaargolo.kibe.blocks.miscellaneous.BlockGeneratorBlockEntity$Companion.tick(BlockGeneratorBlockEntity.kt:118) ~[kibe-1.10.1-BETA 1.20.jar:?]
	at io.github.lucaargolo.kibe.blocks.miscellaneous.BlockGeneratorBlockEntity$Companion.tick(BlockGeneratorBlockEntity.kt:118) ~[kibe-1.10.1-BETA 1.20.jar:?]
	at io.github.lucaargolo.kibe.blocks.miscellaneous.BlockGeneratorBlockEntity$Companion.tick(BlockGeneratorBlockEntity.kt:118) ~[kibe-1.10.1-BETA 1.20.jar:?]
	at io.github.lucaargolo.kibe.blocks.miscellaneous.BlockGeneratorBlockEntity$Companion.tick(BlockGeneratorBlockEntity.kt:118) ~[kibe-1.10.1-BETA 1.20.jar:?]
	at io.github.lucaargolo.kibe.blocks.miscellaneous.BlockGeneratorBlockEntity$Companion.tick(BlockGeneratorBlockEntity.kt:118) ~[kibe-1.10.1-BETA 1.20.jar:?]
	at io.github.lucaargolo.kibe.blocks.miscellaneous.BlockGeneratorBlockEntity$Companion.tick(BlockGeneratorBlockEntity.kt:118) ~[kibe-1.10.1-BETA 1.20.jar:?]
	// ...
@NickAcPT NickAcPT changed the title Stack overflow Stack overflow when ticking Cobblestone generator May 28, 2024
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

1 participant