Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EndOfStreamException in CSceneVehicleCar.Sample #18

Open
Thoringer76 opened this issue Jun 19, 2023 · 3 comments
Open

EndOfStreamException in CSceneVehicleCar.Sample #18

Thoringer76 opened this issue Jun 19, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Thoringer76
Copy link

Initializing the console...
Using the tool: Clip Input 2
Retrieving possible config options...
Scanning all the command line arguments...

Detected input files:
- 193_Fanakuri0047843_GHOST.Gbx

Using existing ConsoleOptions.yml...

Additional arguments: (none)
Loading config Default.yml...
Config Default.yml saved in standard format.

Parsing 193_Fanakuri0047843_GHOST.Gbx...

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
   at System.IO.BinaryReader.InternalRead(Int32)
   at System.IO.BinaryReader.ReadSingle()
   at GBX.NET.GameBoxReader.ReadVec3()
   at GBX.NET.Engines.Scene.CSceneVehicleCar.Sample.Read(MemoryStream, GameBoxReader, Int32)
   at GBX.NET.Engines.Game.CGameGhost.Data.ReadSample(Int32, Byte[], Int32[] )
   at GBX.NET.Engines.Game.CGameGhost.Data.Read(GameBoxReader)
   at GBX.NET.Engines.Game.CGameGhost.Data.Read(Stream, Boolean)
   at GBX.NET.Engines.Game.CGameGhost.Data.Parse()
   at GBX.NET.Engines.Game.CGameGhost.get_SampleData()
   at ClipInput.ClipInputTool.GetBlockEndTime(CGameCtnGhost ghost) in D:\a\clip-input\clip-input\ClipInput\ClipInputTool.cs:line 274
   at ClipInput.ClipInputTool.GetGhostsAndEndTime(IEnumerable`1 ghosts, CGameCtnReplayRecord replay) in D:\a\clip-input\clip-input\ClipInput\ClipInputTool.cs:line 87
   at ClipInput.ClipInputTool..ctor(IEnumerable`1 ghosts) in D:\a\clip-input\clip-input\ClipInput\ClipInputTool.cs:line 37
   at ClipInput.ClipInputTool..ctor(CGameCtnGhost ghost) in D:\a\clip-input\clip-input\ClipInput\ClipInputTool.cs:line 30
   at System.RuntimeMethodHandle.InvokeMethod(Object, Void**, Signature, Boolean)
   at System.Reflection.ConstructorInvoker.Invoke(Object, IntPtr*, BindingFlags)
   --- End of inner exception stack trace ---
   at System.Reflection.ConstructorInvoker.Invoke(Object, IntPtr*, BindingFlags)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags, Binder, Object[], CultureInfo)
   at System.Reflection.ConstructorInfo.Invoke(Object[] )
   at GbxToolAPI.CLI.ToolConstructorPicker.CreateInstances[T](Dictionary`2 inputByType, Boolean singleOutput)+MoveNext()   at GbxToolAPI.CLI.ToolConsole`1.RunCanThrowAsync(String[] args)
   at GbxToolAPI.CLI.ToolConsole`1.RunAsync(String[] args)
Press any key to continue...

193_Fanakuri0047843_GHOST.zip

@thaumictom
Copy link
Collaborator

thaumictom commented Jun 19, 2023

This is not a bug of clip-input.

You can use the online version or follow this explanation to change your config, since you are using TM Turbo.

@Thoringer76
Copy link
Author

Thoringer76 commented Jun 19, 2023

Ah ok, was just wondering because all other TMT replays worked fine previously

@BigBang1112
Copy link
Member

Thanks for reporting this issue, this seems to lead to GBX.NET, I should've checked TM Turbo replays more intensively.

@BigBang1112 BigBang1112 changed the title System.Reflection.TargetInvocationException EndOfStreamException in CSceneVehicleCar.Sample Jun 23, 2023
@BigBang1112 BigBang1112 added the bug Something isn't working label Jun 28, 2023
@BigBang1112 BigBang1112 self-assigned this Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants