Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QGIS crashes when opening project file with nonexisting NTV2 grid file location #24515

Closed
qgib opened this issue May 24, 2017 · 4 comments
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption High Priority Project

Comments

@qgib
Copy link
Contributor

qgib commented May 24, 2017

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.
For example, if you open a QGIS project file from the attachment, you will find something like this:

<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 false

...
...
...

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:

  • unzip attachment
  • open Novigrad_2008_upu_stancijeta_1.qgs file
  • and crash

Thank you for your help and best regards,
Mario


@qgib
Copy link
Contributor Author

qgib commented May 25, 2017

Author Name: Giovanni Manghi (@gioman)


  • easy_fix was changed from 1 to 0
  • category_id was changed from GUI to Project Loading/Saving
  • priority_id was changed from Low to High

@qgib
Copy link
Contributor Author

qgib commented Nov 14, 2017

Author Name: Even Rouault (@rouault)


I cannot reproduce with latest QGIS 2.18.14 or QGIS master on Ubuntu 16.04. If you reproduce, could you give the stacktrace when the crash occurs


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Nov 14, 2017

Author Name: Mario Miler (@mmiler)


Even Rouault wrote:

I cannot reproduce with latest QGIS 2.18.14 or QGIS master on Ubuntu 16.04. If you reproduce, could you give the stacktrace when the crash occurs

Yes, you are right. The problem does not exist on 2.18.14 version. QGIS works normally.

@qgib
Copy link
Contributor Author

qgib commented Nov 14, 2017

Author Name: Giovanni Manghi (@gioman)


  • resolution was changed from to fixed/implemented
  • status_id was changed from Feedback to Closed

@qgib qgib closed this as completed Nov 14, 2017
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Project Crash/Data Corruption labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption High Priority Project
Projects
None yet
Development

No branches or pull requests

1 participant