domlysz / BlenderGIS

Blender addons to make the bridge between Blender and geographic data
GNU General Public License v3.0
7.7k stars 1.35k forks source link

Large shapefile fail to import #459

Open Kjellis85 opened 3 years ago

Kjellis85 commented 3 years ago

Blender and OS versions

Blender 2.90.1, Windows 10 Enterprise 20H2

Describe the bug

Shapefileimport fails to import, creates logfile

How to Reproduce

Import a large contour shapefile (2gb)

Error message

Blender 2.90.1, Commit date: 2020-09-23 06:43, Hash 3e85bb34d0d7 bpy.ops.object.delete(use_global=False, confirm=False) # Operator Deleted 1 object(s) # Info bpy.ops.object.delete(use_global=False, confirm=False) # Operator Deleted 1 object(s) # Info bpy.ops.object.delete(use_global=False, confirm=False) # Operator Deleted 1 object(s) # Info bpy.context.space_data.system_bookmarks_active = 1 # Property bpy.ops.object.origin_set(type='ORIGIN_GEOMETRY', center='MEDIAN') # Operator

backtrace Exception Record:

ExceptionCode : EXCEPTION_ACCESS_VIOLATION Exception Address : 0x00007FF6ACECEE28 Exception Module : blender.exe Exception Flags : 0x00000000 Exception Parameters : 0x2 Parameters[0] : 0x0000000000000001 Parameters[1] : 0x0000000000000410

domlysz commented 3 years ago

Yes this function is not memory friendly, all the dataset is loaded into the RAM; Blender itself is not designed to handle very large geodataset. You should make concessions here.