M4rtinK / modrana

ModRana is a flexible GPS navigation system for mobile devices. This is the main upstream modRana source code repository - waiting for your pull requests & patches! :)
www.modrana.org
GNU General Public License v3.0
66 stars 21 forks source link

Hang on startup if map_config.conf is invalid #138

Open DerDakon opened 8 years ago

DerDakon commented 8 years ago

I had a stray " in the label field of a map_config.conf entry, which resulted in the application only showing the progress bar on startup and never anything else. This was on my Jolla phone.

M4rtinK commented 8 years ago

Yep, that's certainly wrong and should be fixed - I'm thinking about hardcoding at least Mapnik and using it as a fallback if the map config file fails to parse or is unavailable for some reason.

Also I guess I should also check if ConfigObj can do partial parsing & ignore individual syntax errors.

But eventually I would like to get the map layer management more robust:

So that's the plan, I just have not really got to that yet myself. :)