Pocketmine-mp: Sometimes when you join chunks aren't loading

Created on 8 Apr 2017  路  18Comments  路  Source: pmmp/PocketMine-MP

Issue description

Sometimes chunks aren't loading when you spawn and you are moving very fast and when i try to /kill me i don't receive the RespawnPacket and i need to restart my game

Steps to reproduce the issue

  1. ... Join the server
  2. ... See

OS and versions

  • PocketMine-MP: last api3\network commit
  • PHP: 7.0.2
  • Server OS: Debian
  • Game version: PE/Win10

Crashdump, backtrace or other files

  • ...
Client Gameplay Fixed

Most helpful comment

Debugging with a coordinates resource pack I noticed some unusual peculiarities in the respawn behaviour. If I remember, I'll debug this tomorrow.

All 18 comments

Steps to reproduce:

  • /tp ~10000 ~ ~10000
  • Quit and rejoin
  • /kill
  • spaz

Yes sometimes when i spawn at the spawnpount i have the same issue

Yeah, it's a common issue. I'm not 100% certain why it's happening. Initially I thought that PocketMine was somehow not sending the spawn chunks, but I did some debugging and they are all being sent correctly, so I don't know. Will investigate further at a later date.

To clarify, the cause of the client-sided spaz is PocketMine teleporting the player into chunks which are not yet loaded. The missing chunks _always_ seem to be the square of ~9 chunks around the spawnpoint.

And if someone know a hack or a way to rensend chunks tell me pls (Waiting it to be fixed)

@Misteboss If you can apply the following patch:
chunk-bug.patch.txt

this appears to resolve the issue. But it appears more investigation is needed into RespawnPacket.

Seems that delayed teleport and client-sided expecting respawn immediate teleportation don't play nice together. It appears that in some circumstances the client will ignore distant chunks after a Respawn is sent, unless they are actually teleported directly to that area as chunks are loaded. Very strange issue.

Ok thanks i will test it in few hours

Btw i don't know if this have a link with this issue but when i teleport or sendTitle(no link) onPlayerJoinEvent the player isn't teleported and sometimes didn't receive the title, and in debug mode it's written that they are sended too early, maybe the PlayerJoinEvent is called too early ?

Make sure not to confuse PlayerJoinEvent with PlayerLoginEvent.

nop it's not the PreLoginEvent but the JoinEvent ^^

Uhmm sorry it was PreLoginEvent it's my fault ^^

I think I found on other issue, i need to did some test to verify ^^

Btw about you're chunk-patch, is it fixing the same problem who is happening onJoin ? @dktapps

No, it won't solve the join problem, only the death issue.

Debugging with a coordinates resource pack I noticed some unusual peculiarities in the respawn behaviour. If I remember, I'll debug this tomorrow.

@dktapps this seems to be happening again!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SuperAdam47 picture SuperAdam47  路  3Comments

dktapps picture dktapps  路  3Comments

XDqrkneZ picture XDqrkneZ  路  3Comments

RedstoneAlmeida picture RedstoneAlmeida  路  3Comments

sergeysova picture sergeysova  路  3Comments