• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
Question by ErrorMessage404LOL · Feb 21, 2022 at 10:43 AM · unityeditorerror message

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


Comment
deus0
IliqNikushev

People who like this

2 Show 0
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

  • Sort: 
avatar image

Answer by IliqNikushev · Mar 02, 2022 at 06:48 PM

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/

Comment

People who like this

0 Show 0 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by siblount_unity · Mar 18 at 10:17 AM

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.

Comment

People who like this

0 Show 0 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta on June 13. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Follow this Question

Answers Answers and Comments

142 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

unity unable to convert to dex format, need help fast. 0 Answers

unloading broken assembly unityeditor.wsa.extension.dll 1 Answer

Hi! Unity Community i am new to Unity Game Development and I am having this error,Hi! I am new to Unity Game Development and i am facing this error. 0 Answers

Popup showing "The required operation requires elevation" - Roslyn 1 Answer

error CS1704: An assembly with the same simple name 'Editor' has already been imported. Try removing one of the references or sign them to enable side-by-side. 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges