Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled exception when scrubbing timeline through videos shorter than 3 seconds #69

Closed
danieljimeneznz opened this issue Oct 29, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@danieljimeneznz
Copy link

Hi - firstly love this tool, super useful at cutting down content for ML.
I receive the following error when attempting to cut videos shorter than 3 seconds:

System.OverflowException: Negating the minimum value of a twos complement number is invalid.
   at System.Math.AbsHelper(Int64 value)
   at SimpleVideoCutter.VideoCutterTimeline.LocateNearestKeyFrame(Int64 position)
   at SimpleVideoCutter.VideoCutterTimeline.FindNearestAcceptableKeyFrame(Int64 position)
   at SimpleVideoCutter.VideoCutterTimeline.NormalizeMouseEventX(Int32 x)
   at SimpleVideoCutter.VideoCutterTimeline.VideoCutterTimeline_MouseMove(Object sender, MouseEventArgs e)
   at System.Windows.Forms.Control.OnMouseMove(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseMove(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.UserControl.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

When pressing Continue on this dialog the application continues to function as expected, it's just annoying because this popup comes up a fair amount and can probably just be caught and ignored.

@bartekmotyl
Copy link
Owner

Hi, thanks for reporting. Would it be possible to provide a sample video to reproduce the problem?

@bartekmotyl bartekmotyl added the bug Something isn't working label Oct 30, 2022
@danieljimeneznz
Copy link
Author

Let me know if this doesn't work for you. If you click on the timeline scrubber at about the first frame then the error should popup.

twos-compliment-error.mp4

@bartekmotyl
Copy link
Owner

Fixed in development branch, fix will be included in next release.

@bartekmotyl bartekmotyl added this to the release-0.26.0 milestone Oct 31, 2022
@bartekmotyl bartekmotyl self-assigned this Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants