[osgeo4w-dev] [osgeo4w] #759: qgis-dev 3.27.0-Master crashes during startup in some circumstances
OSGeo4W
trac_osgeo4w at osgeo.org
Thu Aug 4 01:43:59 PDT 2022
#759: qgis-dev 3.27.0-Master crashes during startup in some circumstances
------------------------+----------------------------
Reporter: andreaerdna | Owner: osgeo4w-dev@…
Type: defect | Status: closed
Priority: major | Component: Package
Version: | Resolution: fixed
Keywords: |
------------------------+----------------------------
Comment (by andreaerdna):
While this issue is fixed now, it seems to me this raises a question: is
it safe that the pdal library, via qgis-bin.exe, searches for
libpdal_plugin_* dlls in the user "Home" folder and in the user
"Documents" folder?
It initially searches in ".", "./lib", "../lib", "./bin", "../bin", which
translate (checked with Process Monitor) as
"C:\Users\[username]\Documents", "C:\Users\[username]\lib",
"C:\Users\[username]\Documents\lib", "C:\Users\[username]\bin",
"C:\Users\[username]\Documents\bin", as the working directory is set to
"C:\Users\[username]\Documents" in the "Start in" property of the QGIS
Desktop shortcut link.
See:
https://github.com/PDAL/PDAL/blob/8fd5de18668370b548032f907472f51974438edc/pdal/PluginDirectory.cpp#L46-L68.
Maybe setting the PDAL_DRIVER_PATH environment variable to the correct
folder in the starting procedure, or setting the "Start in" property of
the QGIS Desktop shortcut link to the OSGeo4W installation directory, will
prevent this behaviour?
--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/759#comment:4>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.
More information about the osgeo4w-dev
mailing list