Regression: Multiple modifiers failing when deactivating/activating collections #98379

Closed
opened 2022-05-25 17:58:51 +02:00 by Mark · 16 comments

Memory: 16 GB RAM
Processor: AMD Ryzen 5 3600 6-Core Processor 3.59 GHz
Operating System: Windows 10
Graphics card: NVIDIA 2060 RTX (8GB VRAM)

SCENE DESCRIPTION

Blender Version 3.1.2
Broken: 3.1.2, elder_sprite_packed.blend, 2022-05-25
Worked: 3.0.1

Bisected to a230445cae

NOTE: This is official Elder Sprite Rig downloaded from studio.blender.org. The only changes were some bones posed and the rig moved as an object to a new location and rotated for demonstration purposes.

BUG DESCRIPTION:

Activating and deactivating a collection will break the rig. In viewport and rendered viewport, the rig will appear completely broken, but it it works correctly when rendering. Making any change to the rig solves the issue.

HOW TO REPRODUCE THE ERROR:

  1. Open the elder_sprite_packed.blend file

  2. Deactivate any collection and reactive it using the checkbox. On reactivating, the error should occur.

  3. Selecting the rig or any object and pressing "G" to move and wiggling it before releasing with right-click will fix the issue.

elder_sprite_packed.blend

Blender_ [C__Users_Mark_Downloads_elder_sprite_packed.blend] 2022-05-25 16-59-37.mp4

Rendered view.PNG

Still render.PNG

Viewport Look Dev.PNG

NOTE: This bug has been seen on multiple systems and with multiple different rigs which use lattices and/or shrinkwrap objects, cloth simulation (turned off with a driver by default) and other object and bone constraints relying objects hidden in the viewport.

Simplified file:
elder_sprite_packed_simplified.blend

Memory: 16 GB RAM Processor: AMD Ryzen 5 3600 6-Core Processor 3.59 GHz Operating System: Windows 10 Graphics card: NVIDIA 2060 RTX (8GB VRAM) `SCENE DESCRIPTION` **Blender Version 3.1.2** Broken: 3.1.2, elder_sprite_packed.blend, 2022-05-25 Worked: 3.0.1 Bisected to a230445cae NOTE: This is official Elder Sprite Rig downloaded from studio.blender.org. The only changes were some bones posed and the rig moved as an object to a new location and rotated for demonstration purposes. `BUG DESCRIPTION`: Activating and deactivating a collection will break the rig. In viewport and rendered viewport, the rig will appear completely broken, but it it works correctly when rendering. Making any change to the rig solves the issue. `HOW TO REPRODUCE THE ERROR`: 1) Open the elder_sprite_packed.blend file 2) Deactivate any collection and reactive it using the checkbox. On reactivating, the error should occur. 3) Selecting the rig or any object and pressing "G" to move and wiggling it before releasing with right-click will fix the issue. [elder_sprite_packed.blend](https://archive.blender.org/developer/F13104733/elder_sprite_packed.blend) [Blender_ [C__Users_Mark_Downloads_elder_sprite_packed.blend] 2022-05-25 16-59-37.mp4](https://archive.blender.org/developer/F13104741/Blender___C__Users_Mark_Downloads_elder_sprite_packed.blend__2022-05-25_16-59-37.mp4) ![Rendered view.PNG](https://archive.blender.org/developer/F13104786/Rendered_view.PNG) ![Still render.PNG](https://archive.blender.org/developer/F13104785/Still_render.PNG) ![Viewport Look Dev.PNG](https://archive.blender.org/developer/F13104784/Viewport_Look_Dev.PNG) NOTE: This bug has been seen on multiple systems and with multiple different rigs which use lattices and/or shrinkwrap objects, cloth simulation (turned off with a driver by default) and other object and bone constraints relying objects hidden in the viewport. Simplified file: [elder_sprite_packed_simplified.blend](https://archive.blender.org/developer/F13113973/elder_sprite_packed_simplified.blend)
Author

Added subscriber: @Munkle_Mark

Added subscriber: @Munkle_Mark
Mark changed title from Multiple modifiers failing when hiding/hiding or deactivating/activating collections to Multiple modifiers failing when deactivating/activating collections 2022-05-25 17:59:16 +02:00
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Added subscriber: @OmarEmaraDev

Added subscriber: @OmarEmaraDev
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

It seems the problem is in the shrink-wrap constraint on some of the bones of the mouth, where their target is probably not evaluated because it is not visible. However, once it updates, I can no longer reproduce the issue.
I also feel like there is an undetected dependency cycle here, the helper beard mesh is deformed on the rig and the rig is shrink-wrapped on the helper.

You say that this happens in many files, can you create a simplified file where this happens to make debugging easier?

It seems the problem is in the shrink-wrap constraint on some of the bones of the mouth, where their target is probably not evaluated because it is not visible. However, once it updates, I can no longer reproduce the issue. I also feel like there is an undetected dependency cycle here, the helper beard mesh is deformed on the rig and the rig is shrink-wrapped on the helper. You say that this happens in many files, can you create a simplified file where this happens to make debugging easier?
Member

Not in front of my computer atm (national holiday), so was there a change in behavior between 3.0.1 and 3.1.2 for you @OmarEmaraDev?

Not in front of my computer atm (national holiday), so was there a change in behavior between 3.0.1 and 3.1.2 for you @OmarEmaraDev?
Member

@lichtwerk Yes, it works in 3.0 and doesn't in 3.1. So I guess we can bisect it.

@lichtwerk Yes, it works in 3.0 and doesn't in 3.1. So I guess we can bisect it.
Member

Bisected to a230445cae.

Bisected to a230445cae.
Member

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'
Member

It would still be good to have a simpler file to debug this, but since we found the culprit, I will consider this confirmed.

It would still be good to have a simpler file to debug this, but since we found the culprit, I will consider this confirmed.
Member

Added subscriber: @Sergey

Added subscriber: @Sergey
Member

@Sergey: is this expected behavior? If not, it is a regression

@Sergey: is this expected behavior? If not, it is a regression
Member

Well, actually, to get clarification, I will dare setting this to High Priority (since it looks like a regression), could very well be lowered again.

Well, actually, to get clarification, I will dare setting this to High Priority (since it looks like a regression), could very well be lowered again.
Philipp Oeser changed title from Multiple modifiers failing when deactivating/activating collections to Regression: Multiple modifiers failing when deactivating/activating collections 2022-05-27 08:59:35 +02:00
Sergey Sharybin self-assigned this 2022-05-27 09:56:43 +02:00

This issue was referenced by e5c65709a2

This issue was referenced by e5c65709a264fcd07170d6f1287c73d601a3add4

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Author

You guys seriously are phenomenal!

You guys seriously are phenomenal!
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#98379
No description provided.