Bug: Tool breaks when i remove a "Saving Throw"

7 posts / 0 new
Last post
Don't know if i'm alone, but here is my first real problem:

  • Create a Custom Monster
  • Go to Defenses
  • add a Saving Throw
  • remove it


Information from Windows

Beschreibung:
Stopped working

Problemsignatur:
Problemereignisname: CLR20r3
Problemsignatur 01: adventuretools.exe
Problemsignatur 02: 1.0.27.0
Problemsignatur 03: 4a70b835
Problemsignatur 04: AdventureTools.Monsters
Problemsignatur 05: 1.0.27.0
Problemsignatur 06: 4a70b831
Problemsignatur 07: 66
Problemsignatur 08: 0
Problemsignatur 09: System.NullReferenceException
Betriebsystemversion: 6.0.6002.2.2.0.256.6
Gebietsschema-ID: 1031


Information from my Visual Studio Debuger

System.NullReferenceException wurde nicht behandelt.
Message="Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt."
Source="AdventureTools.Monsters"
StackTrace:
bei AdventureTools.Monsters.MonsterSavingThrowDefinition.CalculateOverride(CalculatedNumber number)
bei AdventureTools.Monsters.CalculatedNumberDefinition`2.Calculate(CalculatedNumber number)
bei AdventureTools.Monsters.CalculatedNumber.get_PureCalculatedValue()
bei AdventureTools.Monsters.ViewModel.CalculatedNumberEditField.Value_CalculatedValueChanged()
bei stupid(Object )
bei XAMLUtilities.Attributes.ListenForPropertyChangedAttribute.InvokeChangedMethod(Object sender)
bei XAMLUtilities.Attributes.ListenForPropertyChangedAttribute.b__0(Object sender, EventKey key, PropertyChangedEventArgs e)
bei XAMLUtilities.WeakReferenceUtilities.EventListener`1.FireEvent(Object sender, EventArgs e)
bei System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)
bei XAMLUtilities.NotificationProperties.NotifyPropertyChangedBase.OnPropertyChanged(String propertyName)
bei XAMLUtilities.NotificationProperties.NotifyPropertyChangedBase.UpdatePropertyValue[TOwnerType,TValueType](String propertyName, TValueType& currentValue, TValueType newValue, Action`1 valueChanged)
bei XAMLUtilities.NotificationProperties.NotifyPropertyChangedBase.UpdatePropertyValue[TOwnerType,TValueType](String propertyName, TValueType& currentValue, TValueType newValue)
bei XAMLUtilities.OwnedObjects.BaseOwnedObject`1.set_Owner(T value)
bei XAMLUtilities.OwnedObjects.BaseOwnedObject`1.XAMLUtilities.OwnedObjects.Interfaces.IOwnedObject.set_Owner(Object value)
bei XAMLUtilities.Attributes.OwnedListAttribute.AttachToItem(IOwnedObject newItem, Object owner, IList parentList, Boolean weak)
bei XAMLUtilities.Attributes.OwnedListAttribute.<>c__DisplayClass1.b__0(Object s, NotifyCollectionChangedEventArgs e)
bei System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
bei System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
bei System.Collections.ObjectModel.ObservableCollection`1.RemoveItem(Int32 index)
bei System.Collections.ObjectModel.Collection`1.RemoveAt(Int32 index)
bei XAMLUtilities.NotificationProperties.TransformedList`1.<>c__DisplayClass1`2.b__0()
bei XAMLUtilities.NotificationProperties.TransformedList`1.Update(Action action)
bei XAMLUtilities.NotificationProperties.TransformedList`1.PushChange[TSourceElement,TTargetElement](NotifyCollectionChangedEventArgs e, IObservableList source, IObservableList target, Action`2 replace, Func`2 transform, Func`2 untransform)
bei XAMLUtilities.NotificationProperties.TransformedList`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
bei System.Collections.ObjectModel.ObservableCollection`1.RemoveItem(Int32 index)
bei System.Collections.ObjectModel.Collection`1.Remove(T item)
bei System.Collections.ObjectModel.Collection`1.System.Collections.IList.Remove(Object value)
bei XAMLUtilities.Commands.DeleteCommand.RemoveItem(IWrapperViewModel parameter)
bei XAMLUtilities.Commands.DeleteCommand.ExecuteOverride(IWrapperViewModel parameter)
bei XAMLUtilities.Commands.CommandBase`2.System.Windows.Input.ICommand.Execute(Object parameter)
bei MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
bei System.Windows.Controls.Primitives.ButtonBase.OnClick()
bei System.Windows.Controls.Button.OnClick()
bei System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
bei System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
bei System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
bei System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
bei System.Windows.UIElement.CrackMouseButtonEventAndReRaiseEvent(DependencyObject sender, MouseButtonEventArgs e)
bei System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
bei System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
bei System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
bei System.Windows.Input.InputManager.ProcessStagingArea()
bei System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
bei System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
bei System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
bei System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
bei System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
bei System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
bei System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
bei MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
bei System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
bei System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
bei System.Windows.Threading.Dispatcher.Run()
bei System.Windows.Application.RunDispatcher(Object ignore)
bei System.Windows.Application.RunInternal(Window window)
bei System.Windows.Application.Run(Window window)
bei System.Windows.Application.Run()
bei AdventureTools.App.Main()
InnerException:


Everything else with the same mechanism (powers, auras, ...) works perfectly.

Hope i could help.

Laures
Confirmed, happens here as well. As far as I can tell, changing any of the data fields after adding a saving throw does not prevent the crash from happening.
Thirded, removing a saving throw will crash the program.

Play whatever the **** you want. Never Point a loaded party at a plot you are not willing to shoot. Arcane Rhetoric. My Blog.

Ok, I was just coming here to report that bug, guess I'm not alone.
Confirmed.
Thanks for the report, we are working to fix bugs like these for the September release.
Mike Donais. Cryptozoic R&D
Yep yep! I'll echo Mike with the thanks for posting the bug, but please remember to also report the bug through the form if you haven't already done so.

Trevor Kidd Community Manager

Sign In to post comments