sonicretro / SonLVL

SonLVL
http://info.sonicretro.org/SonLVL
58 stars 27 forks source link

tried to read beyond file end. #156

Open JuliabLucianowinowsfan opened 1 year ago

JuliabLucianowinowsfan commented 1 year ago

Program: SonLVL Build Date: 09/30/2023 20:00:46 OS Version: Microsoft Windows NT 6.2.9200.0 Log: Operating system: Microsoft Windows NT 6.2.9200.0 Opening INI file "C:\Users\Pili\Downloads\S1hive2005_AS\Sonic 1 2005 INIs\SonLVL.ini"... Game type is S1. Loading Green Hill Zone Act 1... Loading 8x8 tiles from file "../artnem/8x8ghz1.bin", using compression Nemesis... Unable to read file "../artnem/8x8ghz1.bin" with compression Nemesis: Loading palette file "../pallet/sonic.bin"... Source: 0 Destination: 0 Length: 16 Loading palette file "../pallet/ghz.bin"... Source: 0 Destination: 16 Length: 48 Loading 16x16 blocks from file "../map16/ghz.bin", using compression Enigma... Loading FG layout from file "../levels/ghz1.bin", using compression Uncompressed... Loading BG layout from file "../levels/ghzbg.bin", using compression Uncompressed... Loading FG layout from file "../levels/ghz2.bin", using compression Uncompressed... Loading FG layout from file "../levels/ghz3.bin", using compression Uncompressed... Loading FG layout from file "../levels/ending.bin", using compression Uncompressed... Loading 256x256 chunks from file "../map256/ghz.bin", using compression Kosinski... Unable to read file "../map256/ghz.bin" with compression Kosinski: Unable to read file "../map16/ghz.bin" with compression Enigma: System.AggregateException: Se han producido uno o varios errores. ---> System.IO.EndOfStreamException: Intento de lectura más allá del final de la secuencia. en SonicRetro.KensSharp.NeutralEndian.Read1(Stream stream) en SonicRetro.KensSharp.Nemesis.DecodeHeader(Stream input, Stream output, DecodingCodeTreeNode codeTree) en SonicRetro.KensSharp.Nemesis.Decode(Stream input, Stream output) en SonicRetro.KensSharp.Nemesis.Decompress(Stream input, Stream output) en SonicRetro.KensSharp.Nemesis.Decompress(String sourceFilePath) en SonicRetro.SonLVL.API.Compression.Decompress(String file, CompressionType cmp) en C:\Programs\SonLVL\SonLVLAPI\Compression.cs:línea 51 en SonicRetro.SonLVL.API.LevelData.LoadLevelTiles() en C:\Programs\SonLVL\SonLVLAPI\LevelData.cs:línea 471 en System.Threading.Tasks.Task.InnerInvoke() en System.Threading.Tasks.Task.Execute() --- Fin del seguimiento de la pila de la excepción interna --- en System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) en System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout) en System.Threading.Tasks.Parallel.Invoke(ParallelOptions parallelOptions, Action[] actions) en System.Threading.Tasks.Parallel.Invoke(Action[] actions) en SonicRetro.SonLVL.API.LevelData.LoadLevel(String levelname, Boolean loadGraphics) en C:\Programs\SonLVL\SonLVLAPI\LevelData.cs:línea 184 en SonicRetro.SonLVL.GUI.MainForm.backgroundLevelLoader_DoWork(Object sender, DoWorkEventArgs e) en C:\Programs\SonLVL\SonLVL\MainForm.cs:línea 574 ---> (Nº de excepción interna 0) System.IO.EndOfStreamException: Intento de lectura más allá del final de la secuencia. en SonicRetro.KensSharp.NeutralEndian.Read1(Stream stream) en SonicRetro.KensSharp.Nemesis.DecodeHeader(Stream input, Stream output, DecodingCodeTreeNode codeTree) en SonicRetro.KensSharp.Nemesis.Decode(Stream input, Stream output) en SonicRetro.KensSharp.Nemesis.Decompress(Stream input, Stream output) en SonicRetro.KensSharp.Nemesis.Decompress(String sourceFilePath) en SonicRetro.SonLVL.API.Compression.Decompress(String file, CompressionType cmp) en C:\Programs\SonLVL\SonLVLAPI\Compression.cs:línea 51 en SonicRetro.SonLVL.API.LevelData.LoadLevelTiles() en C:\Programs\SonLVL\SonLVLAPI\LevelData.cs:línea 471 en System.Threading.Tasks.Task.InnerInvoke() en System.Threading.Tasks.Task.Execute()<---

