Search Issue Tracker

Fixed in 2020.2

Fixed in 2019.4, 2020.1

Votes

0

Found in

2018.4

2020.2

2020.2.0a11

Issue ID

1250256

Regression

No

Editor crashes when passing null to Profiler.GetRuntimeMemorySizeLong()

Profiling

-

Reproduction steps:
1. Open the attached "case_1250256.zip" project
2. Load "Test" scene
3. Enter Play mode
-- Observe the crash

Reproducible with: 2018.4.23f1, 2019.3.16f1, 2019.4.0f1, 2020.1.0b11, 2020.2.0a13

First lines of the stack trace:
0x00000001417EF894 (Unity) Profiler_CUSTOM_GetRuntimeMemorySizeLong
0x000000003FF0F21E (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Profiling.Profiler:GetRuntimeMemorySizeLong (UnityEngine.Object)
0x000000003FF0F0F3 (Mono JIT Code) [D:\Downloads\case_1250256\Assets\Test.cs:10] Test:Start ()
0x000000003FFA9CA8 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007FFC725BBE7B (mono-2.0-bdwgc) [c:\buildslave\mono\build\mono\mini\mini-runtime.c:2809] mono_jit_runtime_invoke
<...>

  1. Response avatar

    Resolution Note (fix version 2020.2):

    Fixed in: 2020.2.0a16

  2. Response avatar

    Resolution Note (fix version 2020.1):

    Fixed in: 2020.1.0f1

  3. Response avatar

    Resolution Note (fix version 2019.4):

    Fixed in: 2019.4.7f1

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.