GeyserMC / Geyser

A bridge/proxy allowing you to connect to Minecraft: Java Edition servers with Minecraft: Bedrock Edition.
https://geysermc.org
MIT License
4.75k stars 687 forks source link

Some chunks fail load when server render distance exceeds client's #3809

Open Arctrometa opened 1 year ago

Arctrometa commented 1 year ago

Describe the bug

After exploring the world for a bit of time the chunks in the player's render distance just stop rendering at a certain point, all blocks are still intractable but they don't show up in the mobile player's client. Only as a empty void.

To Reproduce

  1. Joined using a mobile client on 1.19.83
  2. Flew around the world for approx. 1 minute or so.
  3. New chunks stop visually loading.

Expected behaviour

The chunks should show up for the player.

Screenshots / Videos

Screenshot_2023-06-02-13-46-43-451_com mojang minecraftpe

Server Version and Plugins

The server is on Geyser-Spigot with Floodgate, Geyser and Chunky.

Geyser Dump

https://dump.geysermc.org/DtNeCCCv9d0sRLT0EYaQcUmOjPRedtQc

Geyser Version

2.1.0-SNAPSHOT (git-master-246ebdd)

Minecraft: Bedrock Edition Device/Version

1.19.83 Mobile

Additional Context

Confirmed to not occur on 1.19.83 PC.

Vortecsz commented 1 year ago

Same problem, but with fabric

Vortecsz commented 1 year ago

After some tests, the problem seems to be Lithium or Phosphor in my case. Do you guys know if i can do something?

chandlerpl commented 1 year ago

Same problem here with Geyser Standalone version 2.1.0-SNAPSHOT (git-DEV-f7d2b4e)

Kas-tle commented 1 year ago

What do you guys have your server render distance set to?

Kas-tle commented 1 year ago

Ok so on further investigation this is not actually specific to mobile clients, but rather specific to low render distances. If I set my render distance to 6 on desktop, which is the default for many mobile devices. I also experience this. Setting it to 10 on mobile (max) likewise seems to eliminate the issue. We may just have to do some kind of padding when lower render distances are used.

Vortecsz commented 1 year ago

Yes, it's not related to mobile user, this happen also on Xbox and windows(bedrock) in my case too. I tryed with 10 visual distance. The problem seems to happen less but it's still present in my case. My server render distance is set to 10, and the visual distance 10 too.

Kas-tle commented 1 year ago

It's likely a function of how close your render distance is to the server render distance.

Kas-tle commented 1 year ago

@Arctrometa for my own sanity could you try this without chunky? From reading the plugin description it doesn't seem like it should affect actual chunk loading, but I'm not really sure. I can't seem to reproduce this on the latest paper like you have, but I can on older versions with viaversion.

Arctrometa commented 1 year ago

@Arctrometa for my own sanity could you try this without chunky? From reading the plugin description it doesn't seem like it should affect actual chunk loading, but I'm not really sure. I can't seem to reproduce this on the latest paper like you have, but I can on older versions with viaversion.

Sure i'll have a look.

EpicJosch commented 1 year ago

Same problem. Whats the current state of this issue?

Arctrometa commented 1 year ago

@Arctrometa for my own sanity could you try this without chunky? From reading the plugin description it doesn't seem like it should affect actual chunk loading, but I'm not really sure. I can't seem to reproduce this on the latest paper like you have, but I can on older versions with viaversion.

I've tried running the server without chunky and the same problem occurred only on mobile devices.

EpicJosch commented 1 year ago

I was also running it without chunky and same problem occurred. Then tried with chunky and no changes to the problems behavior

OneBitOfHope commented 1 year ago

I have a friend on bedrock who has this issue on my 1.20 paper server, I just use a TPS viewer plugin

moemeow233 commented 1 year ago

same problem paper1.17.1, geyser+viaversion view distance 10, bedrock 1.20.1

Bill-Joe-Tech commented 1 year ago

Having the same issue on 1.20.1 (Spigot, GeyserMC + Floodgate). Seems to affect Bedrock editions (including PE/mobile), and not Java.

Temporary Fixes:

Sources:

  1. According to @_jiimmy. (Discord Thread), “Apparently this error does not occur if I run the geysermc plugin in some proxy like velocity or bungecord.”
  2. From above, @Kas-tle (Comment is above).
YaBoiEddyC commented 1 year ago

