I\'m sure this is a basic problem but I\'ve hit my head against the wall too many times now, so hopefully someone will take pity on me!
I have the following example
This can also occur if the height/width of the map is 0.