Jump to content

End of stream reached with 4 byte left to read.


Recommended Posts

 

2015-10-14 22:14:28.8987 | RocksmithToolkitGUI.Program (INFO) :

 RocksmithToolkitGUI.Program.Main

 Version: 2.6.1.0-c0d65deb (32 bit)

 OS: Microsoft Windows NT 6.2.9200.0 (64 bit)

 Runtime: v4.0.30319.42000

 JIT: MsX86

 

2015-10-14 22:15:20.2681 | RocksmithToolkitGUI.Program (ERROR) :

 RocksmithToolkitGUI.Program+<>c.<Main>b__1_1

 

MiscUtil

Void ReadInternal(Byte[], Int32)

Exception catched:

 

 

System.IO.EndOfStreamException End of stream reached with 4 byte left to read. Void ReadInternal(Byte[], Int32)    at MiscUtil.IO.EndianBinaryReader.ReadInternal(Byte[] data, Int32 size)

   at RocksmithToolkitLib.Sng2014HSL.BpmSection.read(EndianBinaryReader r) in C:\projects\rocksmith-custom-song-toolkit\RocksmithToolkitLib\Sng\Sng2014HSL.cs:line 40

   at RocksmithToolkitLib.Sng2014HSL.Sng2014File.Read(EndianBinaryReader r) in C:\projects\rocksmith-custom-song-toolkit\RocksmithToolkitLib\Sng\Sng2014File.cs:line 208

   at RocksmithToolkitLib.Sng2014HSL.Sng2014File.ReadSng(Stream input, Platform platform) in C:\projects\rocksmith-custom-song-toolkit\RocksmithToolkitLib\Sng\Sng2014File.cs:line 66

   at RocksmithToolkitLib.Sng2014HSL.Sng2014File.LoadFromFile(String inputFile, Platform platform) in C:\projects\rocksmith-custom-song-toolkit\RocksmithToolkitLib\Sng\Sng2014File.cs:line 52

   at RocksmithToolkitLib.DLCPackage.Packer.UpdateSng2014(String songDirectory, Platform targetPlatform, Boolean fixShowlights) in C:\projects\rocksmith-custom-song-toolkit\RocksmithToolkitLib\DLCPackage\Packer.cs:line 778

   at RocksmithToolkitLib.DLCPackage.Packer.Pack2014(String sourcePath, String saveFileName, Platform platform, Boolean updateSng, Boolean updateManifest, Boolean fixShowlights) in C:\projects\rocksmith-custom-song-toolkit\RocksmithToolkitLib\DLCPackage\Packer.cs:line 254

   at RocksmithToolkitLib.DLCPackage.Packer.Pack(String sourcePath, String saveFileName, Boolean updateSng, Platform predefinedPlatform, Boolean updateManifest, Boolean fixShowlights) in C:\projects\rocksmith-custom-song-toolkit\RocksmithToolkitLib\DLCPackage\Packer.cs:line 47

   at RocksmithToolkitGUI.DDC.DDC.ApplyPackageDD(String file, String remSUS, String rampPath, String cfgPath, String& consoleOutputPkg, Boolean keepLog) in C:\projects\rocksmith-custom-song-toolkit\RocksmithTookitGUI\DDC\DDC.cs:line 280

   at RocksmithToolkitGUI.DDC.DDC.bw_DoWork(Object sender, DoWorkEventArgs e) in C:\projects\rocksmith-custom-song-toolkit\RocksmithTookitGUI\DDC\DDC.cs:line 176

   at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)

   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument) System.IO.EndOfStreamException: End of stream reached with 4 byte left to read.

   at MiscUtil.IO.EndianBinaryReader.ReadInternal(Byte[] data, Int32 size)

   at RocksmithToolkitLib.Sng2014HSL.BpmSection.read(EndianBinaryReader r) in C:\projects\rocksmith-custom-song-toolkit\RocksmithToolkitLib\Sng\Sng2014HSL.cs:line 40

   at RocksmithToolkitLib.Sng2014HSL.Sng2014File.Read(EndianBinaryReader r) in C:\projects\rocksmith-custom-song-toolkit\RocksmithToolkitLib\Sng\Sng2014File.cs:line 208

   at RocksmithToolkitLib.Sng2014HSL.Sng2014File.ReadSng(Stream input, Platform platform) in C:\projects\rocksmith-custom-song-toolkit\RocksmithToolkitLib\Sng\Sng2014File.cs:line 66

   at RocksmithToolkitLib.Sng2014HSL.Sng2014File.LoadFromFile(String inputFile, Platform platform) in C:\projects\rocksmith-custom-song-toolkit\RocksmithToolkitLib\Sng\Sng2014File.cs:line 52

   at RocksmithToolkitLib.DLCPackage.Packer.UpdateSng2014(String songDirectory, Platform targetPlatform, Boolean fixShowlights) in C:\projects\rocksmith-custom-song-toolkit\RocksmithToolkitLib\DLCPackage\Packer.cs:line 778

   at RocksmithToolkitLib.DLCPackage.Packer.Pack2014(String sourcePath, String saveFileName, Platform platform, Boolean updateSng, Boolean updateManifest, Boolean fixShowlights) in C:\projects\rocksmith-custom-song-toolkit\RocksmithToolkitLib\DLCPackage\Packer.cs:line 254

   at RocksmithToolkitLib.DLCPackage.Packer.Pack(String sourcePath, String saveFileName, Boolean updateSng, Platform predefinedPlatform, Boolean updateManifest, Boolean fixShowlights) in C:\projects\rocksmith-custom-song-toolkit\RocksmithToolkitLib\DLCPackage\Packer.cs:line 47

   at RocksmithToolkitGUI.DDC.DDC.ApplyPackageDD(String file, String remSUS, String rampPath, String cfgPath, String& consoleOutputPkg, Boolean keepLog) in C:\projects\rocksmith-custom-song-toolkit\RocksmithTookitGUI\DDC\DDC.cs:line 280

   at RocksmithToolkitGUI.DDC.DDC.bw_DoWork(Object sender, DoWorkEventArgs e) in C:\projects\rocksmith-custom-song-toolkit\RocksmithTookitGUI\DDC\DDC.cs:line 176

   at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)

   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

 