This issue depends on the device, I've tested a couple of devices on my lan server (with and without the same network). I tested both paper and fabric for this. PaperMC doesn't have this issue probably because of the chunk rewrite. FabricMC does though and like I said for me it seems to be on what device you're using, here's my list. (You can rejoin everytime chunks stop loading and it'll fix for a bit that's what works best for me. just rejoin everytime chunks stop loading and it should be just fine for a while.)

  1. A windows laptop with Ryzen 5 5600h and 3060 laptop GPU 16gbs of tam. Doesn't happen on this device unless I'm connected to another network. (The bedrock version of Java)

  2. A android phone with Snapdragon Gen 1 with 8gbs. occurs on both lan and other networks

  3. Another android phone with Snapdragon 778g and 6gbs of ram. this one somehow doesn't have the issue and it only happens if I turn off wifi mid game and rejoin again.

  4. A android Tablet with exynoss 7904 and 3gbs of ram. It happens on both same network and on another network

  5. My friends IPad Pro 3rd gen, It somehow doesn't happen to him on both same network and on his wifi.

  6. A windows device with a core i7 5500u and 32gbs of ram. The chunks do load on lan but really slowly (probably my device lol) and on another network it sometimes sends me into the void or chunks don't load at all.

  7. An iPhone 12 the regular version, Chunks will only load on another network for some reason and stop after loading a few chunks on my own network that the server is connected to

  8. 2 more android devices (one with a Snapdragon 665 and 4gbs of ram and a exynoss 850 with 4gbs of ram) the results for these 2 were the same as device Number 2 I tested.

  9. Xbox series X and PS4. The chunks load correctly and smoothly on this and another network with the only issue being it has a bit of lag spikes (that might just be me on 2.4g wifi though)

10 Nintendo switch. Performance is exceptional (probably just the switch not being well optimized) chunks wont load when connected on another network or it drops me in an empty unloaded place however on Lan it will load just fine.

  1. An old hp 15 notebook with a Core i3 5600u and Intel HD graphics 16gbs of ram. Chunks load fine on lan and surprisingly on wireless 2g it does better. When connected to another network it doesn't load some chunks and skips some chunks too.
Kas-tle commented 1 year ago

This issue depends on the device, I've tested a couple of devices on my lan server (with and without the same network). I tested both paper and fabric for this. PaperMC doesn't have this issue probably because of the chunk rewrite. FabricMC does though and like I said for me it seems to be on what device you're using, here's my list. (You can rejoin everytime chunks stop loading and it'll fix for a bit that's what works best for me. just rejoin everytime chunks stop loading and it should be just fine for a while.)

  1. A windows laptop with Ryzen 5 5600h and 3060 laptop GPU 16gbs of tam. Doesn't happen on this device unless I'm connected to another network. (The bedrock version of Java)
  2. A android phone with Snapdragon Gen 1 with 8gbs. occurs on both lan and other networks
  3. Another android phone with Snapdragon 778g and 6gbs of ram. this one somehow doesn't have the issue and it only happens if I turn off wifi mid game and rejoin again.
  4. A android Tablet with exynoss 7904 and 3gbs of ram. It happens on both same network and on another network
  5. My friends IPad Pro 3rd gen, It somehow doesn't happen to him on both same network and on his wifi.
  6. A windows device with a core i7 5500u and 32gbs of ram. The chunks do load on lan but really slowly (probably my device lol) and on another network it sometimes sends me into the void or chunks don't load at all.
  7. An iPhone 12 the regular version, Chunks will only load on another network for some reason and stop after loading a few chunks on my own network that the server is connected to
  8. 2 more android devices (one with a Snapdragon 665 and 4gbs of ram and a exynoss 850 with 4gbs of ram) the results for these 2 were the same as device Number 2 I tested.
  9. Xbox series X and PS4. The chunks load correctly and smoothly on this and another network with the only issue being it has a bit of lag spikes (that might just be me on 2.4g wifi though)

10 Nintendo switch. Performance is exceptional (probably just the switch not being well optimized) chunks wont load when connected on another network or it drops me in an empty unloaded place however on Lan it will load just fine.

  1. An old hp 15 notebook with a Core i3 5600u and Intel HD graphics 16gbs of ram. Chunks load fine on lan and surprisingly on wireless 2g it does better. When connected to another network it doesn't load some chunks and skips some chunks too.