---> (Nº de excepción interna 1) System.IO.EndOfStreamException: Intento de lectura más allá del final de la secuencia. en SonicRetro.KensSharp.BigEndian.Read2(Stream stream) en SonicRetro.KensSharp.UInt16BE_E_L_InputBitStream.Read(Int32 count) en SonicRetro.KensSharp.Enigma.Decode(Stream input, Stream output, Endianness endianness) en SonicRetro.KensSharp.Enigma.Decompress(Stream input, Stream output, Endianness endianness) en SonicRetro.KensSharp.Enigma.Decompress(String sourceFilePath, Endianness endianness) en SonicRetro.SonLVL.API.Compression.Decompress(String file, CompressionType cmp) en C:\Programs\SonLVL\SonLVLAPI\Compression.cs:línea 51 en SonicRetro.SonLVL.API.LevelData.LoadLevelBlocks() en C:\Programs\SonLVL\SonLVLAPI\LevelData.cs:línea 528 en System.Threading.Tasks.Task.InnerInvoke() en System.Threading.Tasks.Task.Execute()<---

---> (Nº de excepción interna 2) System.IO.IOException: Intento de mover la posición antes del principio de la secuencia. en System.IO.MemoryStream.Seek(Int64 offset, SeekOrigin loc) en SonicRetro.KensSharp.Kosinski.DecodeInternal(Stream source, Stream destination, Int64& decompressedBytes) en SonicRetro.KensSharp.Kosinski.Decompress(Stream input, Stream output) en SonicRetro.KensSharp.Kosinski.Decompress(String sourceFilePath) en SonicRetro.SonLVL.API.Compression.Decompress(String file, CompressionType cmp) en C:\Programs\SonLVL\SonLVLAPI\Compression.cs:línea 51 en SonicRetro.SonLVL.API.LevelData.LoadLevelChunks() en C:\Programs\SonLVL\SonLVLAPI\LevelData.cs:línea 561 en System.Threading.Tasks.Task.InnerInvoke() en System.Threading.Tasks.Task.Execute()<---

Opening INI file "C:\Users\Pili\Downloads\S1hive2005_AS\Sonic 1 2005 INIs\SonLVL.ini"... Game type is S1. Loading Green Hill Zone Act 1... Loading 8x8 tiles from file "../artnem/8x8ghz1.bin", using compression Nemesis... Loading 16x16 blocks from file "../map16/ghz.bin", using compression Enigma... Unable to read file "../artnem/8x8ghz1.bin" with compression Nemesis: Loading palette file "../pallet/sonic.bin"... Source: 0 Destination: 0 Length: 16 Loading palette file "../pallet/ghz.bin"... Source: 0 Destination: 16 Length: 48 Loading FG layout from file "../levels/ghz1.bin", using compression Uncompressed... Loading BG layout from file "../levels/ghzbg.bin", using compression Uncompressed... Loading 256x256 chunks from file "../map256/ghz.bin", using compression Kosinski... Unable to read file "../map256/ghz.bin" with compression Kosinski: Loading FG layout from file "../levels/ghz2.bin", using compression Uncompressed... Loading FG layout from file "../levels/ghz3.bin", using compression Uncompressed... Unable to read file "../map16/ghz.bin" with compression Enigma: Loading FG layout from file "../levels/ending.bin", using compression Uncompressed... System.AggregateException: Se han producido uno o varios errores. ---> System.IO.EndOfStreamException: Intento de lectura más allá del final de la secuencia. en SonicRetro.KensSharp.NeutralEndian.Read1(Stream stream) en SonicRetro.KensSharp.Nemesis.DecodeHeader(Stream input, Stream output, DecodingCodeTreeNode codeTree) en SonicRetro.KensSharp.Nemesis.Decode(Stream input, Stream output) en SonicRetro.KensSharp.Nemesis.Decompress(Stream input, Stream output) en SonicRetro.KensSharp.Nemesis.Decompress(String sourceFilePath) en SonicRetro.SonLVL.API.Compression.Decompress(String file, CompressionType cmp) en C:\Programs\SonLVL\SonLVLAPI\Compression.cs:línea 51 en SonicRetro.SonLVL.API.LevelData.LoadLevelTiles() en C:\Programs\SonLVL\SonLVLAPI\LevelData.cs:línea 471 en System.Threading.Tasks.Task.InnerInvoke() en System.Threading.Tasks.Task.Execute() --- Fin del seguimiento de la pila de la excepción interna --- en System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) en System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout) en System.Threading.Tasks.Parallel.Invoke(ParallelOptions parallelOptions, Action[] actions) en System.Threading.Tasks.Parallel.Invoke(Action[] actions) en SonicRetro.SonLVL.API.LevelData.LoadLevel(String levelname, Boolean loadGraphics) en C:\Programs\SonLVL\SonLVLAPI\LevelData.cs:línea 184 en SonicRetro.SonLVL.GUI.MainForm.backgroundLevelLoader_DoWork(Object sender, DoWorkEventArgs e) en C:\Programs\SonLVL\SonLVL\MainForm.cs:línea 574 ---> (Nº de excepción interna 0) System.IO.EndOfStreamException: Intento de lectura más allá del final de la secuencia. en SonicRetro.KensSharp.NeutralEndian.Read1(Stream stream) en SonicRetro.KensSharp.Nemesis.DecodeHeader(Stream input, Stream output, DecodingCodeTreeNode codeTree) en SonicRetro.KensSharp.Nemesis.Decode(Stream input, Stream output) en SonicRetro.KensSharp.Nemesis.Decompress(Stream input, Stream output) en SonicRetro.KensSharp.Nemesis.Decompress(String sourceFilePath) en SonicRetro.SonLVL.API.Compression.Decompress(String file, CompressionType cmp) en C:\Programs\SonLVL\SonLVLAPI\Compression.cs:línea 51 en SonicRetro.SonLVL.API.LevelData.LoadLevelTiles() en C:\Programs\SonLVL\SonLVLAPI\LevelData.cs:línea 471 en System.Threading.Tasks.Task.InnerInvoke() en System.Threading.Tasks.Task.Execute()<---

