Page MenuHome

Curve cache not created - crash with production file
Closed, ResolvedPublicBUG

Description

Blender Version
Broken: version: 2.83 (sub 10), branch: master, commit date: 2020-03-19 21:12, hash: rBd2c3544c5cb0

Short description of error

Crash in a file that has a curve modifier and is linked and proxified into another one. The system is a bit fragile. For example, if you open pram.blend and delete the driver, the issue goes away.

Exact steps for others to reproduce the error
Open //scenes/assembly/coffeerun.assembly.blend

It contains the following super simplified files:

  • //scenes/assembly/coffeerun.assembly.blend
  • //lib/props/pram.blend
  • //lib/sets/cafe.blend
  • //lib/sets/city.blend

Related Objects

Event Timeline

Dalai Felinto (dfelinto) changed the task status from Needs Triage to Confirmed.Mar 20 2020, 9:23 PM
Dalai Felinto (dfelinto) triaged this task as High priority.
Dalai Felinto (dfelinto) created this task.
Dalai Felinto (dfelinto) changed the subtype of this task from "Report" to "Bug".

On a related note, @Clément Foucault (fclem) why do you have drw_batch_cache_generate_requested as the key to the free function? (on draw_manager.c:666)

Crash: //source/blender/draw/intern/draw_cache_impl_curve.c:109:23: runtime error: member access within null pointer of type 'const struct CurveCache'
Full backtrace: P1311

GEO-pines.004 refers to CRV-pines_path (via curve modifier), and CRV-pines_path->runtime.curve_cache is NULL when it shouldn't be.