Did you reduce the render distance on all these devices to the minimum (5 chunks)?

YaBoiEddyC commented 1 year ago

Oh I forgot to say, Only device 1, 3 and 5 didn't have the chunk loading issue every other one did have some sort of issue on either the same network as the server or connected to another network

My server is quite modded with Fabric MC and this was tested on both modded and unmodded Mods: Fabric API Lithium Starlight C2ME VMP Krypton Ferritecore All of yungs better mods Floodgate and geyser MemoryLeakFix Collective+player heads Stardust Labs mods (Terralith, Incendium, nullscape, structory, towers) Repurposed Structures ChoiceTheorem's Overhauled Village Better End cities Datapacks Forever babies Datapack. Flan Claim Mod Dynmap Fabric Discord4Fabric

Server Specs: Ryzen 7 5800h 3.2ghz base and 4.4 max, and 64gbs of ram(18gbs dedicated to the server), 1tb NVME 4 SSD, Lan: 1 gigabit down and 35up.

YaBoiEddyC commented 1 year ago

@Kas-tle I tested each one to the minimum and max of the server render distance

Kas-tle commented 1 year ago

@Kas-tle I tested each one to the minimum and max of the server render distance

So you didn't set the render distance of the client to 5 chunks?

YaBoiEddyC commented 1 year ago

@Kas-tle Yes I did on the client

iDarknessSam commented 1 year ago

mine is having the same problem too on Aternos using the Spigot to run the plugin, my friend on Bedrock can't play with the world don't loading all the time. i'm on the 1.20 version of the Minecraft

https://dump.geysermc.org/LNz5PK6mnuq3HxLTQR5K3GLxe87eBd4B

iDarknessSam commented 1 year ago

mine is having the same problem too on Aternos using the Spigot to run the plugin, my friend on Bedrock can't play with the world don't loading all the time. i'm on the 1.20 version of the Minecraft

https://dump.geysermc.org/LNz5PK6mnuq3HxLTQR5K3GLxe87eBd4B

Actually...I tried with others devices and all of them are having the same problem..no matter what render I put on it the world stop to render after certain point. some of my friends on bedrock are being sad with this

iDarknessSam commented 1 year ago

even updating the plugin to the latest version, still nothing

YaBoiEddyC commented 1 year ago

@iDarknessSam PaperMC is probably the only one that doesn't have the chunk loading issue due to their chunk rewrite so if you wanna have a server with chunks loading correctly for now just use paper

iDarknessSam commented 1 year ago

@iDarknessSam PaperMC is probably the only one that doesn't have the chunk loading issue due to their chunk rewrite so if you wanna have a server with chunks loading correctly for now just use paper

but the plugins from Spigot works on PaperMC without any issues?

iDarknessSam commented 1 year ago

@iDarknessSam PaperMC is probably the only one that doesn't have the chunk loading issue due to their chunk rewrite so if you wanna have a server with chunks loading correctly for now just use paper

photo_2023-09-10_21-24-57 Screenshot_20230910_212545

I installed PaperMC here but the problem still persist in all devices.. https://dump.geysermc.org/6HCxNvCfKHc7ReyOtTuVtx25cWe3AGHh

YaBoiEddyC commented 1 year ago

@iDarknessSam Which version are you using

iDarknessSam commented 1 year ago

@iDarknessSam Which version are you using

1.20.1 version of Java and the latest version of GeyserMC on PaperMC

YaBoiEddyC commented 1 year ago

@iDarknessSam yeah I tested it again on most of the devices it seems like it's affecting paper too now

iDarknessSam commented 1 year ago

@iDarknessSam PaperMC is probably the only one that doesn't have the chunk loading issue due to their chunk rewrite so if you wanna have a server with chunks loading correctly for now just use paper

photo_2023-09-10_21-24-57 Screenshot_20230910_212545

I installed PaperMC here but the problem still persist in all devices.. https://dump.geysermc.org/6HCxNvCfKHc7ReyOtTuVtx25cWe3AGHh

https://github.com/GeyserMC/Geyser/assets/59544278/5cc1eb6b-9774-4404-95f5-9d3f379d02bd

A video showing the problem

YaBoiEddyC commented 1 year ago

@iDarknessSam Maybe its a client issue since some versions of Minecraft on android are like ARM7, ARM8, ARM64 etc. because on my newer phone that's ARM9 doesn't have the issue but my ARM7 tablet does

