Unexpected exception System.IO.EndOfStreamException: Unable to read beyond the end of the stream.

Hey,

I get this error massage every time I start the editor or while compiling of my scripts.
Does anyone know, what that means?

Unexpected exception System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
  at System.IO.BinaryReader.FillBuffer (System.Int32 numBytes) [0x0007a] in :0 
  at System.IO.BinaryReader.ReadInt32 () [0x00026] in :0 
  at Burst.Compiler.IL.Hashing.Storage.ILHashingResultRuntime.GetHeader (System.String hashCachePath) [0x0000e] in <685f0c65f2a448a78ba2734aa17d6be3>:0 
  at Burst.Compiler.IL.Hashing.CacheRuntime.HashCacheLoader.CreateHashingResult (System.String assemblyFilePath) [0x0003d] in <685f0c65f2a448a78ba2734aa17d6be3>:0 
  at Burst.Compiler.IL.Hashing.CacheRuntime.AssemblyState..ctor (Burst.Compiler.IL.Hashing.CacheRuntime.HashCacheAssemblyStore+LoadHashingResultDelegate loadHashingResultCallback, Burst.Compiler.IL.Hashing.CacheRuntime.HashCacheAssemblyStore+GetStringWriterDelegate getStringWriterCallback, Mono.Cecil.AssemblyNameReference assemblyName, System.String filePath, Mono.Cecil.AssemblyDefinition assemblyDefinition) [0x0000d] in <685f0c65f2a448a78ba2734aa17d6be3>:0 
  at Burst.Compiler.IL.Hashing.CacheRuntime.HashCacheAssemblyStore.GetAssemblyState (System.String assemblyName, zzzUnity.Burst.CodeGen.AssemblyLoader assemblyLoader) [0x0005d] in <685f0c65f2a448a78ba2734aa17d6be3>:0 
  at Burst.Compiler.IL.Hashing.CacheRuntime.LocalHashCacheAssemblyStore.GetAssemblyState (System.String assemblyName) [0x00000] in <685f0c65f2a448a78ba2734aa17d6be3>:0 
  at Burst.Compiler.IL.Hashing.CacheRuntime.Util.TypeReferenceExtensions.GetAssemblyState (Mono.Cecil.TypeReference typeReference, Burst.Compiler.IL.Hashing.CacheRuntime.LocalHashCacheAssemblyStore assemblyStore) [0x00011] in <685f0c65f2a448a78ba2734aa17d6be3>:0 
  at Burst.Compiler.IL.Hashing.CacheRuntime.Util.TypeReferenceExtensions.ToILType (Mono.Cecil.TypeReference typeReference, Burst.Compiler.IL.Hashing.CacheRuntime.LocalHashCacheAssemblyStore assemblyStore) [0x001db] in <685f0c65f2a448a78ba2734aa17d6be3>:0 
  at Burst.Compiler.IL.Hashing.CacheRuntime.Util.MethodReferenceExtensions.ToILTypes (Mono.Collections.Generic.Collection`1[T] types, Burst.Compiler.IL.Hashing.CacheRuntime.LocalHashCacheAssemblyStore assemblyStore) [0x0001d] in <685f0c65f2a448a78ba2734aa17d6be3>:0 
  at Burst.Compiler.IL.Hashing.CacheRuntime.Util.MethodReferenceExtensions.CreateGenericContext (Mono.Cecil.MethodReference methodReference, Burst.Compiler.IL.Hashing.CacheRuntime.LocalHashCacheAssemblyStore assemblyStore) [0x00044] in <685f0c65f2a448a78ba2734aa17d6be3>:0 
  at Burst.Compiler.IL.Hashing.CacheRuntime.ILFinalHashCalculator.GetHashImpl () [0x000ad] in <685f0c65f2a448a78ba2734aa17d6be3>:0 
  at Burst.Compiler.IL.Hashing.CacheRuntime.ILFinalHashCalculator.GetHash (Mono.Cecil.MethodReference[] methodReferences, Burst.Compiler.IL.Hashing.CacheRuntime.HashCacheAssemblyStore assemblyStore, zzzUnity.Burst.CodeGen.AssemblyLoader assemblyLoader, Burst.Compiler.IL.NativeCompilerOptions options, System.Action`2[T1,T2] onVisitItem) [0x0000c] in <685f0c65f2a448a78ba2734aa17d6be3>:0 
  at Burst.Compiler.IL.NativeCompiler.ComputeHash () [0x0004e] in <685f0c65f2a448a78ba2734aa17d6be3>:0 
  at Burst.Compiler.IL.Jit.JitCompiler.CompileMethodInternal (Burst.Compiler.IL.Jit.JitResult result, System.Collections.Generic.List`1[T] methodsToCompile, Burst.Compiler.IL.Jit.JitOptions jitOptions) [0x0017e] in <685f0c65f2a448a78ba2734aa17d6be3>:0 
  at Burst.Compiler.IL.Jit.JitCompiler.CompileMethods (Burst.Compiler.IL.Jit.JitMethodGroupRequest& request, Burst.Compiler.IL.Jit.JitCompilationRequestType requestType) [0x00209] in <685f0c65f2a448a78ba2734aa17d6be3>:0 
  at Burst.Compiler.IL.Jit.JitCompiler.CompileMethod (Burst.Compiler.IL.Jit.MethodReferenceWithMethodRefString method, Burst.Compiler.IL.Jit.JitOptions jitOptions, Burst.Compiler.IL.Jit.JitCompilationRequestType requestType) [0x00023] in <685f0c65f2a448a78ba2734aa17d6be3>:0 
  at Burst.Compiler.IL.Jit.JitCompilerService+CompilerThreadContext.Compile (Burst.Compiler.IL.Jit.JitCompilerService+CompileJob job, Burst.Compiler.IL.Jit.JitCompilationRequestType requestType) [0x00491] in <685f0c65f2a448a78ba2734aa17d6be3>:0 

While compiling job: System.Void UnityEngine.Jobs.IJobParallelForTransformExtensions/TransformParallelForLoopStruct`1::Execute(T&,System.IntPtr,System.IntPtr,Unity.Jobs.LowLevel.Unsafe.JobRanges&,System.Int32)
at :line 0

For anyone else that comes up with the issue, the solution @Matt-Cranktrain provides in this thread (the link from @lliqNikushev 's reply) worked for me.

Open your project root in your File Explorer, go to Library, and delete “BurstCache”. If that doesn’t work, try also deleting your “PackageCache”.

In other words, delete …/[ProjectRoot]/Library/BurstCache and …/[ProjectRoot]/Library/PackageCache.

Delete the Package Cache / Burst Cache and reopen project fixed it

See
https://forum.unity.com/threads/all-my-jobs-suddenly-refuse-to-compile-with-system-io-endofstreamexception.1227273/