Saved hotbars storage contains NBT's of maps and other items.
This bug is caused by the system of map data storage in dedicated files "<world_name>/data/map_#.dat".
This may happen (very probably) on older versions but I did not check it.
Steps to reproduce the bug:
Create world "World A" and do the following:
Run /give @s minecraft:map
Right-click the map to get a filled map
Check how the map renders - it should display terrain (attachment WorldA.png)
Save hotbar (press C+1)
Exit "World A"
Create "World B" and open it, do the following:
Load the previously saved hotbar (press X+1)
Filled map should appear in the hotbar, check how it renders now - it's empty (and that is the bug) (attachment WorldB.png)
Potential fixes:
Store all the map data inside an NBT of a single item
Implement a way of transferring maps between worlds.
Ignore this bug (mark as "Won't fix")
Not allow to put filled maps in saved hotbars
Thank you for your report!
After consideration, the issue is being closed as Won't Fix.
Please note that this is not the same as Working as Intended, as this bug report correctly describes behavior in the game that might not be the intended or desirable behavior, but it will not be fixed right now. Sometimes, this is because the issue reported is minor and/or impossible to change without large architectural changes to the code base.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki