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

[Nukkit 2.0] Player join issue #12

Open
Alemiz112 opened this issue Mar 7, 2020 · 6 comments
Open

[Nukkit 2.0] Player join issue #12

Alemiz112 opened this issue Mar 7, 2020 · 6 comments

Comments

@Alemiz112
Copy link
Member

Alemiz112 commented Mar 7, 2020

This happens when player tries to join server.

[ForkJoinPool-1-worker-2] WARN  - Unable to load chunk (2, 3) in level world 
java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Palette contains same block state twice!
	at java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source) ~[?:?]
	at java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source) [?:?]
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source) [?:?]
	at java.util.concurrent.CompletableFuture$AsyncSupply.exec(Unknown Source) [?:?]
	at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) [?:?]
	at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) [?:?]
	at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) [?:?]
Caused by: java.lang.IllegalArgumentException: Palette contains same block state twice!
	at cn.nukkit.level.chunk.BlockStorage.readFromStorage(BlockStorage.java:164) ~[nukkit-2.0-SNAPSHOT.jar:?]
	at cn.nukkit.level.provider.leveldb.serializer.ChunkSectionSerializerV8.deserialize(ChunkSectionSerializerV8.java:32) ~[nukkit-2.0-SNAPSHOT.jar:?]
	at cn.nukkit.level.provider.leveldb.serializer.ChunkSectionSerializers.deserialize(ChunkSectionSerializers.java:28) ~[nukkit-2.0-SNAPSHOT.jar:?]
	at cn.nukkit.level.provider.leveldb.serializer.ChunkSerializerV3.deserialize(ChunkSerializerV3.java:86) ~[nukkit-2.0-SNAPSHOT.jar:?]
	at cn.nukkit.level.provider.leveldb.serializer.ChunkSerializers.deserializeChunk(ChunkSerializers.java:44) ~[nukkit-2.0-SNAPSHOT.jar:?]
	at cn.nukkit.level.provider.leveldb.LevelDBProvider.lambda$readChunk$0(LevelDBProvider.java:71) ~[nukkit-2.0-SNAPSHOT.jar:?]

Full error here.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@squeeglii
Copy link
Contributor

squeeglii commented Apr 8, 2020

I also saw this after using MCCToolchest to convert a Java world to a LevelDB world. Was either an issue with conversion or putting a regular MC Bedrock world on there.

Haven't seen that since ^ - Have seen it repeated on regular bedrock worlds added to the server.

@Alemiz112
Copy link
Member Author

In my case I changed from Nukkit 1.0 to Nukkit 2.0 and it tried to do auto-convert.

@ghost
Copy link

ghost commented Apr 25, 2020

Hi, I'm having the same issue with my Bedrock world.
The server crashes when a player joins the server.
[WARN ] Unable to load chunk (0, -1) in level world java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Unsupported chunk version (flattened) at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314) ~[?:?] at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319) ~[?:?] at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1702) ~[?:?] at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1692) ~[?:?] at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) ~[?:?] at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020) ~[?:?] at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656) ~[?:?] at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594) ~[?:?] at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177) ~[?:?] Caused by: java.lang.IllegalArgumentException: Unsupported chunk version (flattened) at com.google.common.base.Preconditions.checkArgument(Preconditions.java:122) ~[Nukkit.jar:?] at cn.nukkit.level.chunk.BlockStorage.readFromStorage(BlockStorage.java:164) ~[Nukkit.jar:?] at cn.nukkit.level.provider.leveldb.serializer.ChunkSectionSerializerV8.deserialize(ChunkSectionSerializerV8.java:32) ~[Nukkit.jar:?] at cn.nukkit.level.provider.leveldb.serializer.ChunkSectionSerializers.deserialize(ChunkSectionSerializers.java:28) ~[Nukkit.jar:?] at cn.nukkit.level.provider.leveldb.serializer.ChunkSerializerV3.deserialize(ChunkSerializerV3.java:86) ~[Nukkit.jar:?] at cn.nukkit.level.provider.leveldb.serializer.ChunkSerializers.deserializeChunk(ChunkSerializers.java:44) ~[Nukkit.jar:?] at cn.nukkit.level.provider.leveldb.LevelDBProvider.lambda$readChunk$0(LevelDBProvider.java:79) ~[Nukkit.jar:?] at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) ~[?:?] ... 6 more
Full error here

@SupremeMortal
Copy link
Member

SupremeMortal commented Apr 25, 2020

@Etyoppp
Unsupported chunk version (flattened)
You are running a world unsupported by Nukkit

@ghost
Copy link

ghost commented Apr 25, 2020

Why would it be unsupported ? It is a normal world generated normally

@popkechupki
Copy link

popkechupki commented Apr 25, 2020

Nukkit2.0 support LevelDB but it is up to 1.11 now. So you can’t load Bedrock 1.12+ worlds yet. Maybe that’s why you are said “Unsupported chunk version”.

@GingerGeek GingerGeek transferred this issue from CloudburstMC/Nukkit Jul 3, 2020
@Creeperface01 Creeperface01 reopened this Aug 9, 2020
Kazzuk pushed a commit that referenced this issue May 28, 2023
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

5 participants