Page MenuHome

Points instancing - crash.
Closed, ResolvedPublicBUG

Description

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 457.09

Blender Version
Broken: version: 2.92.0 Alpha, branch: geometry-nodes, commit date: 2020-11-20 11:06, hash: rB2781e51cda28

Short description of error
Probably it's too early to report but just in case I will.

Event Timeline

Thanks for the report. I can reproduce the crash with your file, but not if I reproduce the same set of node myself.

The problem seems to be with the recursive instancing, it keeps on creating sets of points. Interestingly it eats up all 32 GB of memory I have before hitting a stack overflow though.

Aha, this is a trick file!

The cube isn't actually a Mesh, it's the same object with more instancing on it. It's not actually an infinite loop, it's 40^8 (8 is the maximum instancing recursion) or about 6.5 billion instances that it's trying to make.

Something like this ought to solve the problem:

if (object != ctx->object) {
  make_recursive_duplis(ctx, object, matrix, i);
}

But the instances aren't actually showing up for me in this scene right now, not sure why. So I didn't properly test this yet.

My operation system is closing all programs after several seconds of processing this tree.

Hans Goudey (HooglyBoogly) changed the task status from Needs Triage to Confirmed.Nov 23 2020, 4:50 AM
Hans Goudey (HooglyBoogly) changed the subtype of this task from "Report" to "Bug".
Jacques Lucke (JacquesLucke) claimed this task.

I added a simple check for recursive instancing a couple of days ago. This bug seems to be solved by that. We still don't have a recursive check, that also works with multiple levels of instancing, but that can be added later.