This took me a while to figure out, so here's a fix for an annoying problem:
Let's say that you have a media box running Kodi on your local area network. You have uPNP turned on so you can stream videos from your media box across your LAN. You want to use VLC to watch stuff across your LAN.
Problem: When you select your Kodi box in VLC and double-click on the server to open the directory of media to watch, VLC crashes with no error message (even in debug mode).
Explanation: VLC is configured to exit when the current playlist is over. This includes downloading a playlist across the network, and is really irritating.