Search Issue Tracker

Fixed in 2021.2.X

Votes

13

Found in

2019.4

2020.1

2020.1.0f1

2020.2

2021.1

Issue ID

1273439

Regression

No

An error is thrown after re-building a library of previous Editor version project when the Profiler of 2020.2 project is opened

Window management

-

How to reproduce:
1) Create and open a new project in 2020.1
2) Select the Default layout
3) Open the Profiler window
4) Close the project
5) Repeat steps 1-4 with 2020.2 (a reproducible version)
6) Delete the 2020.1 project's Library folder
7) Open the 2020.1 project
8) Observe the Console window

Expected result: no errors are thrown
Actual result: an error is thrown

Reproducible with: 2020.2.0a13, 2020.2.0b1
Not reproducible with: 2018.4.27f1, 2019.4.9f1, 2020.1.4f1, 2020.2.0a12

Thrown error:
Unknown managed type referenced: [UnityEditor.CoreModule] UnityEditorInternal.Profiling.CPUProfilerModule
UnityEditorInternal.InternalEditorUtility:LoadSerializedFileAndForget(String)
UnityEditor.WindowLayout:LoadDefaultWindowPreferences()

Full title/description: An error is thrown after re-building a library of an older/previous Editor version project when a 2020.2 stream project is closed after opening up a Profiler window in it

  1. Response avatar

    Resolution Note (fix version 2021.2):

    Fixed in: 2021.2.0a15

Comments (6)

  1. 8a61832511e2d8ab712aa2dfd0c310c3?d=mm

    vra_unity

    Mar 17, 2021 18:49

    Same problem with 2019.4.21f
    Thanks EKPYROTICFROOD, helped

  2. 88327536d8712e6c4112a6365d4048ab?d=mm

    Jack_Eatock

    Feb 20, 2021 12:07

    Thankyou EKPYROTICFROOD, your solution worked for me :)

  3. 4160d001bdf66f68f8af5e1ddad164da?d=mm

    EkpyroticFrood

    Jan 14, 2021 22:04

    It appears to be caused by something in the layout that we carry into new projects from old ones.

    This will wipe that out, but it fixes the error for me:
    Close Unity.
    Find the file named CurrentLayout-default.dwlt (probably in the "Library" folder)
    Delete the file named CurrentLayout-default.dwlt
    Restart Unity.

  4. C250191255e6c575755d014ebfdff0a3?d=mm

    tlt

    Jan 03, 2021 07:01

    I have the same problem with 2019.4.11f1 with fresh empty project

  5. Ee1bd4f5d2212cc2d7a15b71fe8e2201?d=mm

    Profection

    Oct 15, 2020 19:12

    Same here with 2020.1.9f1 with fresh project with HDRP.

  6. F704de0391ed70e5ba8b2b5459eb37fb?d=mm

    p2s-fabio

    Oct 09, 2020 10:38

    It happens for me on a fresh project with URP on 2019.4.12f1

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.