Search Unity

Bug Strange error: 'Player' or 'Manager' are null!

Discussion in 'Editor & General Support' started by Zer0_Gravity_Games, Jun 16, 2020.

  1. Zer0_Gravity_Games

    Zer0_Gravity_Games

    Joined:
    Oct 9, 2012
    Posts:
    5
    Hi there,
    I'm getting a very strange error in my game that doesn't seems to have happenned to anybody.

    It happens randomly while playing.

    Here is the log:

    Code (CSharp):
    1.     'Player' or 'Manager' are null!
    2.     0x000000014145F5F8 (Unity) StackWalker::GetCurrentCallstack
    3.     0x0000000141465AA6 (Unity) StackWalker::ShowCallstack
    4.     0x0000000141347FEB (Unity) GetStacktrace
    5.     0x000000014014B768 (Unity) DebugStringToFile
    6.     0x00000001417D496D (Unity) DebugLogHandler_CUSTOM_Internal_Log
    7.     0x000000003ED13DEB (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,string,UnityEngine.Object)
    8.     0x000000003ED13CD4 (Mono JIT Code) [DebugLogHandler.cs:9] UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    9.     0x000000004E2A025A (Mono JIT Code) [Logger.cs:60] UnityEngine.Logger:Log (UnityEngine.LogType,object)
    10.     0x0000000086159203 (Mono JIT Code) [Debug.bindings.cs:117] UnityEngine.Debug:LogError (object)
    11.     0x0000000071A2CB90 (Mono JIT Code) Crosstales.Radio.SimplePlayer:OnEnable ()
    12.     0x0000000000768382 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
    13.     0x00007FFF310C6783 (mono) [mini.c:4937] mono_jit_runtime_invoke
    14.     0x00007FFF31018AD9 (mono) [object.c:2625] mono_runtime_invoke
    15.     0x0000000140C38BEA (Unity) scripting_method_invoke
    16.     0x0000000140C28DFA (Unity) ScriptingInvocation::Invoke
    17.     0x0000000140BF03C7 (Unity) MonoBehaviour::CallMethodIfAvailable
    18.     0x0000000140BEEF5B (Unity) MonoBehaviour::AddToManager
    19.     0x0000000140726D84 (Unity) Behaviour::SetEnabled
    20.     0x00000001417B4CEE (Unity) Behaviour_Set_Custom_PropEnabled
    21.     0x000000003EBE56D5 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Behaviour:set_enabled (bool)
    22.     0x0000000071A2B884 (Mono JIT Code) [CarRadioPlayer.cs:83] CarRadioPlayer:Start ()
    23.     0x0000000000768382 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
    24.     0x00007FFF310C6783 (mono) [mini.c:4937] mono_jit_runtime_invoke
    25.     0x00007FFF31018AD9 (mono) [object.c:2625] mono_runtime_invoke
    26.     0x0000000140C38BEA (Unity) scripting_method_invoke
    27.     0x0000000140C28DFA (Unity) ScriptingInvocation::Invoke
    28.     0x0000000140BF7C4E (Unity) MonoBehaviour::InvokeMethodOrCoroutineChecked
    29.     0x0000000140BF7DE8 (Unity) MonoBehaviour::InvokeMethodOrCoroutineChecked
    30.     0x0000000140BFC80D (Unity) MonoBehaviour::Start
    31.     0x0000000140BF2D49 (Unity) MonoBehaviour::DelayedStartCall
    32.     0x0000000140727040 (Unity) DelayedCallManager::Update
    33.     0x0000000140990ABC (Unity) `InitPlayerLoopCallbacks'::`2'::UpdateScriptRunDelayedDynamicFrameRateRegistrator::Forward
    34.     0x000000014098F697 (Unity) ExecutePlayerLoop
    35.     0x000000014098F763 (Unity) ExecutePlayerLoop
    36.     0x0000000140991DA1 (Unity) PlayerLoop
    37.     0x00000001413873C0 (Unity) PlayerLoopController::UpdateScene
    38.     0x000000014138538C (Unity) Application::TickTimer
    39.     0x00000001414E2C93 (Unity) MainMessageLoop
    40.     0x00000001414E497D (Unity) WinMain
    41.     0x00000001424E9ABA (Unity) __scrt_common_main_seh
    42.     0x00007FFF72F07BD4 (KERNEL32) BaseThreadInitThunk
    43.     0x00007FFF743CCE51 (ntdll) RtlUserThreadStart
    After that, everything seems to be broken with tons of MissingReferenceException errors.

    Does anybody knows what is it and why I'm getting this issue?

    Thank you very much!
     
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,909
    Looks like a problem in your classes:

    CarRadioPlayer.Start() and/or Crosstales.Radio.SimplePlayer.OnEnable()