WreckedAvent / slimCat

slimCat F-Chat Client
Other
27 stars 17 forks source link

Crash on character select #1

Closed WreckedAvent closed 10 years ago

WreckedAvent commented 10 years ago

Upon selecting a character, some users will find their settings not saved and will encounter a soft-crash.

example stacktrace:

Exception: Object reference not set to an instance of an object.
Occured at: Utility Channel ViewModel, init

Immediate stack trace: Void .ctor(System.String, Microsoft.Practices.Unity.IUnityContainer, Microsoft.Practices.Prism.Regions.IRegionManager, Microsoft.Practices.Prism.Events.IEventAggregator, Slimcat.Models.IChatModel) at Slimcat.ViewModels.UtilityChannelViewModel..ctor(String name, IUnityContainer contain, IRegionManager regman, IEventAggregator events, IChatModel cm) in c:\Users\Justin\Documents\Code\slimCat\slimCat\ViewModels\Middle (Channels)\UtilityChannelViewModel.cs:line 146

also:

Exception: Input string was not in a correct format.
Occured at: Utility Channel ViewModel, init

Immediate stack trace: Double ParseDouble(System.String, System.Globalization.NumberStyles, System.Globalization.NumberFormatInfo) at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
at System.Double.Parse(String s, NumberStyles style, IFormatProvider provider)
at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
at Slimcat.Services.SettingsDaemon.ReadApplicationSettingsFromXml(String currentCharacter) in c:\Users\Justin\Documents\Code\slimCat\slimCat\Services\SettingsDaemon.cs:line 146
at Slimcat.ViewModels.UtilityChannelViewModel..ctor(String name, IUnityContainer contain, IRegionManager regman, IEventAggregator events, IChatModel cm) in c:\Users\Justin\Documents\Code\slimCat\slimCat\ViewModels\Middle (Channels)\UtilityChannelViewModel.cs:line 144

and finally:

Exception: 'CommandConverter' is unable to convert 'Slimcat.Libraries.RelayCommand' to 'System.String'.
Occured at: System

Immediate stack trace: System.Exception GetConvertToException(System.Object, System.Type) at System.ComponentModel.TypeConverter.GetConvertToException(Object value, Type destinationType)
at System.Windows.Input.CommandConverter.ConvertTo(ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType)
at System.Windows.Documents.DPTypeDescriptorContext.GetStringValue(DependencyProperty property, Object propertyValue)
at System.Windows.Documents.TextRangeSerialization.WriteNoninheritableProperty(XmlWriter xmlWriter, DependencyProperty property, Object propertyValue, Type propertyOwnerType, Boolean onlyAffected, DependencyObject complexProperties, Object localValue)
at System.Windows.Documents.TextRangeSerialization.WriteNoninheritableProperties(Type elementTypeStandardized, ITextPointer context, XmlWriter xmlWriter, Boolean onlyAffected, DependencyObject complexProperties)
at System.Windows.Documents.TextRangeSerialization.WriteStartXamlElement(ITextRange range, ITextPointer textReader, XmlWriter xmlWriter, XamlTypeMapper xamlTypeMapper, Boolean reduceElement, Boolean preserveTextElements)
at System.Windows.Documents.TextRangeSerialization.WriteXamlTextSegment(XmlWriter xmlWriter, ITextPointer rangeStart, ITextPointer rangeEnd, XamlTypeMapper xamlTypeMapper, Int32& elementLevel, WpfPayload wpfPayload, Boolean ignoreWriteHyperlinkEnd, List`1 ignoreList, Boolean preserveTextElements)
at System.Windows.Documents.TextRangeSerialization.WriteXaml(XmlWriter xmlWriter, ITextRange range, Boolean useFlowDocumentAsRoot, WpfPayload wpfPayload, Boolean preserveTextElements)
at System.Windows.Documents.WpfPayload.SaveRange(ITextRange range, Stream& stream, Boolean useFlowDocumentAsRoot, Boolean preserveTextElements)
at System.Windows.Documents.WpfPayload.SaveRange(ITextRange range, Stream& stream, Boolean useFlowDocumentAsRoot)
at System.Windows.Documents.TextEditorCopyPaste._CreateDataObject(TextEditor This, Boolean isDragDrop)
at System.Windows.Documents.TextEditorCopyPaste.Copy(TextEditor This, Boolean userInitiated)
at System.Windows.Documents.TextEditorCopyPaste.OnCopy(Object target, ExecutedRoutedEventArgs args)
at System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
at System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.UIElement.OnExecutedThunk(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.Input.ExecutedRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
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.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
at System.Windows.Input.RoutedCommand.ExecuteCore(Object parameter, IInputElement target, Boolean userInitiated)
at System.Windows.Input.CommandManager.TranslateInput(IInputElement targetElement, InputEventArgs inputEventArgs)
at System.Windows.UIElement.OnKeyDownThunk(Object sender, KeyEventArgs e)
at System.Windows.Input.KeyEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
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.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
WreckedAvent commented 10 years ago

Two of these crash kinds are hoped to be fixed in 3.02 dev. Still not sure about the convert to string one.

WreckedAvent commented 10 years ago

Confirmed two of the ones are solved. The third one... Hell if I know. It's just one person so far.