Page MenuHome

--background crash when rendering objects that reference data outside active scene
Closed, ResolvedPublicBUG


System Information
Operating system: Windows 10
Graphics card: GeForce GTX 1070

Blender Version
Broken: 2.80.75

Short description of error
Blender --background execution with a script that bakes a scene that has objects with (some?) modifiers will crash with 'EXCEPTION_ACCESS_VIOLATION'. Baking the same scene in interactive mode with same settings works without issue.

Exact steps for others to reproduce the error
I'm no longer sure exactly how this can be reproduced as it seems to be an interaction between two objects. Removing/apply modifiers causes the problem to go away however. I am attaching a very simple scene that demonstrates the crash and a basic script that will try to bake the scene.

Run blender on the command line with: crash1.blend --background --python

Event Timeline

Germano Cavalcante (mano-wii) lowered the priority of this task from 90 to 30.Oct 22 2019, 4:42 PM

Could you provide a simple blend file demonstrating the problem?


Actually while trying to generate the most simple example, I am no longer sure what actually causes the problem. It has something to do with modifiers, because applying all of them fixes it. But no single modifier seems to be the cause.

I will edit the report and attach a file that causes the error along with a basic script to run it (since it only happens in background mode).

Netherby (netherby) raised the priority of this task from 30 to 90.Oct 30 2019, 3:33 AM

My guess is that it's a baking operator which is not using correct object.
This is area where Dalai is the most familiar person.

Richard Antalik (ISS) changed the task status from Needs Triage to Confirmed.Jan 15 2020, 4:36 PM

Can confirm crash during baking in background mode.
When I pasted py script into text editor and run, script ended successfully.

Bastien Montagne (mont29) changed the subtype of this task from "Report" to "Bug".Jan 15 2020, 8:01 PM

Note that this issue would also crash if you enabled locked-interface, it's wasn't Python spesific.