Search Issue Tracker

Fixed in 2021.1.X

Fixed in 2019.4.X, 2020.1.X, 2020.2.X

Votes

16

Found in

2019.4.14f1

2020.1.12f1

Issue ID

1289794

Regression

Yes

[Profiler] "GetInt is not allowed error" is thrown when entering the Play Mode while Profiler is recording the Editor

Profiling

-

How to reproduce:
1. Create a new project
2. Open the Profiler (Window->Analysis->Profiler)
3. In the Profiler controls section change it to record the Editor
4. Enable the recording in the Profiler
5. Enter the Play Mode

Expected results: No errors are thrown
Actual results: The "UnityException: GetInt is not allowed to be called during serialization" error is thrown

Reproducible with: 2019.4.14f1, 2020.1.12f1
Not reproducible with: 2018.4.28f1, 2019.4.13f1, 2020.1.0a1, 2020.1.11f1, 2020.2.0a1, 2020.2.0b10, 2021.1.0a4

Notes:
- There are two "GetInt" exceptions that are thrown:
UnityException: GetInt is not allowed to be called during serialization, call it from OnEnable instead. Called from ScriptableObject 'ProfilerWindow'.
See "Script Serialization" page in the Unity Manual for further details.
UnityEditorInternal.Profiling.MemoryProfilerModule..ctor () (at <20b79eb59c0f467d8b1106b2110bc953>:0)
And:
UnityException: GetInt is not allowed to be called during serialization, call it from OnEnable instead. Called from ScriptableObject 'ProfilerWindow'.
See "Script Serialization" page in the Unity Manual for further details.
UnityEditorInternal.Profiling.AudioProfilerModule..ctor () (at <20b79eb59c0f467d8b1106b2110bc953>:0)

  1. Resolution Note (fix version 2021.1):

    Fixed in 2021.0.0a6

  2. Resolution Note (fix version 2020.2):

    Fixed in 2020.2.0b12

  3. Resolution Note (fix version 2020.1):

    Fixed in: 2020.1.14f1

  4. Resolution Note (fix version 2019.4):

    Fixed in 2019.4.15f1

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.