Search Unity

The referenced script (AuthSpawnableObject) on this Behaviour is missing!

Discussion in 'Editor & General Support' started by AcademyOfFetishes, Apr 30, 2019.

  1. AcademyOfFetishes

    AcademyOfFetishes

    Joined:
    Nov 16, 2018
    Posts:
    219
    I was not getting this warning in 2018. All I did was upgrade, and now I get these warnings:

    Code (CSharp):
    1.  
    2. The referenced script (AuthSpawnableObject) on this Behaviour is missing!
    3. 0x00007FF69BFB93CC (Unity) StackWalker::GetCurrentCallstack
    4. 0x00007FF69BFBC881 (Unity) StackWalker::ShowCallstack
    5. 0x00007FF69A728695 (Unity) GetStacktrace
    6. 0x00007FF69C9D6C60 (Unity) DebugStringToFile
    7. 0x00007FF69BFA25AE (Unity) SerializableManagedRef::RebuildMonoInstance
    8. 0x00007FF69A6AB7AF (Unity) PersistentManager::ProduceObject
    9. 0x00007FF69A6A21FE (Unity) PersistentManager::CreateThreadActivationQueueEntry
    10. 0x00007FF69A6AB424 (Unity) PersistentManager::PreallocateObjectThreaded
    11. 0x00007FF69B2133C3 (Unity) ImmediatePtr<Unity::Component>::AssignObjectFromInstanceID
    12. 0x00007FF69B20D31D (Unity) StreamedBinaryRead::Transfer<ImmediatePtr<Unity::Component> >
    13. 0x00007FF69B20CB96 (Unity) StreamedBinaryRead::Transfer<dynamic_array<GameObject::ComponentPair,0> >
    14. 0x00007FF69B20FA34 (Unity) GameObject::Transfer<StreamedBinaryRead>
    15. 0x00007FF69B21E54F (Unity) GameObject::VirtualRedirectTransfer
    16. 0x00007FF69A6DBC46 (Unity) SerializedFile::ReadObject
    17. 0x00007FF69A6ABAA6 (Unity) PersistentManager::ReadAndActivateObjectThreaded
    18. 0x00007FF69A6ABF7F (Unity) PersistentManager::ReadObjectThreaded
    19. 0x00007FF69A6ABD80 (Unity) PersistentManager::ReadObject
    20. 0x00007FF69BECF231 (Unity) Resources_Bindings::LoadAll
    21. 0x00007FF69C0636DB (Unity) Resources_CUSTOM_LoadAll
    22. 0x0000019815EF7697 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Resources:LoadAll (string,System.Type)
    23. 0x0000019815EF7503 (Mono JIT Code) [Resources.bindings.cs:95] UnityEngine.Resources:LoadAll<T_REF> (string)
    24. 0x0000019815EF7363 (Mono JIT Code) [ScriptableObjectLoader.cs:13] ScriptableObjectLoader:.cctor ()
    25. 0x0000019816844085 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)
    26. 0x00007FFDE427BBCB (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke
    27. 0x00007FFDE4202252 (mono-2.0-bdwgc) [object.c:2919] do_runtime_invoke
    28. 0x00007FFDE420A91C (mono-2.0-bdwgc) [object.c:477] mono_runtime_class_init_full
    29. 0x00007FFDE42770ED (mono-2.0-bdwgc) [mini.c:4363] mono_jit_compile_method_inner
    30. 0x00007FFDE427B072 (mono-2.0-bdwgc) [mini-runtime.c:2133] mono_jit_compile_method_with_opt
    31. 0x00007FFDE4355406 (mono-2.0-bdwgc) [mini-trampolines.c:716] common_call_trampoline
    32. 0x00007FFDE4357424 (mono-2.0-bdwgc) [mini-trampolines.c:848] mono_magic_trampoline
    33. 0x000001986D7F03A3 ((<unknown>))
    34. 0x0000019815EF6B13 (Mono JIT Code) [NeedLoader.cs:20] NeedLoader:.ctor (System.Collections.Generic.List`1<string>)
    35. 0x0000019815EF5B3B (Mono JIT Code) [Repository.cs:25] Repository:Awake ()
    36. 0x00000198164D2B68 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
    37. 0x00007FFDE427BBCB (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke
    38. 0x00007FFDE4202252 (mono-2.0-bdwgc) [object.c:2919] do_runtime_invoke
    39. 0x00007FFDE420B25F (mono-2.0-bdwgc) [object.c:2966] mono_runtime_invoke
    40. 0x00007FF69BF4B036 (Unity) scripting_method_invoke
    41. 0x00007FF69BF45335 (Unity) ScriptingInvocation::Invoke
    42. 0x00007FF69BF455DE (Unity) ScriptingInvocation::InvokeChecked
    43. 0x00007FF69BF9FAF3 (Unity) SerializableManagedRef::CallMethod
    44. 0x00007FF69BF01944 (Unity) MonoBehaviour::CallAwake
    45. 0x00007FF69BEFF894 (Unity) MonoBehaviour::AddToManager
    46. 0x00007FF69BF00658 (Unity) MonoBehaviour::AwakeFromLoad
    47. 0x00007FF69A6FE2D5 (Unity) AwakeFromLoadQueue::InvokePersistentManagerAwake
    48. 0x00007FF69A6FEEC0 (Unity) AwakeFromLoadQueue::PersistentManagerAwakeFromLoad
    49. 0x00007FF69BA85F78 (Unity) LoadSceneOperation::CompleteAwakeSequence
    50. 0x00007FF69BA86CD5 (Unity) LoadSceneOperation::IntegrateMainThread
    51. 0x00007FF69BA8A3F5 (Unity) PreloadManager::UpdatePreloadingSingleStep
    52. 0x00007FF69BA8AA59 (Unity) PreloadManager::WaitForAllAsyncOperationsToComplete
    53. 0x00007FF69A20C1CB (Unity) EditorSceneManager::RestoreSceneBackups
    54. 0x00007FF69A761232 (Unity) PlayerLoopController::EnterPlayMode
    55. 0x00007FF69A7713A0 (Unity) PlayerLoopController::SetIsPlaying
    56. 0x00007FF69A7740B9 (Unity) Application::TickTimer
    57. 0x00007FF69AA33943 (Unity) MainMessageLoop
    58. 0x00007FF69AA3D347 (Unity) WinMain
    59. 0x00007FF69D36DD8E (Unity) __scrt_common_main_seh
    60. 0x00007FFE416F4034 (KERNEL32) BaseThreadInitThunk
    61. 0x00007FFE42493691 (ntdll) RtlUserThreadStart
    62.  
    Near the top of the stack trace shows my code: ScriptableObjectLoader.cs:13

    Here's what that code looks like:

    Code (CSharp):
    1. public static class ScriptableObjectLoader
    2. {
    3.     private static List<UpgradeData> allUpgradeData;
    4.  
    5.     static ScriptableObjectLoader()
    6.     {
    7.         allUpgradeData = Resources.LoadAll<UpgradeData>("").ToList();  //line 13
    8.     }
    What is causing this warning?
     
  2. AcademyOfFetishes

    AcademyOfFetishes

    Joined:
    Nov 16, 2018
    Posts:
    219
    I removed all the packages I wasn't using and this warning went away. I think it was caused by having HLAPI, but I'm not sure.
     
    a-t-hellboy likes this.
  3. a-t-hellboy

    a-t-hellboy

    Joined:
    Dec 6, 2013
    Posts:
    180
    I think they should fix it.
     
  4. Mytino

    Mytino

    Joined:
    Jan 28, 2019
    Posts:
    16
    Yeah, it's happening with HLAPI for me. Was looking for a solution, but can't find one. Hopefully it'll get fixed.

    Edit: I updated the package and it's fixed in HLAPI 1.0.4
     
    Last edited: Aug 23, 2019
    Orrib likes this.