Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround crash in msvc when raising a GEOS exception
In some circumstances MSVC tries to raise it's own internal exception when we try to raise a GEOSException. This results in a hard crash of QGIS. To workaround this, we cautiously try to raise a GEOSException on msvc builds, catching all other raised exceptions if throwing the GEOSException triggers them. This at least allows us to gracefully handle the geos error without crashing QGIS (although the detailed GEOS error message is not available when this situation occurs... but that's still better than a crash!). If you want to try to find a better fix for this, the testqgsexpression.cpp test suite will demonstrate the issue. Without this fix the test will crash on the "line_interpolate_point point" test. Refs #14752
- Loading branch information