Skip to content

Fix Findproj.cmake and crash at start-up

Christoph Neuhauser requested to merge chrismile/met.3d:multivar into master

This pull request fixes two problems in the current code base.

  1. On my system (Ubuntu 20.04), Findproj.cmake was not able to deduce the version number of PROJ from the header of the installed version (version 6.3). I've adapted the script to correctly extract the version number and major, minor and patch revision. This should work consistently across different versions of PROJ.

  2. In commit 9a465f08, a call to generateGeometry was added to MGraticuleActor::loadConfiguration. This crashes the application at start-up if a graticule actor is added to the initial actors in frontend.cfg (as suggested in the tutorial on https://met3d.readthedocs.io/), as MGLResourcesManager::initialize was not yet called at this point in time. I fixed this problem by first checking whether MSystemManagerAndControl::getInstance()->applicationIsInitialized() is true. Please just tell me if you think this fix might have some undesirable side effects (like that the actor is not correctly initialized).

Merge request reports