ZeroDivisionError: float division by zero
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenShot Video Editor |
New
|
Undecided
|
Unassigned |
Bug Description
1) Ubuntu 12.10
2) apt-get install openshot
3) Openshot 1.4.3
4) melt 0.8.0
I was adding a still image to a track and messing with the fades. I'm not sure what happened, but OpenShot crashed. It must have saved the project right before the crash, because all subsequent tries to open the file resulted in OpenShot crashing. Running OpenShot from the command line showed a ZeroDivisionError:
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
open_
File "/usr/lib/
project_
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
MyTrack.
File "/usr/lib/
current_frame = MyClip.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
h1, h2 = self.get_
File "/usr/lib/
units = prop_diff / clip_length_frames
ZeroDivisionError: float division by zero
Editing /usr/lib/
- if prop_diff != 0:
+ if prop_diff != 0 and clip_length_frames > 0.0:
Hi,
Please report a bug following this FAQ : /answers. launchpad. net/openshot/ +faq/2197
https:/
You should update your version of MLT. Take a look at this other FAQ : /answers. launchpad. net/openshot/ +faq/1861
https:/
Thanks.
2013/3/13 Victor Trac <email address hidden>
> Public bug reported: pymodules/ python2. 7/openshot/ windows/ MainGTK. py", line item_activated project( file_to_ open) pymodules/ python2. 7/openshot/ windows/ MainGTK. py", line Open(file_ to_open) pymodules/ python2. 7/openshot/ classes/ project. py", line open_project( self, file_path) pymodules/ python2. 7/openshot/ classes/ open_project. py", object. RefreshXML( ) pymodules/ python2. 7/openshot/ classes/ project. py", line L(os.path. join(self. USER_DIR, "sequence.mlt")) pymodules/ python2. 7/openshot/ classes/ project. py", line 0].GenerateXML( dom, tractor1) pymodules/ python2. 7/openshot/ classes/ sequences. py", line GenerateXML( dom, multitrack, fps=fps) pymodules/ python2. 7/openshot/ classes/ track.py" , line 111, GenerateXML( dom, playlist, current_frame, pymodules/ python2. 7/openshot/ classes/ clip.py" , line 654, mposites( dom, current_frame, ending_frame, pymodules/ python2. 7/openshot/ classes/ clip.py" , line 754, ositeXML( dom, current_frame, end, "fade in", fps=fps) pymodules/ python2. 7/openshot/ classes/ clip.py" , line 829, keyframe_ values( "height" , current_frame, end_frame, pymodules/ python2. 7/openshot/ classes/ clip.py" , line 1026, pymodules/ python2. 7/openshot/ classes/ clip.py with this /bugs.launchpad .net/bugs/ 1154416
>
> 1) Ubuntu 12.10
> 2) apt-get install openshot
> 3) Openshot 1.4.3
> 4) melt 0.8.0
>
> I was adding a still image to a track and messing with the fades. I'm
> not sure what happened, but OpenShot crashed. It must have saved the
> project right before the crash, because all subsequent tries to open the
> file resulted in OpenShot crashing. Running OpenShot from the command
> line showed a ZeroDivisionError:
>
> Traceback (most recent call last):
> File "/usr/lib/
> 881, in recent_
> self.open_
> File "/usr/lib/
> 886, in open_project
> self.project.
> File "/usr/lib/
> 347, in Open
> open_project.
> File "/usr/lib/
> line 123, in open_project
> project_
> File "/usr/lib/
> 287, in RefreshXML
> self.GenerateXM
> File "/usr/lib/
> 258, in GenerateXML
> self.sequences[
> File "/usr/lib/
> 232, in GenerateXML
> MyTrack.
> File "/usr/lib/
> in GenerateXML
> current_frame = MyClip.
> fps=fps)
> File "/usr/lib/
> in GenerateXML
> self.GenerateCo
> preview_mode, fps=fps)
> File "/usr/lib/
> in GenerateComposites
> self.CreateComp
> File "/usr/lib/
> in CreateCompositeXML
> h1, h2 = self.get_
> fps, clip_length_frames, kf_start, kf_end)
> File "/usr/lib/
> in get_keyframe_values
> units = prop_diff / clip_length_frames
> ZeroDivisionError: float division by zero
>
> Editing /usr/lib/
> fixed my problem:
>
> - if prop_diff != 0:
> + if prop_diff != 0 and clip_length_frames > 0.0:
>
> ** Affects: openshot
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of OpenShot
> Bugs, which is subscribed to OpenShot Video Editor.
> https:/
>
> Title:
> ZeroDivisionError: float...