LingFeng-bbben / MajdataView

Next-generation Simai: Note disgner for maimai. The unity viewer part of the Majdata.
GNU General Public License v3.0
312 stars 38 forks source link

旧错新提。。 #95

Closed kaguyas closed 1 year ago

kaguyas commented 1 year ago

索引超出范围,如图 image

发生错误

mscorlib At: 索引超出范围。必须为非负值并小于集合大小。

参数名: index 在 System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)

在 MajdataEdit.MainWindow.SeekTextFromTime() 位置 D:\github_repository\MajdataEdit\MainWindowCore.cs:行号 0

在 MajdataEdit.MainWindow.ScrollWave(Double delta) 位置 D:\github_repository\MajdataEdit\MainWindowCore.cs:行号 1066

在 MajdataEdit.MainWindow.MusicWave_MouseMove(Object sender, MouseEventArgs e) 位置 D:\github_repository\MajdataEdit\MainWindow.xaml.cs:行号 548

在 System.Windows.Input.MouseEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)

在 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

在 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)

在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)

在 System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)

在 System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)

在 System.Windows.Input.InputManager.ProcessStagingArea()

在 System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)

在 System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)

在 System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)

在 System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

在 System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)

在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

确定

能使用谱面文件复现/直接复现吗? 我觉得不能,这东西我一度怀疑是随机报错。之前出错于新建好maj文件且定义bpm拍号后,输入第一个音符出现此问题。且自己测试同谱面文件未变化,重新打开maj后不会报错。但新建其他maj文件时均有小概率出现问题。现在出错于写了30秒后,原因完全未知 由于没有及时保存所以不敢测试关闭后是否会重新出现。

LingFeng-bbben commented 1 year ago

你是不是没更新啊你

LeZi9916 commented 1 year ago

你是不是没更新啊你

你别说,4.1版还真有这个问题

LingFeng-bbben commented 1 year ago

如果能稳定复现的话请再重开issue