iTXTech / Genisys

Feature-rich server software for Minecraft: Pocket Edition & Windows 10 Edition Beta
https://itxtech.org/genisys/
GNU General Public License v3.0
431 stars 246 forks source link

Some chunks are saved empty #2345

Closed MHIGists closed 7 years ago

MHIGists commented 7 years ago

Issue description

Everywhere in the map including a Flat world there are holes which lead to the void.And I'm that's not from any of my plugins

Steps to reproduce the issue

Just walk around and you will see a huge hole in the map leading to the void

OS and versions

Crashdump, backtrace, memory dumps, plugins list or other files

JackNoordhuis commented 7 years ago

Get better internet and maybe your chunks will load. Without any proof of this happening or anyway to reproduce it we cannot confirm it or fix it.

MHIGists commented 7 years ago

@JackNoordhuis I can ensure you my internet is perfect. And this is a pic of a hole in Flat world. What steps I need to provide like:

  1. Generate a FLAT world. 2.Enter it.
  2. Walk around There isn't any Backtrace or anything there are just a holes in the map leading to the void. screenshot_20170204-015948 A pic of a hole in Flat world
yungtechboy1 commented 7 years ago

@JackNoordhuis Might need to make Send Chunk Paccket Ack

dktapps commented 7 years ago

Shut up with Nukkit blather. This is not a network issue.

As it happens, I've seen this issue on PigRaid servers; never did identify the cause though.

JackNoordhuis commented 7 years ago

Seems more like a chunk sending issue rather than generation, probably caused by your server trying to keep too many chunks loaded so loading more causes problems.

dktapps commented 7 years ago

@JackNoordhuis No, this is not a network issue. You wouldn't be able to see the sides of nearby chunks if that was the case. This is, I confirm, a generation issue. If you read the resulting generated chunks with an NBT editor, you will indeed see that they are completely empty.

ghost commented 7 years ago

Yeah,try to configure the settings.. Maybe you make ur server to force tick all chunks or you configure the max chunk to load too many until ur server cant even handle it.... This is my opinion bc I had this too.

iTzAndrew33212 commented 7 years ago

I have 4 worlds and that can confirm this dose not happening :) .. Must be due to your chucks not loading

MHIGists commented 7 years ago

And here @dktapps just said twice thats its not a network issue and explained throughly why it's not. And again you are saying that chunks are not loading. Like do you want pictures of "Grand Canyon" in MinecraftPE

Sandertv commented 7 years ago

I can confirm this is likely a generation issue. These holes don't appear at terrain that is already generated for me.

dktapps commented 7 years ago

I believe this is due to a race-condition between the generator threads (asyncworkers) and level IO (main thread). I think what is happening is either:

a) some chunks are saved to disk before they are generated. This I think is the most likely scenario. b) generator crashed when generating that chunk (unlikely for a flat world especially, since it essentially just generates a single chunk and copies it everywhere) c) generator somehow missed those chunks (anything is possible...)

MHIGists commented 7 years ago

What I changed: 1.In chunk-sending: async-chunk-request from "true" to "false" 2.In chunk-generation: queue-size: from 4 to 2 population-queue-size: from 4 to 2 3.Oops forgot...Edit: i changed async-workers too from 4 to auto(which is default 2) Now everything is fine

MHIGists commented 7 years ago

Still happens but rerely.Even after changing my settings which helped reducing the empty chunks number

dktapps commented 7 years ago

Could somebody try https://github.com/pmmp/PocketMine-MP/pull/367 ? It should crash noisily on world save if this issue occurs.

dktapps commented 7 years ago

Fixed as of 2c80000424fb2bf283374528708048e1ee9c70af.