ID 393055 - [Windows] Crash when flushing caches while large number of locations is expanded in the Scene Graph

Follow

Problem summary

When many locations are expanded in the Scene Graph tab and a user clicks 'Flush caches', Katana crashes.

The crash occurs reliably on Windows with 10,000 expanded locations. The same operation doesn't seem to cause a crash on Linux even with 100,000 locations.

Customer reported version
Katana 3.1v4

Customer reported platform
Windows 7

Steps to reproduce

  1. In the Node Graph tab, create an OpScript node and set its edit and view flags.
  2. In the Parameters tab, set the applyWhere parameter to at all locations and the script.lua parameter to the following:

    
    local path = Interface.GetOutputLocationPath()if path == "/root" then   Interface.CreateChild("world")endif path == "/root/world" then   Interface.CreateChild("geo")endif path == "/root/world/geo" then  for i=0,10000,1 do    Interface.CreateChild("shape"..i)  endend
  3. Expand the scene graph.

  4. Flush Caches.

Expected behaviour
The scene is recooked and the Scene Graph tab is refreshed.

Actual behaviour
Katana crashes.

Workaround
Unknown.

Reproduced by support

This bug has been reproduced in:
Katana 3.1v4 - Windows 10
Katana 3.1v3 - Windows 10
Katana 3.1v2 - Windows 10 - This issue first appears in this version, and is therefore a regression introduced here.

Unable to reproduce bug in:
Katana 3.1v1 - Windows 10 - This is the last release not affected by this bug.
Katana 3.0v8 - Windows 10
Katana 2.6v4 - Windows 10
Katana 2.5v7 - Windows 10

    We're sorry to hear that

    Please tell us why