Page MenuHome

Blender 2.79/2.80/2.81/2.82 crashing on open big OBJ files.
Open, Needs Triage by DeveloperPublic

Description

System Information
Operating system: Windows-10-10.0.17763 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 419.67

Blender Version
Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-10-28 18:34, hash: rB7c1fbe24ca33
Worked: never

Short description of error
Blender crashing on import huge OBJ files. Ususllay something bigger than 20,000,000 poly.
(PLY/FBX import 33mln poly mesh without problem)

Exact steps for others to reproduce the error
Download 33mln poly OBJ file. https://www.dropbox.com/s/9hzojgsr1f0wa4q/33M.7z?dl=0
(Or just generate mesh in MeshLab with Filters/Create New Mesh Layer/Fractal Terrain with subdivision step about 12-13 about or Noisy Isostructure with size about 512)
Start any blender version and try to import this OBJ file.
After minute or less it will crashed and you will see this error in console:

C:\Program Files\Blender Foundation\Blender_2.8>blender.exe
Read prefs: C:\Users\Vlad\AppData\Roaming\Blender Foundation\Blender\2.81\config\userpref.blend
found bundled python: C:\Program Files\Blender Foundation\Blender_2.8\2.81\python
Icon file not copied!
(  0.0000 sec |   0.0000 sec) Importing OBJ 'D:\\33M.obj'...
  (  0.0010 sec |   0.0000 sec) Parsing OBJ file...
    (411.7311 sec | 411.7291 sec) Done, loading materials and images...
    (411.7381 sec | 411.7361 sec) Done, building geometries (verts:16785409 faces:33554432 materials: 1 smoothgroups:0) ...
Malloc returns null: len=805306384 in BKE_lnor_spacearr_init, total 3124624568
Error   : EXCEPTION_ACCESS_VIOLATION
Address : 0x00007FF74B961C0D
Module  : C:\Program Files\Blender Foundation\Blender_2.8\blender.exe

Details

Type
Bug

Event Timeline

It looks like you're running out of memory and therefore memory allocations fails.

Error happening on 64Gb and 128Gb RAM.
FBX and PLY same 33000000 poly open without problem.

C:\Program Files\Blender Foundation\Blender_2.8>blender.exe
Read prefs: C:\Users\Vlad\AppData\Roaming\Blender Foundation\Blender\2.81\config\userpref.blend
found bundled python: C:\Program Files\Blender Foundation\Blender_2.8\2.81\python
Icon file not copied!
FBX Import: start importing D:\33M.fbx
FBX version: 7500
        FBX import: Prepare...
                Done (0.000000 sec)

        FBX import: Templates...
                Done (0.000000 sec)

        FBX import: Nodes...
                Done (0.000000 sec)

        FBX import: Connections...
                Done (0.000000 sec)

        FBX import: Meshes...
                Done (348.046875 sec)

        FBX import: Materials & Textures...
                Done (0.000000 sec)

        FBX import: Cameras & Lamps...
                Done (0.000000 sec)

        FBX import: Objects & Armatures...
                Done (0.000000 sec)

        FBX import: ShapeKeys...
                Done (0.000000 sec)

        FBX import: Animations...
                Done (0.000000 sec)

        FBX import: Assign materials...
                Done (0.046875 sec)

        FBX import: Assign textures...
                Done (0.000000 sec)

        FBX import: Cycles z-offset workaround...
                Done (0.000000 sec)

        Done (353.359375 sec)

Import finished.