Page MenuHome

Deleting Collection crashes Blender when hair system renders with collection & 'Use Count'
Closed, ResolvedPublic

Description

System Information
Operating system: Windows-10-10.0.17763 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 419.35

Blender Version
Broken: version: 2.80 (sub 60), branch: blender2.7, commit date: 2019-05-07 19:17, hash: rB3dc9da3a74ee
Worked: N/A (new feature for 2.80)

Short description of error
If you have an object with a hair particle system set to render from a collection with 'Use Count" and then delete the collection, Blender crashes if you select the object and try to open the particle settings>render>collection menu. It only seems to crash when you try to open that specific window. This is a particularly naughty bug because you can work normally for a while with no error, and then try to open the render settings of your object and BAM! crash with seemingly no explanation.

I couldn't get Blender to crash from deleting the collection unless 'use count' was checked.
I'd be happy to test this on Ubuntu if you need me to.

Exact steps for others to reproduce the error
From attached .blend file:


Simply delete the Suzanne collection, select the cube, and attempt to open the particle settings>render>collection tab.

On an unrelated note, I've noticed that the 'use count menu' doesn't seem to update correctly when adding new items to the collection being used. I need to test this a little more before doing a complete bug report, but maybe its related to the issue I've already described.