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

Unhandled exception immediately after opening some compressed bundles #31

Closed
SacriGrape opened this issue May 10, 2021 · 2 comments
Closed

Comments

@SacriGrape
Copy link

Error

Unhandled exception. System.ArgumentNullException: Value cannot be null. (Parameter 'input')
   at System.IO.BinaryReader..ctor(Stream input, Encoding encoding, Boolean leaveOpen)
   at System.IO.BinaryReader..ctor(Stream input)
   at AssetsTools.NET.AssetsFileReader..ctor(Stream stream)
   at UABEAvalonia.AssetBundleUtil.IsBundleDataCompressed(AssetBundleFile bundle) in C:\Users\nesquack\Documents\GitRepos\UABEA\UABEAvalonia\AssetBundleUtil.cs:line 54
   at UABEAvalonia.MainWindow.MenuOpen_Click(Object sender, RoutedEventArgs e) in C:\Users\nesquack\Documents\GitRepos\UABEA\UABEAvalonia\MainWindow.axaml.cs:line 131
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__140_0(Object state)
   at Avalonia.Threading.AvaloniaSynchronizationContext.<>c__DisplayClass5_0.<Post>b__0() in /_/src/Avalonia.Base/Threading/AvaloniaSynchronizationContext.cs:line 33
   at Avalonia.Threading.JobRunner.Job.Avalonia.Threading.JobRunner.IJob.Run() in /_/src/Avalonia.Base/Threading/JobRunner.cs:line 166
   at Avalonia.Threading.JobRunner.RunJobs(Nullable`1 priority) in /_/src/Avalonia.Base/Threading/JobRunner.cs:line 37
   at Avalonia.Win32.Win32Platform.WndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam) in /_/src/Windows/Avalonia.Win32/Win32Platform.cs:line 208
   at Avalonia.Win32.Interop.UnmanagedMethods.DispatchMessage(MSG& lpmsg)
   at Avalonia.Win32.Win32Platform.RunLoop(CancellationToken cancellationToken) in /_/src/Windows/Avalonia.Win32/Win32Platform.cs:line 157
   at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken cancellationToken) in /_/src/Avalonia.Base/Threading/Dispatcher.cs:line 61
   at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.Start(String[] args) in /_/src/Avalonia.Controls/ApplicationLifetimes/ClassicDesktopStyleApplicationLifetime.cs:line 107
   at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime[T](T builder, String[] args, ShutdownMode shutdownMode) in /_/src/Avalonia.Controls/ApplicationLifetimes/ClassicDesktopStyleApplicationLifetime.cs:line 134
   at UABEAvalonia.Program.Main(String[] args) in C:\Users\nesquack\Documents\GitRepos\UABEA\UABEAvalonia\Program.cs:line 47

I'm attempting to open one of the bundles from Seven Deadly Sins Grand Cross.
Included is one of the files that has the issue. I have successfully opened some of the bundles so this doesn't effect all of them however it does cause issues with quite a few.

https://drive.google.com/file/d/1M4m0ue7-Udp4jFuK9Mw-vM5tpEedBHxe/view?usp=sharing

@nesrak1
Copy link
Owner

nesrak1 commented May 10, 2021

This file has a non-standard header so you won't be able to open it normally. You can delete the whole fake header (the beginning of the file to the beginning of the second UnityFS) in a hex editor to fix it.

@SacriGrape
Copy link
Author

This file has a non-standard header so you won't be able to open it normally. You can delete the whole fake header (the beginning of the file to the beginning of the second UnityFS) in a hex editor to fix it.

This worked, thank you so much!

I wonder if this is also why AssetStudio just doesn't show some things I would expect it to show.

@nesrak1 nesrak1 closed this as completed May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants