Open Failxxx opened 2 years ago
I am facing the same issue as for the second case described in my first post when I use basemap with ESRI / LB93.
Crash report: Logs.txt blender.crash.txt
From what I understand, it seems it always come from gdal.Open(vsipath)
. I tried to replicate the issue in a small separate script but I can't.
My script:
from osgeo import gdal
import random
import ast
def test_function(data):
vsipath = '/vsimem/' + ''.join(random.choice('abcdefghijklmnopqrstuvwxyz') for i in range(5))
gdal.FileFromMemBuffer(vsipath, data)
ds = gdal.Open(vsipath)
gdal.Unlink(vsipath)
print("DS:", ds)
for data_path in ["./data_vsimem_a.txt", "./data_vsimem_b.txt"]:
file = open(data_path, "r")
data = file.read()[:-1]
file.close()
data = ast.literal_eval(data)
test_function(data)
This script outputs:
DS: <osgeo.gdal.Dataset; proxy of <Swig Object of type 'GDALDatasetShadow *' at 0x7f28f0258ea0> >
DS: <osgeo.gdal.Dataset; proxy of <Swig Object of type 'GDALDatasetShadow *' at 0x7f28f0258f90> >
So it seems to be working.
Data (samples taken before Blender crashes): data_vsimem_a.txt data_vsimem_b.txt
I am facing the same issue using PIL as the image processing engine. Crash report: Logs.txt blender.crash.txt
But good news: it works using ImageIO. So I can finally use basemap with GDAL/ImageIO when using 'Fr Lambert 93' CRS.
Blender and OS versions
Blender: version: 3.0.1, branch: master, commit date: 2022-01-25 17:19, hash: dc2d18018171, type: release
OS: Ubuntu 18.04.6 LTS
Describe the bug
When I try to use the basemap tool with the following settings (see screenshot) Blender crashes.
I obtain quite the same result when I try to use it with the the following settings:
How to Reproduce
First case: Go to Gis > Web geodata > Basemap Hit 'ok'
Second case: Add 'Lambert 93' spatial reference system in preferences Go to Gis > Web geodata > Basemap Select 'Fr Lambert 93' Hit 'ok' Type 'g' Enter Paris Hit 'ok' Zoom in
Error message
First case:
Crash report: blender.crash_1.txt
Second case:
Crash report: blender.crash_2.txt