• 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 t$$anonymous$$s error massage every time I start the editor or w$$anonymous$$le 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.Has$$anonymous$$ng.Storage.ILHas$$anonymous$$ngResultRuntime.GetHeader (System.String hashCachePath) [0x0000e] in <685f0c65f2a448a78ba2734aa17d6be3>:0 
   at Burst.Compiler.IL.Has$$anonymous$$ng.CacheRuntime.HashCacheLoader.CreateHas$$anonymous$$ngResult (System.String assemblyFilePath) [0x0003d] in <685f0c65f2a448a78ba2734aa17d6be3>:0 
   at Burst.Compiler.IL.Has$$anonymous$$ng.CacheRuntime.AssemblyState..ctor (Burst.Compiler.IL.Has$$anonymous$$ng.CacheRuntime.HashCacheAssemblyStore+LoadHas$$anonymous$$ngResultDelegate loadHas$$anonymous$$ngResultCallback, Burst.Compiler.IL.Has$$anonymous$$ng.CacheRuntime.HashCacheAssemblyStore+GetStringWriterDelegate getStringWriterCallback, Mono.Cecil.AssemblyNameReference assemblyName, System.String filePath, Mono.Cecil.AssemblyDefinition assemblyDefinition) [0x0000d] in <685f0c65f2a448a78ba2734aa17d6be3>:0 
   at Burst.Compiler.IL.Has$$anonymous$$ng.CacheRuntime.HashCacheAssemblyStore.GetAssemblyState (System.String assemblyName, zzzUnity.Burst.CodeGen.AssemblyLoader assemblyLoader) [0x0005d] in <685f0c65f2a448a78ba2734aa17d6be3>:0 
   at Burst.Compiler.IL.Has$$anonymous$$ng.CacheRuntime.LocalHashCacheAssemblyStore.GetAssemblyState (System.String assemblyName) [0x00000] in <685f0c65f2a448a78ba2734aa17d6be3>:0 
   at Burst.Compiler.IL.Has$$anonymous$$ng.CacheRuntime.Util.TypeReferenceExtensions.GetAssemblyState (Mono.Cecil.TypeReference typeReference, Burst.Compiler.IL.Has$$anonymous$$ng.CacheRuntime.LocalHashCacheAssemblyStore assemblyStore) [0x00011] in <685f0c65f2a448a78ba2734aa17d6be3>:0 
   at Burst.Compiler.IL.Has$$anonymous$$ng.CacheRuntime.Util.TypeReferenceExtensions.ToILType (Mono.Cecil.TypeReference typeReference, Burst.Compiler.IL.Has$$anonymous$$ng.CacheRuntime.LocalHashCacheAssemblyStore assemblyStore) [0x001db] in <685f0c65f2a448a78ba2734aa17d6be3>:0 
   at Burst.Compiler.IL.Has$$anonymous$$ng.CacheRuntime.Util.MethodReferenceExtensions.ToILTypes (Mono.Collections.Generic.Collection`1[T] types, Burst.Compiler.IL.Has$$anonymous$$ng.CacheRuntime.LocalHashCacheAssemblyStore assemblyStore) [0x0001d] in <685f0c65f2a448a78ba2734aa17d6be3>:0 
   at Burst.Compiler.IL.Has$$anonymous$$ng.CacheRuntime.Util.MethodReferenceExtensions.CreateGenericContext (Mono.Cecil.MethodReference methodReference, Burst.Compiler.IL.Has$$anonymous$$ng.CacheRuntime.LocalHashCacheAssemblyStore assemblyStore) [0x00044] in <685f0c65f2a448a78ba2734aa17d6be3>:0 
   at Burst.Compiler.IL.Has$$anonymous$$ng.CacheRuntime.ILFinalHashCalculator.GetHashImpl () [0x000ad] in <685f0c65f2a448a78ba2734aa17d6be3>:0 
   at Burst.Compiler.IL.Has$$anonymous$$ng.CacheRuntime.ILFinalHashCalculator.GetHash (Mono.Cecil.MethodReference[] methodReferences, Burst.Compiler.IL.Has$$anonymous$$ng.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 
 
 W$$anonymous$$le 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

· Add your reply
  • 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 · 4 days ago

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

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

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

What does "Invalid serialized file header" even mean and how to get rid of it? 1 Answer

I'm getting a weird error? 0 Answers

error CS0117: `UnityEngine.Graphics' does not contain a definition for `DrawProceduralIndirectNow' 0 Answers

Moving file failed (Temp/Backupscenes) when starting Game Mode - every Unity version, every project 1 Answer

Error opening project.,Error opening project 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