QGIS crashes when opening project file with nonexisting NTV2 grid file location #24515
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Crash/Data Corruption
High Priority
Project
Author Name: Mario Miler (@mmiler)
Original Redmine Issue: 16615
Affected QGIS version: 2.18.7
Redmine category:project_loading/saving
When I open a QGIS project created on Windows QGIS installation (see attachment), it crashes QGIS on Linux.
I found out that the reason for that crash is in QGIS project Coordinate system definition in *.qgs file. When there is custom coordinate system definition that uses NTV2 grid file for datum transformation, it crashes QGIS (see line 28 in qgs file from attachment. Probably because that file (D:\HRNTv2.gsb) does not exit on Linux OS.
<title></title> meters 5388731.26843392010778189 5021504.89625283982604742 5389744.13858615513890982 5022828.19216307904571295 0 1 *+proj=tmerc +k=0.9999 +lon_0=15 +no_defs +x_0=5500000 +ellps=bessel +nadgrids=D:\\HRNTv2.gsb +units=m +lat_0=0 +wktext +y_0=0* 100000 0 USER:100000 5 zona tmerc bessel falseFor example, if you open a QGIS project file from the attachment, you will find something like this:
...
...
...
Problem is in the bold text. When I delete that line from .qgs file, it works without any problem. I believe that QGIS crashes because he can not find file D:\HRNTv2.gsb on my Linux machine. I have that file somewhere else on my computer.
To repoduce this error:
Thank you for your help and best regards,
Mario
The text was updated successfully, but these errors were encountered: