For adventure maps, when I had created custom shops with villagers for my adventure map, something wasn't quite right.
Every time I traded something with a custom made villager, the game had just crashed. Even when I hovered over some of the trades, the game still crashed.
Regular villager trades work fine. I'm concerned for adventure maps that do this sort of thing.
Mine did that on an adventure map as well, Bad Santa to be exact