[SPIGOT-388] Map bugs after changing worlds Created: 09/Jan/15  Updated: 07/Sep/15  Resolved: 12/Jul/15

Status: Closed
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Dablakbandit Assignee: md_5
Resolution: Invalid Votes: 2
Labels: 1.8, spigot

Issue Links:
Duplicate
is duplicated by SPIGOT-765 Map items not shown after world switch Closed
is duplicated by SPIGOT-1176 MapRenderer stops drawing on canvas a... Closed

 Description   

If you create a map or a plugin creates a custom one, if you teleport across worlds the renderers for the map stop working, even if you teleport back to world it was created in, it still wont work. They just stay stuck on the last known image, the only way to fix is to relog.



 Comments   
Comment by md_5 [ 05/Jun/15 ]

https://bugs.mojang.com/browse/MC-80297

Comment by Bobcat00 [ 31/Mar/15 ]

I'm seeing pretty much the same thing. If I switch worlds, I don't see maps that are in item frames. But if I switch back to my original (login) world, I do see the maps. This happens with the 1.8.1 and 1.8.3 clients, and I'm running CraftBukkit version git-Bukkit-7d0f836 (MC: 1.8.3) and the ImageMaps plugin.

Comment by Octagami MC [ 15/Mar/15 ]

I was about to file this, but glad to see there is an existing report.

The bug is still occurring on the latest MC 1.8.3 client and the latest 1.8.3 Spigot build (git-Spigot-ea179b3-6e0120a).

Testing on a standalone Spigot server I can reproduce the problem by either dying or switching worlds. Once either of those things happens, maps will no longer render properly.

I'd appreciate getting this fixed, as it's close to the #1 complaint on our network (due to heavy use of maps for one of our plugin features).

Comment by Dablakbandit [ 12/Jan/15 ]

Thanks St3venAU for the testing

Comment by St3venAU [ 12/Jan/15 ]

Ok, I just set up a 1.8.0 vanilla server to do the same test that I described above and the bug is not present - the map still updates fine after death.

Comment by md_5 [ 12/Jan/15 ]

We are 1.8.0

Comment by Dablakbandit [ 12/Jan/15 ]

Thanks for that St3venAU
md_5 can you re-open? as it seems it is a bug in craftbukkit

Comment by St3venAU [ 12/Jan/15 ]

I just tested it on a 1.8.1 vanilla server and the problem did not occur:

  • /give @p map
  • right click the map
  • let it render
  • /kill
  • go back and pick up map
  • On vanilla server: map sill renders, On bukkit server: map no longer renders
Comment by md_5 [ 12/Jan/15 ]

Vanilla client bug, occurs with vanilla maps.

Comment by Dablakbandit [ 11/Jan/15 ]

Looking into packets I got the fields of the PacketPlayOutMap packet. Testing it by doing:

1. Using the TestMap plugin login at the spawn
2. Walk a bit away
3. Do command /kill to suicide, spawns back at the start
4. Walk back to the map and pick it up and keep moving

Meanwhile printing out the fields of the packet, showing the H field (byte array which is what should be printed onto the map) which should be changing, here is what I got:

http://hastebin.com/gumetexoqu.vbs

As you can see before I die the map values are different from the values a bit after I die suggesting that map should be updated/changed yet it stays the same.

Which leads me to believe maybe its a client side problem?

Edit:

In the hastebin look around line 225 where the map lasts updates before I die, then at 318 where the values change

Comment by md_5 [ 11/Jan/15 ]

Thanks for the comprehensive test plugin, I'll look into it tomorrow.
As you are also developers don't be afraid to try and take a poke yourself either.

Comment by St3venAU [ 11/Jan/15 ]

In my testing, you don't even have to change world, it happens if you just die. Die with an already initialized map in your inventory, map drops on the ground, re-spawn, pick up the map again. The map no longer updates. My testing was with the latest build of craftbukkit with no plugins loaded.

Comment by Dablakbandit [ 11/Jan/15 ]

http://www.spigotmc.org/resources/testmap.3100/

Comment by md_5 [ 10/Jan/15 ]

Can you please post a test plugin.

Comment by Dablakbandit [ 09/Jan/15 ]

Just did more testing, the renderers work, but when you set the pixels and try to send it to the player it won't update.

Comment by Dablakbandit [ 09/Jan/15 ]

Just tested on latest version, still bugs out

Comment by SpigotMC [ 09/Jan/15 ]

Your build is not the latest and therefore may be the reason you are having this issue. Spigot is 5 version(s) behind. CraftBukkit is 24 version(s) behind. This message was automatically generated and is not guaranteed to be a solution to your issue.

Generated at Mon Apr 21 21:19:18 UTC 2025 using Jira 10.3.5#10030005-sha1:190c783f2bd6c69cd5accdb70f97e48812a78d14.