ID 496275 - Rearranging Layers can cause a freeze

Follow

Problem summary
Rearranging Layers can cause a freeze

Customer reported version
Mari 5.0v1

Customer reported platform
Windows 10

Steps to reproduce

1) Open any project

2) Create 3 Layers

3) Drag the top Layer and drop it below the second Layer

Expected behaviour
The dragged Layer should be inserted below the second.

Actual behaviour
Mari freezes and does not recover.

The MariLog.txt shows the following error:


Debug : [            MriUndoManager.cpp:168 ] : [UndoManager] Begin Macro #4 : Insert LayerDebug : [            MriUndoManager.cpp:175 ] : [UndoManager]  Active Macros :  - Drop Layers - Drop Layer - Move Layer 'Layer (Merge)' - Insert LayerDebug : [     MriShaderNetworkUtils.cpp:2191] : [ !! ] Connection from Layer (Merge) to Mud (Merge) creates a loop and break DAG.

Workaround
Unknown.

Reproduced by support
This bug has been reproduced in:
Mari 5.0v1 - Windows 10 - CentOS 7.9
Mari 4.8v1 - Windows 10 - CentOS 7.9 
Mari 4.7v5 - Windows 10 - CentOS 7.9 - regression

Unable to reproduce bug in:
Mari 4.7v4 - Windows 10 - CentOS 7.9

Earliest version tested
Mari 4.7v4 - This issue doesn't appear in this version and has regressed

 

    We're sorry to hear that

    Please tell us why