Expected Behavior
For most blocks with a crafting ui, pressing the Pick Block button (default Middle-Click) over the output while in creative mode will give the player a full stack of the output item without consuming any inputs.
Observed Behavior
When attempting to do this on a cartography table while either locking the map or increasing the scale of the map, the game will crash. The world can still be opened, but the map and item added to it will no longer exist.
This also causes issues with map extending, either in a crafting table or in a crafter. Placing the map and eight paper in the grid and middle-clicking the output stack will result in the same crash.
From attached crash log, it appears that using middle click does not remove the non-encoded minecraft:map_post_processing component before copying the item to give it to the player.
Steps to Reproduce
Create a map.
Place the map and a piece of paper or a glass pane in a cartography table.
Hover over the output.
Click the
Pick Blockbutton.
This is related to MC-306074 .