Fatal crash when opening map file

Using the new mac version. I opened an existing event, with courses and a map. Tried to change the map file to a new version (these are omap files). The new file is in a different directory. Purplepen crashed with this error: “Cannot load map file ‘(path to file)’ for the following reason: Value cannot be null. (Parameter ‘codec’)”

Of course (path to file) was the path to the new map and was correct.

So then I copied the new omap file to the same directory as the ppen file, tried again, and it opened fine.

I’ve been seeing this too, though it’s often not a fatal crash for me, just an error.

I have an OCAD file that does not trigger the error, and a second version of that OCAD file which does trigger the error. The difference is that the second file has had a LIDAR import via the OCAD DEM Import Wizard. So apparently it’s caused by one of the LIDAR-derived layers.

PurplePen 4.0.0 Beta 2, 64-bit, standalone, on Mac. OCAD version 2020.8.5.

Jason

The fix may already be in the next beta (coming in a few days). But to be sure, I’d need a copy of the OCAD (or OpenOrienteering Mapper) file. You can privately email me the file at “peter@golde.org”. Thanks!

Will, do – I’m following up by email now. Thank you!

Yes, there is a bug with template files that are .TIF/.TIFF format in Beta 2. This is fixed in the next beta (coming soon.) Thanks for the report!

Great to hear, thank you so much for looking into it!

Jason