Skip to content

Recursive loop in EntityData Class #288

@Thierry-Submarine

Description

@Thierry-Submarine

Is there an existing issue for this?

  • I have searched the existing issues and added correct labels.

Description

This function causes a recursion error because self can already contain _orig_data:

def lock(self) -> None:

It becomes problematic when called upon often like in the Shotgrid processor running a sync. For example I was importing an already existing Shotgrid project with tasks, comments and entities and it crashed after a while

Image

We solved it with a quick patch removing the _orig_data before the deepcopy call but I'm sure there is a better way to properly fix this

Steps To Reproduce:

No response

Additional context:

Version

Version of the server, ayon-core and the addon that's affected

What platform were you running when you found the bug?

Windows
Linux - Rocky9
Linux - Ubuntu
MacOS

You can also provide any additional information relevant to the issue.

Relevant log output:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions