I am trying to get unity render pipeline for my 2d game, but every time I try to download it, I get this error. I will not include the file path included in the error, because it is kinda risky.
Here is the error.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'UnityEditor.U2D.Common.BurstedBlit_00000005$BurstDirectCall' threw an exception. ---> System.InvalidOperationException: Burst failed to compile the function pointer Void BurstedBlit(UnityEngine.Color32*, Unity.Mathematics.int4 ByRef, Unity.Mathematics.int4 ByRef, Int32, Int32, UnityEngine.Color32*)`
at Unity.Burst.BurstCompiler.Compile (System.Object delegateObj, System.Reflection.MethodInfo methodInfo, System.Boolean isFunctionPointer, System.Boolean isILPostProcessing) [0x0015a] in C:[My File Path To The Folder]\Library\PackageCache\com.unity.burst@1.8.2\Runtime\BurstCompiler.cs:470
at Unity.Burst.BurstCompiler.CompileILPPMethod2 (System.RuntimeMethodHandle burstMethodHandle) [0x0003a] in C:[My File Path To The Folder]\Library\PackageCache\com.unity.burst@1.8.2\Runtime\BurstCompiler.cs:231
at UnityEditor.U2D.Common.ImagePacker+BurstedBlit_00000005$BurstDirectCall.Constructor () [0x00000] in <792b3abfb52a4762ab29bca4b3f218d0>:0
at UnityEditor.U2D.Common.ImagePacker+BurstedBlit_00000005$BurstDirectCall..cctor () [0x00000] in <792b3abfb52a4762ab29bca4b3f218d0>:0
--- End of inner exception stack trace ---
at $BurstDirectCallInitializer.Initialize () [0x00000] in <792b3abfb52a4762ab29bca4b3f218d0>:0
at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <75633565436c42f0a6426b33f0132ade>:0
--- End of inner exception stack trace ---
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00083] in <75633565436c42f0a6426b33f0132ade>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <75633565436c42f0a6426b33f0132ade>:0
at UnityEditor.EditorAssemblies.ProcessInitializeOnLoadMethodAttributes () [0x000a5] in <11d97693183d4a6bb35c29ae7882c66b>:0
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadMethodAttributes ()
When I seem to delete URP and restart the editor, everything is fine again?
I have tried asking AI what is happening here, and it says it has to do something with the burst compiler. I recall the burst version being up-to-date though. I am on Burst version 1.6.6, and it shows a green R when I expand it.