iDarknessSam commented 1 year ago

@iDarknessSam Maybe its a client issue since some versions of Minecraft on android are like ARM7, ARM8, ARM64 etc. because on my newer phone that's ARM9 doesn't have the issue but my ARM7 tablet does

well...I guess so, since it only happens on Bedrock and not Java I even tested with waydroid that use the x86_64 (not sure if it really x86_64) and the same problem happens on it too... but one thing is clear, maybe this problem is becoming more common since a lot of people are having this stuff too. oh also I tested with some computers too on Windows 10 and they are having the same problem.

YaBoiEddyC commented 1 year ago

@iDarknessSam Yeah but for me on Windows it does just fine unless its my older laptops and it only happens on mobile for me if its an ARMv7 device or lower.

iDarknessSam commented 1 year ago

@iDarknessSam Yeah but for me on Windows it does just fine unless its my older laptops and it only happens on mobile for me if its an ARMv7 device or lower.

I hope this problem get fixed any time soon..

iDarknessSam commented 1 year ago

I updated to the latest version of Minecraft java and the Geyser too, and the problem is still happening

https://dump.geysermc.org/GOTGWfgSjfqNYj8dujdXS7QLbyX4Hjfw photo_2023-10-20_22-39-36 photo_2023-10-20_22-39-37 photo_2023-10-20_22-39-38

iDarknessSam commented 1 year ago

maybe the config folder can influence in some way?

YaBoiEddyC commented 1 year ago

I was reading through the wiki just recently and it might be due to bedrock being 32 bit or something like that can't confirm tho Screenshot_20231103-083051.png

iDarknessSam commented 1 year ago

I was reading through the wiki just recently and it might be due to bedrock being 32 bit or something like that can't confirm tho Screenshot_20231103-083051.png

I don't think this is causing the issue....maybe the plugin for itself already fix this problem with a patch or something like that. However, one thing that I was thinking that maybe are causing this render problem is probably the world size, I mean, I noticed that people who is not having this render problem the world of the server is pretty small with not so much chunks, but when the world is more than 1 GB the problem start to appear causing some problems at the render, so maybe the issue is because of the world size?

iDarknessSam commented 10 months ago

someone found any solution?

Kas-tle commented 9 months ago

@iDarknessSam you are likely experiencing this bug given your CPU and Java version: https://github.com/GeyserMC/Geyser/issues/2861 Please update Java on your server running Geyser to the latest (should be 17.0.9).

Kas-tle commented 9 months ago

If anyone is still experiencing this issue, please post a current Geyser dump.

StKillReal commented 6 months ago

image https://dump.geysermc.org/rEJnhaO34hy4uWnI3MAXHstlVJonG0sD

Still have the issue, but it looks like periodical one and I really can't understad what affect on it. For example: now bedrock players can fly around and chunk loading is fine, but 30 mins ago they can teleport somewhere and load about 300 blocks from the spot, then chunks stops to load until player teleports to the other spot of the map, where he can load 200-300 blocks and loading stops again. There is no any errors in console of the server/velocity

onebeastchris commented 4 months ago

Hello! Can you try the builds here and see if it fixes your issue? https://github.com/GeyserMC/Geyser/actions/runs/9607076730

Hana2736 commented 4 months ago

Hello! Can you try the builds here and see if it fixes your issue? https://github.com/GeyserMC/Geyser/actions/runs/9607076730

No luck for me on Geyser-Velocity and PaperMC 1.21

onebeastchris commented 4 months ago

Hey, could those affected try the builds found here: https://github.com/GeyserMC/Geyser/actions/runs/9607076730? These should remedy the issue.

@Hana2736 for you specifically, if this build also does not help, please run geyser dump in the server console, and send the link you get here.

Hana2736 commented 4 months ago

This build is for 1.21.0/1 and I'm not able to downgrade to that version through the bedrock launcher

onebeastchris commented 4 months ago

Oops, linked the wrong build – try https://github.com/GeyserMC/Geyser/actions/runs/9922563154

Hana2736 commented 4 months ago

Well, not quite

/geyser dump

Hana2736 commented 4 months ago

The game seems to act like the blocks are there: i can still dig (with the correct sound and particles), build, and see entities. A chunk or so beyond this blocks me with an invisible wall