Search Issue Tracker

Active

Under Consideration for 2021.3.X, 2022.3.X, 6000.0.X

Votes

0

Found in

2021.3.40f1

2022.3.35f1

6000.0.8f1

7000.0.0a1

Issue ID

UUM-74651

Regression

No

Crash on Object::GetCachedScriptingObject when entering Play Mode

--

-

Reproduction steps:
1. Open the attached “repro-project“
2. Open the “Assets/CrashKonijn/GOAP/Demos/Complex/Scenes/ComplexDemoScene.unity“ scene
3. Enter Play Mode
4. Observe the crash

Reproducible with: 2021.3.40f1, 2022.3.35f1, 6000.0.8f1

Reproduced on: Windows 10
Not reproducible on: No other environment tested

Notes:
1. Not reproducible when disabling the “ItemCollection“ GameObject in the Hierarchy window
2. Not reproducible in Player

First few lines of the stack trace:
0x00007FFAFD224315 (Unity) Object::GetCachedScriptingObject
0x00007FFAFDF30F02 (Unity) Scripting::ScriptingWrapperFor
0x00007FFAFD128E7E (Unity) Component_Get_Custom_PropGameObject
0x0000026DFFAE412A (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Component:get_gameObject_Injected (intptr)
0x0000026DFFAE3EEB (Mono JIT Code) UnityEngine.Component:get_gameObject ()
0x0000026E8264100B (Mono JIT Code) Demos.Complex.Classes.Items.Apple:Demos.Complex.Interfaces.IHoldable.get_gameObject ()

Comments (1)

  1. CrashKonijn

    Jul 02, 2024 14:19

    Hi there!

    This does seem like a unity issue.

    Are you getting this on a clean 'install' of my package? Any specific version you're using?
    (I can't see the attached files).

    Thanks!

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.