メインプロジェクトで使用するUnityのバージョンを上げたらエラーが発生したのでその解決方法をメモ。
[ 発生したエラー ]
FormatException: Input string was not in a correct format. System.Number.ThrowOverflowOrFormatException (System.Boolean overflow, System.String overflowResourceKey) (at <252f5a151e57406087568ebdeb88d5fe>:0) System.Number.ParseInt32 (System.ReadOnlySpan`1[T] value, System.Globalization.NumberStyles styles, System.Globalization.NumberFormatInfo info) (at <252f5a151e57406087568ebdeb88d5fe>:0) System.Int32.Parse (System.String s) (at <252f5a151e57406087568ebdeb88d5fe>:0) Burst.Compiler.IL.Jit.JitCompilerService.GetAssemblyPaths (System.String folders) (at <cd6e15731ab84616a776e8bda4f822ab>:0) Burst.Compiler.IL.Jit.JitCompilerService.EnsureLibraryCacheLoaded (System.String assemblyPaths) (at <cd6e15731ab84616a776e8bda4f822ab>:0) Burst.Compiler.IL.Jit.JitCompilerService.CompileInternal (System.String fullMethodName, System.String assemblyPaths, System.IntPtr userdata, Unity.Burst.NativeDumpFlags dumpFlags, System.IntPtr compilerCallbackPointer, System.IntPtr logCallBack, System.String compilerFlags) (at <cd6e15731ab84616a776e8bda4f822ab>:0) Unity.Burst.LowLevel.BurstCompilerService:GetDisassembly(MethodInfo, String) Unity.Burst.BurstCompiler:SendRawCommandToCompiler(String) Unity.Burst.CommandBuilder:SendToCompiler() Unity.Burst.BurstCompiler:SendCommandToCompiler(String, String) Unity.Burst.BurstCompiler:RequestSetProtocolVersion(Int32) Unity.Burst.Editor.BurstLoader:.cctor() UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes(Type[])
Assertion failed on expression: 'exception == SCRIPTING_NULL' UnityEngine.StackTraceUtility:ExtractStackTrace () Unity.Burst.BurstCompiler:SendRawCommandToCompiler (string) (at Library/PackageCache/com.unity.burst@1.7.4/Runtime/BurstCompiler.cs:737) Unity.Burst.BurstCompiler/CommandBuilder:SendToCompiler () (at Library/PackageCache/com.unity.burst@1.7.4/Runtime/BurstCompiler.cs:96) Unity.Burst.BurstCompiler:SendCommandToCompiler (string,string) (at Library/PackageCache/com.unity.burst@1.7.4/Runtime/BurstCompiler.cs:751) Unity.Burst.BurstCompiler:RequestSetProtocolVersion (int) (at Library/PackageCache/com.unity.burst@1.7.4/Runtime/BurstCompiler.cs:618) Unity.Burst.Editor.BurstLoader:.cctor () (at Library/PackageCache/com.unity.burst@1.7.4/Runtime/Editor/BurstLoader.cs:207) UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes (System.Type[])
[ 解決方法 ]
プロジェクトフォルダが名前に特殊文字や全角文字を含むフォルダ内に存在すると、このエラーが発生するようです。僕はプロジェクトフォルダをデスクトップに移動させることで解決できました。