Search Issue Tracker

By Design

Votes

0

Found in

2018.3.0a1

2018.3.9f1

2019.1.0a1

Issue ID

1138305

Regression

No

Unity freezes on an Easy Save plugin script when project is being built

Build Pipeline

-

To reproduce:
1. Open user's attached project ("Ridunkulous2019")
2. CTRL +B to Build the project
- Editor freezes

Reproduced with: 2018.3.12f1, 2019.1.0b10

Notes:
- Could not test with Unity 2017.4 as it crashes instantly after launching the project
- Could not test with 2019.2 due compilation errors
- Unity unfreezes after long period of time with numerous StackOverflow errors

  1. Resolution Note:

    EditorUtility.CollectDependencies works by performing serialization on the objects passed in just like what happens during a build. This means that OnBeforeSerialize will be triggered just as expected right before serialization occurs. So calling this API from within a OnBeforeSerialize callback can cause an infinite loop depending on the objects that you passed into the API and what they reference.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.