On Commons if you click 'prev' on a revision of a .map dataset with a 'map.json' content model when the previous revision has a 'mediawiki' content model you get an Internal error like:
- [W4ZLAQpAAD0AACzcXZsAAAAS] 2018-08-29 07:28:01: Fatal exception of type "MWException"
If possible this should succeed, or if this is too challenging a reasonable error message should be generated instead of an internal error.
Example link that produces the error:
https://commons.wikimedia.org/w/index.php?title=Data:Highway_192_in_Iowa_(3).map&diff=317407041&oldid=317406940
Interestingly if you click 'prev' on a revision of a .map dataset with a 'JSON' content model (instead of 'map.json') when the previous revision has a 'mediawiki' content model you get a successful diff. Example:
https://commons.wikimedia.org/w/index.php?title=Data:Highway_192_in_Iowa_(2).map&diff=317406375&oldid=317406229
So the internal error appears to be specific to the map.json content model.
See related error T203062: Unable to change content model to Map.Json and https://en.wikipedia.org/wiki/Template_talk:Infobox_road#Map_data_on_Commons.