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

Chunk generate crash #75

Open
myavuzokumus opened this issue Jan 26, 2022 · 4 comments
Open

Chunk generate crash #75

myavuzokumus opened this issue Jan 26, 2022 · 4 comments

Comments

@myavuzokumus
Copy link

Expected behavior

The server was not supposed to shut down.

Observed/Actual behavior

[21:39:28] [Server thread/INFO]: Over_Brave issued server command: /cave go
[21:39:28] [Server thread/ERROR]: Encountered an unexpected exception
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: world/bentobox/caveblock/generators/ChunkGeneratorWorld$1
	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[?:?]
	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) ~[?:?]
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
	at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.lang.NoClassDefFoundError: world/bentobox/caveblock/generators/ChunkGeneratorWorld$1
	at world.bentobox.caveblock.generators.ChunkGeneratorWorld.getBaseMaterial(ChunkGeneratorWorld.java:65) ~[CaveBlock-1.15.0-SNAPSHOT-b414.jar:?]
	at world.bentobox.caveblock.generators.ChunkGeneratorWorld.generateNoise(ChunkGeneratorWorld.java:114) ~[CaveBlock-1.15.0-SNAPSHOT-b414.jar:?]
	at org.bukkit.craftbukkit.v1_18_R1.generator.CustomChunkGenerator.lambda$fillFromNoise$0(CustomChunkGenerator.java:253) ~[pufferfish-1.18.1.jar:git-Pufferfish-38]
	at org.bukkit.craftbukkit.v1_18_R1.generator.CustomChunkGenerator.lambda$fillFromNoise$1(CustomChunkGenerator.java:258) ~[pufferfish-1.18.1.jar:git-Pufferfish-38]
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
	... 3 more
[21:39:28] [Server thread/ERROR]: 	Cause of unexpected exception was
java.lang.NoClassDefFoundError: world/bentobox/caveblock/generators/ChunkGeneratorWorld$1
	at world.bentobox.caveblock.generators.ChunkGeneratorWorld.getBaseMaterial(ChunkGeneratorWorld.java:65) ~[CaveBlock-1.15.0-SNAPSHOT-b414.jar:?]
	at world.bentobox.caveblock.generators.ChunkGeneratorWorld.generateNoise(ChunkGeneratorWorld.java:114) ~[CaveBlock-1.15.0-SNAPSHOT-b414.jar:?]
	at org.bukkit.craftbukkit.v1_18_R1.generator.CustomChunkGenerator.lambda$fillFromNoise$0(CustomChunkGenerator.java:253) ~[pufferfish-1.18.1.jar:git-Pufferfish-38]
	at org.bukkit.craftbukkit.v1_18_R1.generator.CustomChunkGenerator.lambda$fillFromNoise$1(CustomChunkGenerator.java:258) ~[pufferfish-1.18.1.jar:git-Pufferfish-38]
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
	at java.lang.Thread.run(Thread.java:833) ~[?:?]

Steps/models to reproduce

I typed /cave go and the server crashed. It's not always the case.

BentoBox version

image

Plugin list

No response

Other

No response

@tastybento
Copy link
Member

It looks like an incompatibility with pufferfish-1.18.1.jar. Do you see the same error with Paper?

@myavuzokumus
Copy link
Author

I've only had this problem once. I thought maybe it was a rare bug that triggered an issue. If there is no problem on the plugin side, the issue can be closed.

@BONNe
Copy link
Member

BONNe commented Jan 28, 2022

NoClassDefFoundError error should be thrown only if there already exists some error before. At least that is how I understand that exception.

@Incluuu
Copy link

Incluuu commented May 30, 2022

I had a similar problem:

Failed to schedule load callback for chunk [-5, 18]
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: world/bentobox/caveblock/generators/ChunkGeneratorWorld$1
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[?:?]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.lang.NoClassDefFoundError: world/bentobox/caveblock/generators/ChunkGeneratorWorld$1
at world.bentobox.caveblock.generators.ChunkGeneratorWorld.getBaseMaterial(ChunkGeneratorWorld.java:76) ~[CaveBlock-1.16.0.jar:?]
at world.bentobox.caveblock.generators.ChunkGeneratorWorld.generateNoise(ChunkGeneratorWorld.java:141) ~[CaveBlock-1.16.0.jar:?]
at org.bukkit.craftbukkit.v1_18_R2.generator.CustomChunkGenerator.lambda$fillFromNoise$0(CustomChunkGenerator.java:254) ~[purpur-1.18.2.jar:git-Purpur-1628]
at org.bukkit.craftbukkit.v1_18_R2.generator.CustomChunkGenerator.lambda$fillFromNoise$1(CustomChunkGenerator.java:259) ~[purpur-1.18.2.jar:git-Purpur-1628]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
... 3 more

Remove callback for map threw exception
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: world/bentobox/caveblock/generators/ChunkGeneratorWorld$1
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[?:?]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.lang.NoClassDefFoundError: world/bentobox/caveblock/generators/ChunkGeneratorWorld$1
at world.bentobox.caveblock.generators.ChunkGeneratorWorld.getBaseMaterial(ChunkGeneratorWorld.java:76) ~[CaveBlock-1.16.0.jar:?]
at world.bentobox.caveblock.generators.ChunkGeneratorWorld.generateNoise(ChunkGeneratorWorld.java:141) ~[CaveBlock-1.16.0.jar:?]
at org.bukkit.craftbukkit.v1_18_R2.generator.CustomChunkGenerator.lambda$fillFromNoise$0(CustomChunkGenerator.java:254) ~[purpur-1.18.2.jar:git-Purpur-1628]
at org.bukkit.craftbukkit.v1_18_R2.generator.CustomChunkGenerator.lambda$fillFromNoise$1(CustomChunkGenerator.java:259) ~[purpur-1.18.2.jar:git-Purpur-1628]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
... 3 more

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

4 participants