OPM / ResInsight

3D viewer and post processing of reservoir models
http://resinsight.org/
GNU General Public License v3.0
174 stars 92 forks source link

Project File: Use rsp location as starting point for import of relative file path #8017

Open hhgs opened 3 years ago

hhgs commented 3 years ago

Error when resinsight is started in an arbitrary folder, importing a project with relative file path references:

resinsightdev $ QIODevice::read (QFile, "resinsight/input/geogrid_gfssl.grdecl"): device not open terminate called without an active exception

Note! Other applications do also use current working directory as starting point for relative paths. So using location of project file as reference could be a fall back when files are not found using CWD.

hhgs commented 3 years ago

Crash when starting ResInsight at "wrong" working directory compared to relative paths in the project file: QIODevice::read (QFile, "resinsight/input/geogrid_gfssl.grdecl"): device not open terminate called without an active exception

If missing Project include files, give message about which file is missing, and proceed with opening Project file.