Search Issue Tracker

Fixed in 2020.2

Fixed in 2018.4, 2019.4, 2020.1

Votes

10

Found in

2018.4

2018.4.23f1

2020.2

Issue ID

1255935

Regression

No

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

Mono

-

How to reproduce:
1. Open user-submitted project (AssetDatabaseBug.zip)
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. Response avatar

    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. Response avatar

    Resolution Note (fix version 2020.1):

    Fixed in 2020.1.4f1

  3. Response avatar

    Resolution Note (fix version 2019.4):

    Fixed in 2019.4.10f1

  4. Response avatar

    Resolution Note (fix version 2018.4):

    Fixed in 2018.4.29f1

Comments (1)

  1. 44ce230901e00233bb4c09ad39f5fae8?d=mm

    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.