Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question RenderPipelines.Core.Runtime failed to load in external dll

Discussion in 'Scripting' started by RevvisLtd, Mar 24, 2023.

  1. RevvisLtd

    RevvisLtd

    Joined:
    Nov 20, 2014
    Posts:
    5
    Hey guys,
    since upgrading to Unity 2020.3.46 i am getting a recurring error for external dlls that we created for using our code in two projects. These libraries contain references to self created nuget-packages (easiest way for providing code build options on a remote server) to hdrp/renderpipeline packages (ripped out from Library\ScriptAssemblies of the same project and uploaded to a private nuget package server). While importing if get the following error, but i am still able to use the code (test changes). I checked for the output file, but unfortunately it was completly empty (0B). I tried stuff like reinstalling the nuget package as also reinstalling the unity package. I also tripple checked if the file is still in the ScriptAssemblies folder. Is there any way for further debugging and solving this issue?

    Thanks in advance,



    Code (CSharp):
    1. Unable to update following assemblies:Assets/Internal/Plugins/Core/externalLib.dll (Name = externalLib, Error = 131) (Output: C:\Users\user\AppData\Local\Temp\tmp38b76ecb.tmp)
    2. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'Unity.RenderPipelines.Core.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
    3.   at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, Mono.Cecil.ReaderParameters parameters) [0x00105] in <a6860a9f6366437387ebdc1f225b7fd4>:0
    4.   at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name) [0x00007] in <a6860a9f6366437387ebdc1f225b7fd4>:0
    5.   at Mono.Cecil.DefaultAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name) [0x0001d] in <a6860a9f6366437387ebdc1f225b7fd4>:0
    6.   at Mono.Cecil.MetadataResolver.Resolve (Mono.Cecil.TypeReference type) [0x00038] in <a6860a9f6366437387ebdc1f225b7fd4>:0
    7.   at Mono.Cecil.ModuleDefinition.Resolve (Mono.Cecil.TypeReference type) [0x00006] in <a6860a9f6366437387ebdc1f225b7fd4>:0
    8.   at Mono.Cecil.TypeReference.Resolve () [0x00006] in <a6860a9f6366437387ebdc1f225b7fd4>:0
    9.   at Mono.Cecil.Mixin.CheckedResolve (Mono.Cecil.TypeReference self) [0x00000] in <a6860a9f6366437387ebdc1f225b7fd4>:0
    10.   at Mono.Cecil.SignatureReader.ReadCustomAttributeEnum (Mono.Cecil.TypeReference enum_type) [0x00000] in <a6860a9f6366437387ebdc1f225b7fd4>:0
    11.   at Mono.Cecil.SignatureReader.ReadCustomAttributeElementValue (Mono.Cecil.TypeReference type) [0x0002f] in <a6860a9f6366437387ebdc1f225b7fd4>:0
    12.   at Mono.Cecil.SignatureReader.ReadCustomAttributeElement (Mono.Cecil.TypeReference type) [0x00015] in <a6860a9f6366437387ebdc1f225b7fd4>:0
    13.   at Mono.Cecil.SignatureReader.ReadCustomAttributeFixedArgument (Mono.Cecil.TypeReference type) [0x00015] in <a6860a9f6366437387ebdc1f225b7fd4>:0
    14.   at Mono.Cecil.SignatureReader.ReadCustomAttributeConstructorArguments (Mono.Cecil.CustomAttribute attribute, Mono.Collections.Generic.Collection`1[T] parameters) [0x0002e] in <a6860a9f6366437387ebdc1f225b7fd4>:0
    15.   at Mono.Cecil.MetadataReader.ReadCustomAttributeSignature (Mono.Cecil.CustomAttribute attribute) [0x0003c] in <a6860a9f6366437387ebdc1f225b7fd4>:0
    16.   at Mono.Cecil.CustomAttribute.<Resolve>b__35_0 (Mono.Cecil.CustomAttribute attribute, Mono.Cecil.MetadataReader reader) [0x00000] in <a6860a9f6366437387ebdc1f225b7fd4>:0
    17.   at Mono.Cecil.ModuleDefinition.Read[TItem,TRet] (TItem item, System.Func`3[T1,T2,TResult] read) [0x00029] in <a6860a9f6366437387ebdc1f225b7fd4>:0
    18.   at Mono.Cecil.CustomAttribute.Resolve () [0x00037] in <a6860a9f6366437387ebdc1f225b7fd4>:0
    19.   at Mono.Cecil.CustomAttribute.get_ConstructorArguments () [0x00000] in <a6860a9f6366437387ebdc1f225b7fd4>:0
    20.   at AssemblyUpdater.Steps.MoveToNamespace.Visit (Mono.Cecil.CustomAttribute customAttribute, Unity.Cecil.Visitor.Context context) [0x000d3] in <dc1ed5fef08f4581b850b43cf472d4f2>:0
    21.   at Unity.Cecil.Visitor.Visitor.Visit (Mono.Cecil.TypeDefinition typeDefinition, Unity.Cecil.Visitor.Context context) [0x00042] in <dec00afbc7bd4a9e8043c6e53876bf42>:0
    22.   at Unity.Cecil.Visitor.Visitor.Visit (Mono.Cecil.ModuleDefinition moduleDefinition, Unity.Cecil.Visitor.Context context) [0x00021] in <dec00afbc7bd4a9e8043c6e53876bf42>:0
    23.   at Unity.Cecil.Visitor.Visitor.Visit (Mono.Cecil.AssemblyDefinition assemblyDefinition, Unity.Cecil.Visitor.Context context) [0x00021] in <dec00afbc7bd4a9e8043c6e53876bf42>:0
    24.   at AssemblyUpdater.Steps.AssemblyUpdaterStepBase.Visit (Mono.Cecil.AssemblyDefinition assemblyDefinition, Unity.Cecil.Visitor.Context context) [0x00001] in <dc1ed5fef08f4581b850b43cf472d4f2>:0
    25.   at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
    26.   at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <695d1cc93cca45069c528c15c9fdd749>:0
    27.    --- End of inner exception stack trace ---
    28.   at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <695d1cc93cca45069c528c15c9fdd749>:0
    29.   at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
    30.   at Unity.Cecil.Visitor.Visitor.Visit[T] (T node, Unity.Cecil.Visitor.Context context) [0x00037] in <dec00afbc7bd4a9e8043c6e53876bf42>:0
    31.   at Unity.Cecil.Visitor.Extensions.DoAccept[T] (T definition, Unity.Cecil.Visitor.Visitor visitor) [0x0001d] in <dec00afbc7bd4a9e8043c6e53876bf42>:0
    32.   at Unity.Cecil.Visitor.Extensions.Accept (Mono.Cecil.AssemblyDefinition assemblyDefinition, Unity.Cecil.Visitor.Visitor visitor) [0x00001] in <dec00afbc7bd4a9e8043c6e53876bf42>:0
    33.   at AssemblyUpdater.Steps.AssemblyUpdaterStepBase.Apply (AssemblyUpdater.Core.AssemblyUpdaterContext context) [0x00013] in <dc1ed5fef08f4581b850b43cf472d4f2>:0
    34.   at AssemblyUpdater.Core.AssemblyUpdaterPipeline.RunUpdateRound (AssemblyUpdater.Core.AssemblyUpdaterContext context) [0x00034] in <dc1ed5fef08f4581b850b43cf472d4f2>:0
    35.   at AssemblyUpdater.Core.AssemblyUpdaterPipeline.Run (AssemblyUpdater.Core.AssemblyUpdaterContext context) [0x0000a] in <dc1ed5fef08f4581b850b43cf472d4f2>:0
    36.   at AssemblyUpdater.Application.Program.UpdateAssembly (AssemblyUpdater.Application.AssemblyOptions config, AssemblyUpdater.Core.AssemblyUpdaterContext context) [0x00026] in <dc1ed5fef08f4581b850b43cf472d4f2>:0
    37.   at AssemblyUpdater.Application.Program+<>c__DisplayClass0_0.<Main>b__1 (AssemblyUpdater.Application.UpdateOptions o) [0x0004c] in <dc1ed5fef08f4581b850b43cf472d4f2>:0
    38.   at CommandLine.ParserResultExtensions.WithParsed[T] (CommandLine.ParserResult`1[T] result, System.Action`1[T] action) [0x0001e] in <5f6458f0234f43a48c09047109c24684>:0
    39.   at AssemblyUpdater.Application.Program.Main (System.String[] args) [0x0004c] in <dc1ed5fef08f4581b850b43cf472d4f2>:0
    40. Following assemblies were successfully updated but due to the failed ones above they were ignored (not copied to the destination folder):Assets/Internal/Plugins/Core/Editor/externalLibEditor.dll    (Result = 0) (Output: C:\Users\user\AppData\Local\Temp\tmp1deb48bf.tmp)
    41. 0x00007ff69d4e9b9c (Unity) StackWalker::GetCurrentCallstack
    42. 0x00007ff69d4f1089 (Unity) StackWalker::ShowCallstack
    43. 0x00007ff69e28c1dc (Unity) GetStacktrace
    44. 0x00007ff69ed0e157 (Unity) DebugStringToFile
    45. 0x00007ff69d58ee9a (Unity) DebugLogHandler_CUSTOM_Internal_Log
    46. 0x00000188c83ea33b (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
    47. 0x00000188c83ea28b (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    48. 0x00000189336cf351 (Mono JIT Code) UnityEngine.Logger:LogFormat (UnityEngine.LogType,string,object[])
    49. 0x00000189336cf29a (Mono JIT Code) UnityEngine.Debug:LogErrorFormat (string,object[])
    50. 0x00000189336cf243 (Mono JIT Code) UnityEditor.Scripting.APIUpdaterLogger:WriteErrorToConsole (string,object[])
    51. 0x00000189336cdc23 (Mono JIT Code) UnityEditorInternal.APIUpdating.APIUpdaterManager:HandleAssemblyUpdaterErrors (System.Collections.Generic.IList`1<UnityEditorInternal.APIUpdating.AssemblyUpdaterUpdateTask>)
    52. 0x00000189336c55c3 (Mono JIT Code) UnityEditorInternal.APIUpdating.APIUpdaterManager:UpdateAssemblies ()
    53. 0x0000018913044113 (Mono JIT Code) UnityEditorInternal.APIUpdating.APIUpdaterManager:ProcessImportedAssemblies (string[])
    54. 0x00000189337139c0 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_object (object,intptr,intptr,intptr)
    55. 0x00007ffcfa0400e0 (mono-2.0-bdwgc) [mini-runtime.c:2849] mono_jit_runtime_invoke
    56. 0x00007ffcf9fc2ac2 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke
    57. 0x00007ffcf9fcbb1f (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke
    58. 0x00007ff69d42e4d4 (Unity) scripting_method_invoke
    59. 0x00007ff69d4295d1 (Unity) ScriptingInvocation::Invoke
    60. 0x00007ff69d423385 (Unity) ScriptingInvocation::Invoke<void>
    61. 0x00007ff69c6f5363 (Unity) Scripting::UnityEditorInternal::APIUpdating::APIUpdaterManagerProxy::ProcessImportedAssemblies
    62. 0x00007ff69e14804e (Unity) APIUpdaterManager::UpdateAssemblies
    63. 0x00007ff69e336c2f (Unity) UpdateAndCompileScripts
    64. 0x00007ff69e37d13d (Unity) CompileScriptsV2
    65. 0x00007ff69e38ea04 (Unity) ImportAndPostprocessOutOfDateAssets
    66. 0x00007ff69e39ada9 (Unity) RefreshInternalV2
    67. 0x00007ff69e3a3ff6 (Unity) StopAssetImportingV2
    68. 0x00007ff69e8559a6 (Unity) AssetDatabase_CUSTOM_StopAssetEditing
    69. 0x000001891302df91 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.AssetDatabase:StopAssetEditing ()
    70. 0x000001891302a42b (Mono JIT Code) UnityEditor.AssetImporters.AssetImporterEditor:ImportAssets (System.Collections.Generic.IEnumerable`1<string>)
    71. 0x000001891302768b (Mono JIT Code) UnityEditor.AssetImporters.AssetImporterEditor:ApplyAndImport ()
    72. 0x0000018912fad26b (Mono JIT Code) UnityEditor.AssetImporters.AssetImporterEditor:ApplyButton ()
    73. 0x0000018912faca3b (Mono JIT Code) UnityEditor.AssetImporters.AssetImporterEditor:OnApplyRevertGUI ()
    74. 0x0000018912fac447 (Mono JIT Code) UnityEditor.AssetImporters.AssetImporterEditor:ApplyRevertGUI ()
    75. 0x0000018912f9f8ab (Mono JIT Code) UnityEditor.PluginImporterInspector:OnInspectorGUI ()
    76. 0x0000018912f9d38c (Mono JIT Code) UnityEditor.UIElements.InspectorElement/<>c__DisplayClass59_0:<CreateIMGUIInspectorFromEditor>b__0 ()
    77. 0x00000189129590f8 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
    78. 0x000001891295812b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
    79. 0x00000189129d259b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
    80. 0x00000189129d2403 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
    81. 0x0000018912fb9f1b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
    82. 0x0000018912fb7333 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
    83. 0x00000188ea56b5ab (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleEvent (UnityEngine.UIElements.EventBase)
    84. 0x00000188ea5590b8 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
    85. 0x0000018912fb4aa3 (Mono JIT Code) UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    86. 0x00000188ea55736e (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
    87. 0x00000188ea556e63 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    88. 0x00000188ea55c7c3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEventQueue ()
    89. 0x00000188ea55add3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()
    90. 0x00000188ea55ad1b (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:Dispose ()
    91. 0x00000188ea5570f3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
    92. 0x00000188ea556863 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
    93. 0x00000188ea5566db (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
    94. 0x000001891292626b (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
    95. 0x0000018912925c5b (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
    96. 0x0000018912925a7f (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
    97. 0x000001891292599b (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
    98. 0x000001891292581d (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    99. 0x00000189129258ce (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
    100. 0x00007ffcfa0400e0 (mono-2.0-bdwgc) [mini-runtime.c:2849] mono_jit_runtime_invoke
    101. 0x00007ffcf9fc2ac2 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke
    102. 0x00007ffcf9fcbb1f (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke
    103. 0x00007ff69d42e4d4 (Unity) scripting_method_invoke
    104. 0x00007ff69d4295d1 (Unity) ScriptingInvocation::Invoke
    105. 0x00007ff69d423385 (Unity) ScriptingInvocation::Invoke<void>
    106. 0x00007ff69c6c10ba (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
    107. 0x00007ff69dd53b98 (Unity) GUIView::ProcessRetainedMode
    108. 0x00007ff69e2c3c92 (Unity) GUIView::OnInputEvent
    109. 0x00007ff69dd53a88 (Unity) GUIView::ProcessInputEvent
    110. 0x00007ff69e2c4f15 (Unity) GUIView::ProcessEventMessages
    111. 0x00007ff69e2be96d (Unity) GUIView::GUIViewWndProc
    112. 0x00007ffd844ae7e8 (USER32) CallWindowProcW
    113. 0x00007ffd844ae229 (USER32) DispatchMessageW
    114. 0x00007ff69e292546 (Unity) MainMessageLoop
    115. 0x00007ff69e296841 (Unity) WinMain
    116. 0x00007ff69f9d149e (Unity) __scrt_common_main_seh
    117. 0x00007ffd85037614 (KERNEL32) BaseThreadInitThunk
    118. 0x00007ffd853026a1 (ntdll) RtlUserThreadStart
    Edit:
    The HDRP version we were using before was 10.9.0, now it is at 10.10.1
     
    Last edited: Mar 24, 2023
  2. RevvisLtd

    RevvisLtd

    Joined:
    Nov 20, 2014
    Posts:
    5
    Is there maybe any better way for providing the hdrp packages to a dll project?