Tried adding DD to a existing song but toolkit keeps erroring out with the error above.

Link to comment
Share on other sites

  • Developer

@Plingbrix

 

I tried adding DD to a song that does not have DD and am unable to reproduce the error. 

 

Question:  Does the existing song you are trying to add DD to already have DD?  If the song already has DD try removing it before you add new DD.

 

Alternatively:  The error ... " at RocksmithToolkitLib.Sng2014HSL.BpmSection.read(EndianBinaryReader r) in C:\projects\rocksmith-custom-song-toolkit\RocksmithToolkitLib\Sng\Sng2014HSL.cs:line 40" has to do with the songs AvgTempo.  Does the song you are trying to add DD contain valid AvgTempo info.  Use "Creator" tab and "Import Package" and look at song information.  Does it contain "Avg Temp" in Song Information groupbox?

Are you tired of AV False Positives???  Now accepting donations on my website (Click Here)  Your donation will be used towards buying a code signing certificate.   CGT is now compatible and safe to use with Rocksmith® 2014 Remastered ... 

 

Latest Build of Custom Game Toolkit (CGT) w/ Game Save Gigbox       Latest Build of Rocksmith Toolkit       Latest Build of Customs Forge Song Manager (CFSM)

 

All bug reports and help requests please include your: OS, CPU, AV, .NET Framework versions along with a description of the issue (include screenshots of error if possible).  It should go without having to say ... make sure you are using the latest build before submitting bug reports or asking for help.

 

*  Remember to use your magic words (please and thank you) if you would like a response.  Don't use phrases like 'thanks anyhow' as it is demeaning.

Link to comment
Share on other sites

  • 4 months later...
  • Developer

This is a followup with fix for this error in case any other users experience it when converting CDLC from one platform to another:

 

1.  Go to 'CDLC Creator' tab menu.  Select 'Import Package', if import fails then go to Step 6 below.

2.  Re-enter a valid Song Year, and re-enter valid Average Tempo information and change the Song Version to '2'.

3.  Press 'Generate' button.   Acknowledge the 'Arrangement Identification' popup.  Press 'Yes' button

4.  Go to 'Converter' tab menu, and set Source and Target then press 'Choose CDLC and Convert'

5.  Select the CDLC and make sure it is Version 2 that you created above.  Wait for song to convert.

 

Hopefully you do not receive any error messages (I didn't during testing).  Play the converted song.  Stop here.

 

6.  Go to 'Packer/Unpacker' tab menu.  Checkbox 'Decode Audio' and press 'Unpack' button.

7.  Go back to 'CDLC Creator' tab menu. 

8.  Create the CDLC from the files you unpacked.  Essentially you will be repackaging the song.

9.  Follow Steps 3 - 5 above to generate and convert.

 

There are other ways to do this repair and conversion with the toolkit which you may have in mind and can attempt.  This method happened to work for me.  Let me know if it works for you.

  • Like 1

Are you tired of AV False Positives???  Now accepting donations on my website (Click Here)  Your donation will be used towards buying a code signing certificate.   CGT is now compatible and safe to use with Rocksmith® 2014 Remastered ... 

 

Latest Build of Custom Game Toolkit (CGT) w/ Game Save Gigbox       Latest Build of Rocksmith Toolkit       Latest Build of Customs Forge Song Manager (CFSM)

 

All bug reports and help requests please include your: OS, CPU, AV, .NET Framework versions along with a description of the issue (include screenshots of error if possible).  It should go without having to say ... make sure you are using the latest build before submitting bug reports or asking for help.

 

*  Remember to use your magic words (please and thank you) if you would like a response.  Don't use phrases like 'thanks anyhow' as it is demeaning.

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

By using this site, you agree to our Guidelines. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. - Privacy Policy