-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Error opening .2dm and .xmdf mesh data #40385
Comments
No error on Linux and Windows, so seems a macOS only issue. |
Indeed...it works fine with QGIS master on Linux. CC @PeterPetrik |
i have seen this few times, but never able to replicate it consistently. If I remember correctly, it comes from spatialindex when it tries to save temporary files when creating index. |
Temporary files might be in a non-writable location #35651 (comment) Try this in the Python console to determine the current working directory, and see if it is a good place to write files.
|
^^ this code creates a tmp file relative to current working directory on MacOS, which is on |
Did commit 590b7f4 fix this? |
nope, fixed spatialite to correctly use TMPDIR to store temporary files (https://github.com/qgis/QGIS-Mac-Packager/blob/master/qgis_deps/recipes/spatialindex/patches/temporaryfile.patch) |
Thanks. I thought |
sorry, wrong commit :) qgis/QGIS-Mac-Packager@40ca7e8 |
That's better with the path in the template for the call to mkstmp, so it tries to make a temp file in the given path rather than working dir. And I was wrong about my other concern--mkstmp modifies the template string to the successful random filename, so the later call to |
Describe the bug
![Screenshot 2020-12-01 at 15 35 45](https://user-images.githubusercontent.com/41108485/100766203-4b188d80-33f0-11eb-831c-13e8d6d1b13b.png)
Having reopened a project containing TUFLOW .2dm mesh data I get the following error:
After that, the map display will not refresh - I can zoom but the extents do not change and turning layers on and off does not make them appear or disappear. I now get this error every time I add a .2dm. Restarting the computer does not help. The only thing that works seems to be to reinstall QGIS.
How to Reproduce
Example TUFLOW .2dm data here.
QGIS and OS versions
Also tried on 3.10 A Coruña with same result.
The text was updated successfully, but these errors were encountered: