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

Comments (9)

  1. RendergonPolygons

    Nov 18, 2020 08:45

    occurred upgrading to 2020.1.13f1 from 2020.1.8f1

  2. mangax

    Nov 15, 2020 15:26

    this bug still happening in unity 2020.1.13f1

  3. Galiderath

    Nov 14, 2020 02:56

    Occurred creating a new project in 2020.1.13f1

  4. konnosgar_milky

    Nov 12, 2020 10:05

    Occurred upgrading project from 2019.3 to 2020.1.12f1

  5. Holygoe

    Nov 11, 2020 22:13

    Occurred upgrading from 2020.1.11f1 to 2020.1.12f1, or from 2020.1.11f1 to 2020.1.13f1 as well

  6. rafal_b

    Nov 11, 2020 00:14

    Occurred upgrading from 2020.1.10f1 to 2020.1.12f1 as well

  7. Teea

    Nov 10, 2020 22:49

    Occurred upgrading from 2020.1.10f1 to 2020.1.12f1

  8. J0hnC0nn0r

    Nov 09, 2020 22:40

    Occured Upgrading from 2020.1.11f 1 to 2020.1.12f1 Previous guy obviously meant 2019.3 to 2019.1.14f1 since 2020.1.14f1 doesn't exsist.

  9. CodePoKE

    Nov 08, 2020 11:41

    Occurred upgrading from 2019.3 to 2020.1.14f1

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.