Page MenuHome

Delete Active Scene Freezes Blender
Closed, ResolvedPublic

Description

System Information
Operating system: Windows 7
Graphics card: GTX 1080 and RTX 2080 Ti

Blender Version
Broken: 2.80 (sub 45), branch: master, commit date: 2019-03-01 00:39, hash: e5194835de45, type: Release
Worked: (optional)

Short description of error
Deleting Scene from Browser Scene makes Blender freeze and you need to force quit to unfreeze.

Exact steps for others to reproduce the error

  1. Go to Scene Browser (top right of Blender)
  2. Select "Plan" from Scene Browser
  3. Delete Active Scene
  4. Freeze...

I am providing the file where I could repeat the crash/freeze easily. Maybe related to T61984 and T61763 because 1) I also had imported a DXF in this .blend and 2) the feature (Delete Active Scene) works with simple cubes.

I hope that helps.

Event Timeline

Eric Imboden (eric02) changed the visibility from "Public (No Login Required)" to "All Users".
Brecht Van Lommel (brecht) changed the visibility from "All Users" to "Public (No Login Required)".Mar 1 2019, 11:26 AM
Philipp Oeser (lichtwerk) triaged this task as Confirmed, Medium priority.

Confirmed, checking...

And indeed seem tied to the Background Scene

DEG is complaining when trying to add an operation which already exists... add_operation: Operation already exists
BLI_assert failed: /blender/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc:227, add_operation_node(), at '!"Should not happen!"'

Could be tied to T61763, but since its asserting elsewhere, will not merge the reports (yet)

Interestingly, in this file the scene Salle has its background scene (scene->set) set to Salle as well? [at least it looks like this in the debugger here, the UI suggests it is set to Plan...]

@Eric Imboden (eric02) : reg. the DXF import: was this done with the Import DXF to new scene option?

@Eric Imboden (eric02): nvm, doesnt seem related to the import process, can be reproduced with deleting any scene set as background scene elsewhere...

Looks like when remapping the scene (which is about to be deleted) to the scene_new, code will end up placing the scene_new as a background scene for itself... see here

This is all happening when while BKE_libblock_remap does its thing in ED_scene_delete()

@Bastien Montagne (mont29): pretty sure this is not supposed to happen? (assigning to you since you are best familiar with any consequences to changes in that area, right?)