Page MenuHome

Baking memory usage massively increases over time
Open, Confirmed, MediumPublic

Description

System Information
Operating system: Windows 10
Graphics card: GTX 1080Ti

Blender Version
Broken: 2.8 Beta
2019-01-07 91a155833e59

Short description of error
Baking normal maps many times in the same file drastically increases memory consumption, to the point where a bake that takes seconds in a new file is enough to freeze my computer completely.

Exact steps for others to reproduce the error

  1. Open the baking-bug file:

  1. Everything is set up, just click Bake. This will bake a simple beveled cube's normals to a regular cube.

This takes quite some time, and memory usage is through the roof. I've used a previous version of this file to bake over 100 high poly objects (door_high collection) to 15 subdivided low poly objects with cages (door_low collection) about 5 times each. Each time I hit Bake, Blender would take longer and use more memory. I've noticed this same behavior as far back as a year ago and never tracked it down, so I don't think it's anything new with 2.8.

  1. Open the baking-perfect file for comparison, which has the exact same cube objects copied over to a fresh file:

  1. Click Bake. This should be almost instantaneous.

Details

Type
Bug

Event Timeline

Jonathan Lampel (jonathanl) renamed this task from Baking normals many times freezes computer to Baking memory usage massively increases over time.Jan 14 2019, 5:48 PM
Sebastian Parborg (zeddb) triaged this task as Confirmed, Medium priority.Jan 28 2019, 10:56 AM

There is something weird going in in there for certain. If I delete the door_high and door_low collections the baking is fine.

However, as those objects shouldn't affect the baking this is a bit odd.

I'm currently following Jonathan's door tutorial and experiencing the exact same issue in 2.80.45. 42.25GB memory usage and about half an hour for a very simple bake.