aianlinb / VisualGGPK2

Library for Content.ggpk of PathOfExile (Rewrite of libggpk)
GNU Affero General Public License v3.0
157 stars 32 forks source link

bug reporting #2

Closed Lei-ciccc closed 3 years ago

Lei-ciccc commented 3 years ago

When reading the content.ggpk file, an ErrorWindow appeared, saying the followings. Can't figure out the solution, so I wonder if the author may help me with this. ps: The first time I use LibGGPK2 several days ago it sucessed, and I exchanged some files also sucessed without crashing the game.


System.NullReferenceException: Object reference not set to an instance of an object. at LibGGPK2.GGPKContainer..ctor(String path, Boolean BundleMode) in C:\LibGGPK2\LibGGPK2\GGPKContainer.cs:line 56 at VisualGGPK2.MainWindow.OnLoaded(Object sender, RoutedEventArgs e) in C:\LibGGPK2\VisualGGPK2\MainWindow.xaml.cs:line 71 at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e) at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent) at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root) at MS.Internal.LoadedOrUnloadedOperation.DoWork() at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks() at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget) at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget) at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget) at System.Windows.Interop.HwndTarget.OnResize() at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

aianlinb commented 3 years ago

Seems that the FreeRecordList of your GGPK is broken. This may happend if you have modified GGPK with old version libggpk. Try open the GGPK with this to fix it: FixFreeRecords.zip If still not work, then redownload the GGPK.

Lei-ciccc commented 3 years ago

Thanks a lot. Yesterday I used the backup GGPK and experienced the following:

ps: Cheer for the v0.6.0 releasing, and thank you very much.

voguelike commented 3 years ago

i just had the same bug happen on the latest libggpk version (0.6.1)

previously, multiple different changes were successful and after trying to troubleshoot a item model swap this bug suddenly happened when trying to open the ggpk in libggpk. after that the game would also crash every time i tried to open it and packcheck didn't work either.

unfortunately i started to redownload the ggpk before i found the fixfreerecords tool so i can't tell if it would've fixed it but if it happens again i'll make sure to try it out

aianlinb commented 3 years ago

Fixed https://github.com/aianlinb/LibGGPK2/commit/db1a6c71549264333125257664ba7a11c0dde1b6

voguelike commented 3 years ago

yesterday, i ran into this issue again before you deployed today's fix. i tried using fixfreerecords to fix it but it crashes halfway through due to "invalid tag" as seen here: invalid tag

thankfully my game isn't crashing so far so i'm just unable to do any additional changes and hopefully it stays like that until you can look into this.

anyways, thank you for so much for working on this tool, and for fixing this original issue! hopefully this won't be able to happen again now.

aianlinb commented 3 years ago

@voguelike I think you may have to redownload the whole GGPK.