Page MenuHome

Mantaflow: several crashes due to null pointers.
Confirmed, NormalPublicBUG

Description

System Information
Operating system: Windows 64 bit
Graphics card: GTX1660

Blender Version
Broken: rBaad09525fb554ed023419d1c4fd12a5b8da72660
Worked: before mantaflow merge

Short description of error
There are several null derefs in the mantaflow code, running a debug build bring them out virtually instantly

the first one is here where obstacles is dereferenced without checking it is a valid pointer, a few lines later, a similar field is checked for null before de-referencing so it's probably needed here as well, however this may be masking the actual issue that the field should not be null in the first place.

When adding the check and trying again it hits another null pointer here where shadow is a null pointer.

Exact steps for others to reproduce the error

  • Make a debug build
  • on the default cube scene use quick smoke
  • Bake
  • *poof*

Event Timeline

LazyDodo (LazyDodo) changed the task status from Needs Triage to Confirmed.Sat, Jan 4, 10:08 AM
LazyDodo (LazyDodo) created this task.
Germano Cavalcante (mano-wii) changed the subtype of this task from "Report" to "Bug".Mon, Jan 6, 7:02 PM

@LazyDodo (LazyDodo) Just pushed an update that gets rid of the entire loop, i.e. the functionality is now directly in Mantaflow. It's much cleaner this way.

Can you check if the issue with the shadow null pointer persists and re-open the task if it does?

LazyDodo (LazyDodo) reopened this task as Confirmed.Wed, Jan 15, 4:50 PM

the obstacles crash is gone, shadow however is still an issue, tested on rBc27acbcfb79f7194d97564ce57b25dd62933f589