Search Issue Tracker

Fixed in 2019.2

Fixed in 2018.3, 2019.1

Votes

0

Found in

2018.2.7f1

2018.3.0a1

Issue ID

1099642

Regression

No

PhysicsQuery2D::ColliderCastAll crash when calling Rigidbody2D.Cast

Physics2D

-

Steps to reproduce:
1. Open User-supplied project
2. Play the Scene "SampleScene"
3. Press 'D"

Expected: no crash
Actual: crash

Reproduced in: 2018.3.0a1, 2018.3.1f1, 2019.1.0a12
Not reproduced in: 2017.4.17f1*

Notes:
The crash seems to be related to the line '80' on "PhysicsObject.cs" script, where User is trying to ground the Player
*Could not test due to definition errors

Full stack trace:
0x0000000141D3519B (Unity) PhysicsQuery2D::ColliderCastAll
0x0000000141D87F15 (Unity) Rigidbody2D::CastFiltered_Binding
0x000000014188E264 (Unity) Rigidbody2D_CUSTOM_CastFiltered_Internal_Injected
0x0000000056E0DF8B (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Rigidbody2D:CastFiltered_Internal_Injected (UnityEngine.Vector2&,single,UnityEngine.ContactFilter2D&,UnityEngine.RaycastHit2D[])
0x0000000056E0DDD8 (Mono JIT Code) UnityEngine.Rigidbody2D:CastFiltered_Internal (UnityEngine.Vector2,single,UnityEngine.ContactFilter2D,UnityEngine.RaycastHit2D[])
0x0000000056E0DCF4 (Mono JIT Code) [C:\buildslave\unity\build\Modules\Physics2D\ScriptBindings\Physics2D.bindings.cs:2641] UnityEngine.Rigidbody2D:Cast (UnityEngine.Vector2,UnityEngine.ContactFilter2D,UnityEngine.RaycastHit2D[],single)
0x0000000056E0C5B6 (Mono JIT Code) [E:\Downloads\case_1099642-Mario_1-1\Assets\Scripts\PhysicsObject.cs:80] PhysicsObject:Movement (UnityEngine.Vector2,bool)
0x0000000056E0BE65 (Mono JIT Code) [E:\Downloads\case_1099642-Mario_1-1\Assets\Scripts\PhysicsObject.cs:66] PhysicsObject:FixedUpdate ()
0x0000000050677192 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007FFEF94C671B (mono) [c:\buildslave\mono\build\mono\mini\mini.c:4937] mono_jit_runtime_invoke
0x00007FFEF9418A71 (mono) [c:\buildslave\mono\build\mono\metadata\object.c:2623] mono_runtime_invoke
0x0000000140C0911A (Unity) scripting_method_invoke
0x0000000140C01470 (Unity) ScriptingInvocation::Invoke
0x0000000140BB77B8 (Unity) MonoBehaviour::CallMethodIfAvailable
0x0000000140BB7E94 (Unity) MonoBehaviour::CallUpdateMethod
0x00000001406EDBA9 (Unity) BaseBehaviourManager::CommonUpdate<FixedBehaviourManager>
0x00000001406F3B16 (Unity) FixedBehaviourManager::Update
0x000000014096C4CC (Unity) `InitPlayerLoopCallbacks'::`2'::FixedUpdateScriptRunBehaviourFixedUpdateRegistrator::Forward
0x000000014096BAE7 (Unity) ExecutePlayerLoop
0x000000014096BB96 (Unity) ExecutePlayerLoop
0x000000014096E37C (Unity) PlayerLoop
0x000000014145128A (Unity) PlayerLoopController::UpdateScene
0x000000014144F4A3 (Unity) Application::TickTimer
0x00000001415EEC95 (Unity) MainMessageLoop
0x00000001415F1088 (Unity) WinMain
0x0000000142436D1A (Unity) __scrt_common_main_seh
0x00007FFF63EA3034 (KERNEL32) BaseThreadInitThunk
0x00007FFF66263691 (ntdll) RtlUserThreadStart

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.