Page MenuHome

Blender return zero when running out of memory
Closed, ResolvedPublic

Description

System Information
Ubuntu 16.04 LTS
i7-4790K
16GB DDR3

Blender Version
Broken: 2.78b
Worked: <= 2.78a

Short description of error

It looks like Blender is catching out of memory exception, and exiting normally, generating an empty output.
It's then difficult, when doing command line rendering to detect failing frames.

Fra:362 Mem:9551.07M (0.00M, Peak 12333.55M) | Time:00:41.46 | Mem:121.58M, Peak:6092.69M | Scene, RenderLayer | Updating Scene BVH | Building
Fra:362 Mem:9551.07M (0.00M, Peak 12333.55M) | Time:00:41.46 | Mem:121.58M, Peak:6092.69M | Scene, RenderLayer | Updating Scene BVH | Building BVH
Fra:362 Mem:9634.07M (0.00M, Peak 12333.55M) | Time:00:41.76 | Mem:121.58M, Peak:6092.69M | Scene, RenderLayer | Updating Scene BVH | Building BVH 25%, duplicates 0%
Fra:362 Mem:9634.07M (0.00M, Peak 12333.55M) | Time:00:42.01 | Mem:121.58M, Peak:6092.69M | Scene, RenderLayer | Updating Scene BVH | Building BVH 88%, duplicates 0%
Fra:362 Mem:9634.07M (0.00M, Peak 12333.55M) | Time:00:42.06 | Mem:121.58M, Peak:6092.69M | Scene, RenderLayer | Updating Scene BVH | Packing BVH triangles and strands
Fra:362 Mem:9701.86M (0.00M, Peak 12333.55M) | Time:00:42.09 | Mem:121.58M, Peak:6092.69M | Scene, RenderLayer | Updating Scene BVH | Packing BVH nodes
Fra:362 Mem:14566.00M (0.00M, Peak 14632.55M) | Time:00:43.21 | Mem:121.58M, Peak:6092.69M | Scene, RenderLayer | Updating Scene BVH | Copying BVH to device
Fra:362 Mem:14803.45M (0.00M, Peak 14803.45M) | Time:00:43.35 | Mem:5136.50M, Peak:6092.69M | Scene, RenderLayer | Updating Mesh | Computing normals
Fra:362 Mem:15293.87M (0.00M, Peak 15531.32M) | Time:00:43.35 | Mem:5136.50M, Peak:6092.69M | Scene, RenderLayer | Cancel | Out of memory
Error: Out of memory
Fra:362 Mem:770.09M (0.00M, Peak 15531.32M) | Time:00:43.38 | Sce: Scene Ve:0 Fa:0 La:0
Saved: '/tmp/362_0.png'
Time: 00:43.58 (Saving: 00:00.19)

Full log:

Exact steps for others to reproduce the error
Based on a (as simple as possible) attached .blend file with minimum amount of steps
Blend file:


Command used:

blender --factory-startup -b /root/scenario 1 301.blend -o /tmp/#_0 -noaudio -E CYCLES --scene Scene -F PNG -nojoystick -P frame.py -x 1 -t 0 -y -a -- 362

(frame.py being a simple python script to force frame number to render).

Details

Type
Bug

Event Timeline

Sergey Sharybin (sergey) closed this task as Resolved.
Sergey Sharybin (sergey) claimed this task.

Thanks for the report, but the issue was already solved in latest Git version, which you can get from builder.blender.org.