sheldom009 / subtitleedit

Automatically exported from code.google.com/p/subtitleedit
0 stars 1 forks source link

Exception when generating Wave Form #149

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
(enter only *ONE* issue in each report)
What steps will reproduce the problem?
1. Open subtitle (.srt in my case)
2. Open video (.mkv in my case)
3. Video > Show Waveform
4. Video > Show Video
5. 'Click to add Waveform'

What is the expected output? What do you see instead?
The expected output is the waveform shown. A red cross is shown and an 
exception is thrown instead.

What version of the product are you using? On what operating system?
Subtitle Edit v3.3.2
Windows 7 64-bit SP1 NL
VLC 2.0.6 installed

Please provide any additional information below.
System.OverflowException: Het negatief maken van de minimumwaarde van een 
negatieve representatie van een binair getal (twos complement number) is 
ongeldig.
   bij System.Math.AbsHelper(Int32 value)
   bij Nikse.SubtitleEdit.Controls.AudioVisualizer.WaveFormPaint(Object sender, PaintEventArgs e)
   bij System.Windows.Forms.Control.OnPaint(PaintEventArgs e)
   bij System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
   bij System.Windows.Forms.Control.WmPaint(Message& m)
   bij System.Windows.Forms.Control.WndProc(Message& m)
   bij System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   bij System.Windows.Forms.ContainerControl.WndProc(Message& m)
   bij System.Windows.Forms.UserControl.WndProc(Message& m)
   bij System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   bij System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   bij System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Translated: Making negative of the minimum value from a negative representation 
of a binary number (twos complement number) is invalid.

Original issue reported on code.google.com by denniz...@gmail.com on 7 Jun 2013 at 9:57

GoogleCodeExporter commented 8 years ago
Correction: I use Subtitle Edit v3.3.4

Original comment by denniz...@gmail.com on 7 Jun 2013 at 10:04

GoogleCodeExporter commented 8 years ago
Does it always happen or is it only one video?

If you know C# / Visual studio you can debug it... otherwise you can try this: 
http://www.nikse.dk/SubtitleEditDebug.zip (exe file only)
(should also display a line number when/if it crashes)

Original comment by nikse.dk@gmail.com on 7 Jun 2013 at 4:54

GoogleCodeExporter commented 8 years ago
I tested it on 2 other files and it didn't throw any error.
I happen to know C# and compiled the project myself. Guess what, no exception! 
So it's only thrown in the build I downloaded?

Original comment by denniz...@gmail.com on 7 Jun 2013 at 6:33

GoogleCodeExporter commented 8 years ago
I might have fixed the error... did you download latest version in svn or the 
zip source file from "SE 3.3.4 C# source code" ?

Original comment by nikse.dk@gmail.com on 7 Jun 2013 at 6:55

GoogleCodeExporter commented 8 years ago
I downloaded the zip-file.
Can you explain what the error was, I'm interested. Is the source different 
from the source which the .exe is compiled for, since I didn't get the error on 
the compiled version.

Original comment by denniz...@gmail.com on 7 Jun 2013 at 7:07

GoogleCodeExporter commented 8 years ago
No, the source code you got and SE 3.3.4 should be the same!

Latest version in SVN has many changes though: 
http://code.google.com/p/subtitleedit/source/checkout
compiled http://www.nikse.dk/SubtitleEdit.zip

Original comment by nikse.dk@gmail.com on 7 Jun 2013 at 8:15

GoogleCodeExporter commented 8 years ago
That compiled version works, so It's solved I guess. Weird I didn't got the 
error when I compiled it myself though.

Original comment by denniz...@gmail.com on 7 Jun 2013 at 9:06

GoogleCodeExporter commented 8 years ago
Yes, weird as the SE 3.3.4 and the 3.3.4 source should be the same.
Unless you downloaded a 3.3.4 version from nikse.dk? (beta/test versions)

Well, I guess I'll close this for now

Original comment by nikse.dk@gmail.com on 8 Jun 2013 at 6:29