---> (Nº de excepción interna 1) System.IO.EndOfStreamException: Intento de lectura más allá del final de la secuencia. en SonicRetro.KensSharp.BigEndian.Read2(Stream stream) en SonicRetro.KensSharp.UInt16BE_E_L_InputBitStream.Read(Int32 count) en SonicRetro.KensSharp.Enigma.Decode(Stream input, Stream output, Endianness endianness) en SonicRetro.KensSharp.Enigma.Decompress(Stream input, Stream output, Endianness endianness) en SonicRetro.KensSharp.Enigma.Decompress(String sourceFilePath, Endianness endianness) en SonicRetro.SonLVL.API.Compression.Decompress(String file, CompressionType cmp) en C:\Programs\SonLVL\SonLVLAPI\Compression.cs:línea 51 en SonicRetro.SonLVL.API.LevelData.LoadLevelBlocks() en C:\Programs\SonLVL\SonLVLAPI\LevelData.cs:línea 528 en System.Threading.Tasks.Task.InnerInvoke() en System.Threading.Tasks.Task.Execute()<---

---> (Nº de excepción interna 2) System.IO.IOException: Intento de mover la posición antes del principio de la secuencia. en System.IO.MemoryStream.Seek(Int64 offset, SeekOrigin loc) en SonicRetro.KensSharp.Kosinski.DecodeInternal(Stream source, Stream destination, Int64& decompressedBytes) en SonicRetro.KensSharp.Kosinski.Decompress(Stream input, Stream output) en SonicRetro.KensSharp.Kosinski.Decompress(String sourceFilePath) en SonicRetro.SonLVL.API.Compression.Decompress(String file, CompressionType cmp) en C:\Programs\SonLVL\SonLVLAPI\Compression.cs:línea 51 en SonicRetro.SonLVL.API.LevelData.LoadLevelChunks() en C:\Programs\SonLVL\SonLVLAPI\LevelData.cs:línea 561 en System.Threading.Tasks.Task.InnerInvoke() en System.Threading.Tasks.Task.Execute()<---

JuliabLucianowinowsfan commented 1 year ago

guess it didnt get to load properly

MainMemory commented 1 year ago

It looks like none of the files were compressed in the formats that SonLVL expected. Have you made any changes to them previously?

JuliabLucianowinowsfan commented 1 year ago

Well, I edited green hill, and That zone didn't open, the others except for ending we're good.