System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.Collections.Generic.List`1.get_Item(Int32 index) at LFStudio.MainWindow.Caret_PositionChanged(Object sender, EventArgs e) in c:\Users\Yinseko\Desktop\lfs-master\LFStudio\MainWindow.xaml.cs:line 1689 at System.EventHandler.Invoke(Object sender, EventArgs e) at ICSharpCode.AvalonEdit.Editing.Caret.RaisePositionChanged() in c:\Users\Yinseko\Desktop\lfs-master\ThirdParty\ICSharpCode.AvalonEdit\Editing\Caret.cs:line 249 at ICSharpCode.AvalonEdit.Editing.Caret.set_Position(TextViewPosition value) in c:\Users\Yinseko\Desktop\lfs-master\ThirdParty\ICSharpCode.AvalonEdit\Editing\Caret.cs:line 81 at ICSharpCode.AvalonEdit.Editing.SelectionMouseHandler.SetCaretOffsetToMousePosition(MouseEventArgs e, ISegment allowedSegment) in c:\Users\Yinseko\Desktop\lfs-master\ThirdParty\ICSharpCode.AvalonEdit\Editing\SelectionMouseHandler.cs:line 580 at ICSharpCode.AvalonEdit.Editing.SelectionMouseHandler.SetCaretOffsetToMousePosition(MouseEventArgs e) in c:\Users\Yinseko\Desktop\lfs-master\ThirdParty\ICSharpCode.AvalonEdit\Editing\SelectionMouseHandler.cs:line 565 at ICSharpCode.AvalonEdit.Editing.SelectionMouseHandler.textArea_MouseLeftButtonDown(Object sender, MouseButtonEventArgs e) in c:\Users\Yinseko\Desktop\lfs-master\ThirdParty\ICSharpCode.AvalonEdit\Editing\SelectionMouseHandler.cs:line 395 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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) at System.Windows.Application.RunInternal(Window window) at System.Windows.Application.Run() at LFStudio.App.Main() in c:\Users\Yinseko\Desktop\lfs-master\LFStudio\obj\Debug\App.g.cs:line 0
Coding in Assembly requires a mix of: 80% of brain, passion, intuition, creativity 10% of programming skills 10% of tan levels in your blood.
В копилку багов: - в проге ужасный парсер, плохо обрабатывающий любые сторонние символы, они тут же крашат лфс. Прописал случайно pic: 8=, редактор не только крашнулся, но ещё и отказывался исправлять код. Похоже, что на момент, когда курсор заходит в область фрейма - отрисовка спрайта происходит, даже если перейти не мышкой , а с клавы, и из-за невозможности отрисовать такой спрайт происходит краш.
Код
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.Collections.Generic.List`1.get_Item(Int32 index) at LFStudio.Controls.AnimatedSprite..ctor(ObjectInfo oi, TimeSpan frameDisplayTime, List`1 npics, List`1 waits, Boolean r) in \lfs-master\LFStudio\Controls\AnimatedSprite.cs:line 45 at LFStudio.MainWindow.Caret_PositionChanged(Object sender, EventArgs e) in \lfs-master\LFStudio\MainWindow.xaml.cs:line 1694 at System.EventHandler.Invoke(Object sender, EventArgs e) at ICSharpCode.AvalonEdit.Editing.Caret.RaisePositionChanged() in ICSharpCode.AvalonEdit\Editing\Caret.cs:line 249 at ICSharpCode.AvalonEdit.Editing.Caret.set_Position(TextViewPosition value) in ICSharpCode.AvalonEdit\Editing\Caret.cs:line 81 at ICSharpCode.AvalonEdit.Editing.SelectionMouseHandler.SetCaretOffsetToMousePosition(MouseEventArgs e, ISegment allowedSegment) in \ICSharpCode.AvalonEdit\Editing\SelectionMouseHandler.cs:line 580 at ICSharpCode.AvalonEdit.Editing.SelectionMouseHandler.SetCaretOffsetToMousePosition(MouseEventArgs e) in ICSharpCode.AvalonEdit\Editing\SelectionMouseHandler.cs:line 565 at ICSharpCode.AvalonEdit.Editing.SelectionMouseHandler.textArea_MouseLeftButtonDown(Object sender, MouseButtonEventArgs e) in ICSharpCode.AvalonEdit\Editing\SelectionMouseHandler.cs:line 395 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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) at System.Windows.Application.RunInternal(Window window) at System.Windows.Application.Run() at LFStudio.App.Main() in \Debug\App.g.cs:line 0
Coding in Assembly requires a mix of: 80% of brain, passion, intuition, creativity 10% of programming skills 10% of tan levels in your blood.
Судя по логу. Это косяк в алгоритме анимирования спрайтов крашит программу. Едл скачай исходники, подправишь ошибку, ну или в эксепшн оберни чтобы программа не крашилась а могла дальше выполняться. )))
Щёлкните на дракончика, он должен рости!!! Никто не знает столько, сколько не знаю Я