Page MenuHome

Full copy of scene makes Blender freeze if there is content directly in the master collection
Closed, ResolvedPublicBUG

Description

System Information
Operating system: Windows-7-6.1.7601-SP1 64 Bits
Graphics card: GeForce GTX 660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 445.87

Blender Version
Broken: version: 2.90.0 Beta, branch: master, commit date: 2020-08-09 12:07, hash: rB00162e6b7b0f
Worked: 2,83,4
Caused by rBeee35ebdfbed: Make `BKE_scene_copy` fully handle all duplicate modes, deep copy included.
rBb05fa123d741: Make `BKE_collection_duplicate able to handle master collections. might also be relevant here

Seems like blender hangs in BKE_id_new_name_validate / check_for_dupid

Exact steps for others to reproduce the error
Move default cube to Scene collection
Try to make full copy of scene.
It happens with custom settings and factory settings too.

Event Timeline

Philipp Oeser (lichtwerk) changed the task status from Needs Triage to Confirmed.Aug 11 2020, 9:50 AM
Philipp Oeser (lichtwerk) triaged this task as High priority.
Philipp Oeser (lichtwerk) changed the subtype of this task from "Report" to "Bug".

Can confirm, checking...

Philipp Oeser (lichtwerk) renamed this task from Full copy of scene makes Blender to hang to Full copy of scene makes Blender freeze if there is content directly in the master collection.Aug 11 2020, 10:19 AM
Philipp Oeser (lichtwerk) updated the task description. (Show Details)

@Bastien Montagne (mont29): Guess this should be solved for 2.90 still?

Not quite sure how this should work, looking at code here

/* We never duplicate master collections here, but we can still deep-copy their objects and collections. */
collection_new = collection_old;

and then later, we are adding new objects to the new collection [which is the same as the old for a master collection], while looping over it at the same time.

Why are master collections not duplicated? Arent these per scene @Bastien Montagne (mont29)?
Sounds weird to have the same collection trying to have both old and new objects in it?