Kodi keeps crashing after stopping playback

I have a problem where Kodi (16.1) keeps crashing after I stop playback of an item. It says “Unfortunately, Kodi has stopped”, and goes back to the home screen.

In the attached debug log I think I am playing a source over UPNP from another computer running Kodi. The same thing happens when I play a video from an addon, or from a local drive connected to the unit though.

The debug log is here: http://paste.ubuntu.com/23488751/

Any ideas? I was thinking of uninstalling and re-installing Kodi, but I don’t know if all my settings will be erased if I do.