question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error message: Error during reading of asset type Shader

See original GitHub issue

Game name: genshin impact Engine version: 2017.4.30f1 Platform: StandaloneWinPlayer File name: unity default resources

Error message: Error during reading of asset type Shader

Inner message: System.Exception: No data left at uTinyRipper.Lz4.Lz4DecodeStream.FillInputBuffer(Int32 offset) at uTinyRipper.Lz4.Lz4DecodeStream.ReadInputByte() at uTinyRipper.Lz4.Lz4DecodeStream.Read(Stream stream, Int64 count) at uTinyRipper.Lz4.Lz4DecodeStream.ReadBuffer(Stream stream, Int64 count) at uTinyRipper.Lz4.Lz4DecodeStream.ReadBuffer(Byte[] buffer, Int32 offset, Int32 count) at uTinyRipper.Classes.Shaders.ShaderSubProgramBlob.ReadBlob(AssetLayout layout, MemoryStream memStream, UInt32 compressedLength, UInt32 decompressedLength, Int32 segment) at uTinyRipper.Classes.Shader.UnpackSubProgramBlobs(AssetLayout layout, UInt32[] offsets, UInt32[] compressedLengths, UInt32[] decompressedLengths, Byte[] compressedBlob) at uTinyRipper.Classes.Shader.Read(AssetReader reader) at uTinyRipper.SerializedFile.ReadAsset(AssetReader reader, AssetInfo assetInfo, Int64 offset, Int32 size)

Stack trace: at uTinyRipper.SerializedFile.ReadAsset(AssetReader reader, AssetInfo assetInfo, Int64 offset, Int32 size) at uTinyRipper.SerializedFile.ReadAsset(AssetReader reader, ObjectInfo& info) at uTinyRipper.SerializedFile.ReadData(Stream stream) at uTinyRipper.GameProcessorContext.ReadFile(SerializedFile file) at uTinyRipper.GameProcessorContext.ReadSerializedFiles() at uTinyRipper.GameStructureProcessor.ProcessSchemes(GameCollection fileCollection) at uTinyRipper.GameStructure.Load(List1 pathes, LayoutInfo layinfo) at uTinyRipper.GameStructure.Load(IEnumerable1 pathes, LayoutInfo layinfo) at uTinyRipperGUI.MainWindow.LoadFiles(Object data)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
EliteMasterEriccommented, Sep 28, 2020

Just received this error as well.

Game name: Genshin Impact v1.0

Engine version: 2017.4.30f1
Platform: StandaloneWin64Player
File name: unity builtin extra

Error message: Error during reading of asset type Shader

Inner message: System.Exception: No data left
   at uTinyRipper.Lz4.Lz4DecodeStream.FillInputBuffer(Int32 offset)
   at uTinyRipper.Lz4.Lz4DecodeStream.ReadInputByte()
   at uTinyRipper.Lz4.Lz4DecodeStream.Read(Stream stream, Int64 count)
   at uTinyRipper.Lz4.Lz4DecodeStream.ReadBuffer(Stream stream, Int64 count)
   at uTinyRipper.Lz4.Lz4DecodeStream.ReadBuffer(Byte[] buffer, Int32 offset, Int32 count)
   at uTinyRipper.Classes.Shaders.ShaderSubProgramBlob.ReadBlob(AssetLayout layout, MemoryStream memStream, UInt32 compressedLength, UInt32 decompressedLength, Int32 segment)
   at uTinyRipper.Classes.Shader.UnpackSubProgramBlobs(AssetLayout layout, UInt32[] offsets, UInt32[] compressedLengths, UInt32[] decompressedLengths, Byte[] compressedBlob)
   at uTinyRipper.Classes.Shader.Read(AssetReader reader)
   at uTinyRipper.SerializedFile.ReadAsset(AssetReader reader, AssetInfo assetInfo, Int64 offset, Int32 size)

Stack trace:    at uTinyRipper.SerializedFile.ReadAsset(AssetReader reader, AssetInfo assetInfo, Int64 offset, Int32 size)
   at uTinyRipper.SerializedFile.ReadAsset(AssetReader reader, ObjectInfo& info)
   at uTinyRipper.SerializedFile.ReadData(Stream stream)
   at uTinyRipper.GameProcessorContext.ReadFile(SerializedFile file)
   at uTinyRipper.GameProcessorContext.ReadFile(SerializedFile file)
   at uTinyRipper.GameProcessorContext.ReadFile(SerializedFile file)
   at uTinyRipper.GameProcessorContext.ReadSerializedFiles()
   at uTinyRipper.GameStructureProcessor.ProcessSchemes(GameCollection fileCollection)
   at uTinyRipper.GameStructure.Load(List`1 pathes, LayoutInfo layinfo)
   at uTinyRipper.GameStructure.Load(IEnumerable`1 pathes, LayoutInfo layinfo)
   at uTinyRipperGUI.MainWindow.LoadFiles(Object data)

I haven’t been able to compress unity_builtin_extra enough to upload it directly to GitHub, so here’s a mirror:

https://mega.nz/file/cQNlwAaA#YwSq6LaapXRhR5lL5l9KBv2lJXXZl-gQjMcy4MYPanw

0reactions
mafacacommented, Oct 25, 2020

Looks like developer protected his game with custom compression. Ripper doesn’t support such files.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error during reading of asset type Shader · Issue #861
Game name: (please, specify the game name) Engine version: 5.5.5p2 Platform: StandaloneWinPlayer File name: resources.assets Error message: ...
Read more >
URP Lit Shader error
Upon importing the Universal RP package into my project (Unity 2020.3.12f1, and URP 10.5.1), when I navigate to the URP Lit shader in...
Read more >
Manual: Error and loading shaders
Unity renders an object with the default error shader when there's a problem with that object's material or shader; for example, if no...
Read more >
FBX file import into Unity with armature gives Shader error
The name of FBX file is "trt" in that case. The following code loads every asset! in this file. Object[] assets = AssetDatabase....
Read more >
Corrupted texture error message | Substance 3D Painter
The first step when an error appears it to find and identify the problematic resource. In most cases the culprit is from the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found