The compositor crashes when the active viewer layers is deleted and replaced by a new layer. That's because the depsgraph of the compositor still references the old view layer. To fix this, we need to update the view layer of the compositor if it changed since it was last created. Pull Request: https://projects.blender.org/blender/blender/pulls/134326