zencq / NomNom

NomNom is the most complete savegame editor for NMS but also shows additional information around the data you're about to change. You can also easily look up each item individually to examine its attributes, independently of a savegame, or get other useful information that are not related to a specific savegame (but enhanced if one is loaded).
https://zencq.github.io/NomNom/
GNU General Public License v3.0
440 stars 36 forks source link

[Bug] Crash when trying to add a first image to a ship #103

Closed MyersP closed 1 month ago

MyersP commented 1 year ago

Description

When trying to add a first image to a ship NomNom crashes. The error message "The system cannot find the file specified." is thrown and NomNom exits after a bit.

Reproduce

Steps to reproduce the behavior:

  1. Opened a save
  2. Click on Ships
  3. Click on the camera to add a image
  4. Popup with message saying NomNom crashed

Expected Behavior

I should have been able to browse to a directory to select an image.

Additional Context

Stack Trace: from "report.20221128013126.html" at Ookii.Dialogs.Wpf.NativeMethods.CreateItemFromParsingName(String path) at Ookii.Dialogs.Wpf.VistaFileDialog.SetDialogProperties(IFileDialog dialog) at Ookii.Dialogs.Wpf.VistaOpenFileDialog.SetDialogProperties(IFileDialog dialog) at Ookii.Dialogs.Wpf.VistaFileDialog.RunFileDialog(IntPtr hwndOwner) at Ookii.Dialogs.Wpf.VistaFileDialog.ShowDialog(IntPtr owner) at Ookii.Dialogs.Wpf.VistaFileDialog.ShowDialog(Window owner) at Ookii.Dialogs.Wpf.VistaFileDialog.ShowDialog() at NomNom.ViewModels.EditorSaveStarshipViewModel.AddImage() at Prism.Commands.DelegateCommand.Execute() at Prism.Commands.DelegateCommand.Execute(Object parameter) at Prism.Commands.DelegateCommandBase.System.Windows.Input.ICommand.Execute(Object parameter) at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated) at System.Windows.Controls.Primitives.ButtonBase.OnClick() at System.Windows.Controls.Button.OnClick() at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args) at System.Windows.Input.InputManager.ProcessStagingArea() at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel) at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at System.Windows.Interop.HwndSource.InputFilterMessage(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)

Error_Adding_Ship_Image