Search Issue Tracker

Fixed in 2020.2.X

Fixed in 2018.4.X, 2019.4.X, 2020.1.X



Found in




Issue ID




Crash when using AssetDatabase.FindAssets in a custom PropertyAttribute and when FormerlySerializedAs attribute is also used



How to reproduce:
1. Open user-submitted project (
2. Open the file 'TestClass.cs' and uncomment line 10([FormerlySerializedAs("pathToFile")]
3. Refocus Unity Editor to let the scripts recompile

Expected result: the Editor does not crash
Actual result: the Editor crashes

Reproducible with: 2018.4.24f1, 2019.4.1f1, 2020.1.0b13, 2020.2.0a15

  1. Resolution Note (fix version 2020.2):

    The cause of the crash was an exception being thrown in the constructor of a custom attribute. Instead of fatally asserting (crashing) the exception is raised and logged in the editor.

    Fixed in 2020.2.0a21

  2. Resolution Note (fix version 2020.1):

    Fixed in 2020.1.4f1

  3. Resolution Note (fix version 2019.4):

    Fixed in 2019.4.10f1

  4. Resolution Note (fix version 2018.4):

    Fixed in 2018.4.29f1

Comments (3)

  1. v_ribeiro

    Nov 02, 2021 19:41

    Also reproduced in 2021.1.27f1

  2. whyme270483

    Oct 03, 2021 11:00

    Hi there. I found this same issue again now. Using a MAC M1 Air Big Sir 11.6 latest update.
    When I open a unity game ( Lost relics ) it asks me to give access to developer access tool. When I do it does freeze my mac and I can not download the newest update. The game stays in the back even tho I force closed it. I am in a Group and several people reported this same problem

  3. Onat-H

    Jul 22, 2020 11:31

    Also reproduced in 2020.1.0b16

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.