After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 421515 - [Advanced Timeline] Crashed with ValueError in drawRuler()
[Advanced Timeline] Crashed with ValueError in drawRuler()
Status: RESOLVED OBSOLETE
Product: pitivi
Classification: Other
Component: General
0.10.1
Other Linux
: Normal normal
: Git
Assigned To: Pitivi maintainers
Pitivi maintainers
Depends on:
Blocks:
 
 
Reported: 2007-03-22 15:24 UTC by Sebastien Bacher
Modified: 2007-04-19 10:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastien Bacher 2007-03-22 15:24:16 UTC
The bug has been opened on https://launchpad.net/bugs/81254

"Binary package hint: pitivi

pillo@jump:~$ pitivi --sync
/usr/lib/python2.4/site-packages/cairo/__init__.py:1: RuntimeWarning: Python C API version mismatch for module cairo._cairo: This Python has API version 1013, module cairo._cairo has version 1012.
  from _cairo import *
/usr/lib/python2.4/site-packages/gst-0.10/gst/__init__.py:108: RuntimeWarning: Python C API version mismatch for module _gst: This Python has API version 1013, module _gst has version 1012.
  from _gst import *
/usr/lib/python2.4/site-packages/gst-0.10/gst/__init__.py:109: RuntimeWarning: Python C API version mismatch for module interfaces: This Python has API version 1013, module interfaces has version 1012.
  import interfaces
/usr/lib/pitivi/python/pitivi/ui/ruler.py:149: DeprecationWarning: integer argument expected, got float
  for i in range(self.border, allocation.width, zoomRatio):
Traceback (most recent call last):
  • File "/usr/lib/pitivi/python/pitivi/ui/layerwidgets.py", line 63 in _zoomClickedCb
    self.setZoomRatio(ratio)
  • File "/usr/lib/pitivi/python/pitivi/ui/complexinterface.py", line 136 in setZoomRatio
    self.parent.setZoomRatio(zoomratio)
  • File "/usr/lib/pitivi/python/pitivi/ui/complexinterface.py", line 134 in setZoomRatio
    self.zoomChanged()
  • File "/usr/lib/pitivi/python/pitivi/ui/complextimeline.py", line 172 in zoomChanged
    self.topLayer.rightWidget.zoomChanged()
  • File "/usr/lib/pitivi/python/pitivi/ui/ruler.py", line 52 in zoomChanged
    self.doPixmap()
  • File "/usr/lib/pitivi/python/pitivi/ui/ruler.py", line 114 in doPixmap
    self.drawRuler(context, allocation)
  • File "/usr/lib/pitivi/python/pitivi/ui/ruler.py", line 149 in drawRuler
    for i in range(self.border, allocation.width, zoomRatio):
ValueError: range() step argument must not be zero
Traceback (most recent call last):
  • File "/usr/lib/pitivi/python/pitivi/ui/layerwidgets.py", line 63 in _zoomClickedCb
    self.setZoomRatio(ratio)
  • File "/usr/lib/pitivi/python/pitivi/ui/complexinterface.py", line 136 in setZoomRatio
    self.parent.setZoomRatio(zoomratio)
  • File "/usr/lib/pitivi/python/pitivi/ui/complexinterface.py", line 134 in setZoomRatio
    self.zoomChanged()
  • File "/usr/lib/pitivi/python/pitivi/ui/complextimeline.py", line 172 in zoomChanged
    self.topLayer.rightWidget.zoomChanged()
  • File "/usr/lib/pitivi/python/pitivi/ui/ruler.py", line 52 in zoomChanged
    self.doPixmap()
  • File "/usr/lib/pitivi/python/pitivi/ui/ruler.py", line 114 in doPixmap
    self.drawRuler(context, allocation)
  • File "/usr/lib/pitivi/python/pitivi/ui/ruler.py", line 149 in drawRuler
    for i in range(self.border, allocation.width, zoomRatio):
ValueError: range() step argument must not be zero
Traceback (most recent call last):
  • File "/usr/lib/pitivi/python/pitivi/ui/layerwidgets.py", line 63 in _zoomClickedCb
    self.setZoomRatio(ratio)
  • File "/usr/lib/pitivi/python/pitivi/ui/complexinterface.py", line 136 in setZoomRatio
    self.parent.setZoomRatio(zoomratio)
  • File "/usr/lib/pitivi/python/pitivi/ui/complexinterface.py", line 134 in setZoomRatio
    self.zoomChanged()
  • File "/usr/lib/pitivi/python/pitivi/ui/complextimeline.py", line 172 in zoomChanged
    self.topLayer.rightWidget.zoomChanged()
  • File "/usr/lib/pitivi/python/pitivi/ui/ruler.py", line 52 in zoomChanged
    self.doPixmap()
  • File "/usr/lib/pitivi/python/pitivi/ui/ruler.py", line 114 in doPixmap
    self.drawRuler(context, allocation)
  • File "/usr/lib/pitivi/python/pitivi/ui/ruler.py", line 149 in drawRuler
    for i in range(self.border, allocation.width, zoomRatio):
ValueError: range() step argument must not be zero
Traceback (most recent call last):
  • File "/usr/lib/pitivi/python/pitivi/ui/layerwidgets.py", line 63 in _zoomClickedCb
    self.setZoomRatio(ratio)
  • File "/usr/lib/pitivi/python/pitivi/ui/complexinterface.py", line 136 in setZoomRatio
    self.parent.setZoomRatio(zoomratio)
  • File "/usr/lib/pitivi/python/pitivi/ui/complexinterface.py", line 134 in setZoomRatio
    self.zoomChanged()
  • File "/usr/lib/pitivi/python/pitivi/ui/complextimeline.py", line 172 in zoomChanged
    self.topLayer.rightWidget.zoomChanged()
  • File "/usr/lib/pitivi/python/pitivi/ui/ruler.py", line 52 in zoomChanged
    self.doPixmap()
  • File "/usr/lib/pitivi/python/pitivi/ui/ruler.py", line 114 in doPixmap
    self.drawRuler(context, allocation)
  • File "/usr/lib/pitivi/python/pitivi/ui/ruler.py", line 149 in drawRuler
    for i in range(self.border, allocation.width, zoomRatio):
ValueError: range() step argument must not be zero
Traceback (most recent call last):
  • File "/usr/lib/pitivi/python/pitivi/ui/layerwidgets.py", line 63 in _zoomClickedCb
    self.setZoomRatio(ratio)
  • File "/usr/lib/pitivi/python/pitivi/ui/complexinterface.py", line 136 in setZoomRatio
    self.parent.setZoomRatio(zoomratio)
  • File "/usr/lib/pitivi/python/pitivi/ui/complexinterface.py", line 134 in setZoomRatio
    self.zoomChanged()
  • File "/usr/lib/pitivi/python/pitivi/ui/complextimeline.py", line 172 in zoomChanged
    self.topLayer.rightWidget.zoomChanged()
  • File "/usr/lib/pitivi/python/pitivi/ui/ruler.py", line 52 in zoomChanged
    self.doPixmap()
  • File "/usr/lib/pitivi/python/pitivi/ui/ruler.py", line 114 in doPixmap
    self.drawRuler(context, allocation)
  • File "/usr/lib/pitivi/python/pitivi/ui/ruler.py", line 149 in drawRuler
    for i in range(self.border, allocation.width, zoomRatio):
ValueError: range() step argument must not be zero
Traceback (most recent call last):
  • File "/usr/lib/pitivi/python/pitivi/ui/layerwidgets.py", line 63 in _zoomClickedCb
    self.setZoomRatio(ratio)
  • File "/usr/lib/pitivi/python/pitivi/ui/complexinterface.py", line 136 in setZoomRatio
    self.parent.setZoomRatio(zoomratio)
  • File "/usr/lib/pitivi/python/pitivi/ui/complexinterface.py", line 134 in setZoomRatio
    self.zoomChanged()
  • File "/usr/lib/pitivi/python/pitivi/ui/complextimeline.py", line 172 in zoomChanged
    self.topLayer.rightWidget.zoomChanged()
  • File "/usr/lib/pitivi/python/pitivi/ui/ruler.py", line 52 in zoomChanged
    self.doPixmap()
  • File "/usr/lib/pitivi/python/pitivi/ui/ruler.py", line 114 in doPixmap
    self.drawRuler(context, allocation)
  • File "/usr/lib/pitivi/python/pitivi/ui/ruler.py", line 149 in drawRuler
    for i in range(self.border, allocation.width, zoomRatio):
ValueError: range() step argument must not be zero
Traceback (most recent call last):
  • File "/usr/lib/pitivi/python/pitivi/ui/layerwidgets.py", line 63 in _zoomClickedCb
    self.setZoomRatio(ratio)
  • File "/usr/lib/pitivi/python/pitivi/ui/complexinterface.py", line 136 in setZoomRatio
    self.parent.setZoomRatio(zoomratio)
  • File "/usr/lib/pitivi/python/pitivi/ui/complexinterface.py", line 134 in setZoomRatio
    self.zoomChanged()
  • File "/usr/lib/pitivi/python/pitivi/ui/complextimeline.py", line 172 in zoomChanged
    self.topLayer.rightWidget.zoomChanged()
  • File "/usr/lib/pitivi/python/pitivi/ui/ruler.py", line 52 in zoomChanged
    self.doPixmap()
  • File "/usr/lib/pitivi/python/pitivi/ui/ruler.py", line 114 in doPixmap
    self.drawRuler(context, allocation)
  • File "/usr/lib/pitivi/python/pitivi/ui/ruler.py", line 149 in drawRuler
    for i in range(self.border, allocation.width, zoomRatio):
ValueError: range() step argument must not be zero

ProblemType: Crash
Date: Wed Jan 24 11:16:14 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/bin/pitivi
InterpreterPath: /usr/bin/python2.5
Package: pitivi 0.10.1-2
ProcCmdline: python /usr/bin/pitivi --sync
..."
Comment 1 Edward Hervey 2007-03-22 15:56:10 UTC
This is not a crash report. There's plenty of assertions (which are fixed in 0.10.2 btw) but nothing about a crash.

Please provide a backtrace, or try with 0.10.2
Comment 2 Edward Hervey 2007-04-17 14:01:18 UTC
Ping again for reply.

This bug report will be closed in 7 days if there's no reply.
Comment 3 Sebastien Bacher 2007-04-19 10:32:26 UTC
The bug is about the assertion and has a backtrace, what other information do you want? I've asked the submitter to try with 0.10.2, no reply though
Comment 4 Edward Hervey 2007-04-19 10:38:35 UTC
As I said in my first comment, the assertions have been fixed in 0.10.2, I will then close it. Re-open if he still gets those assertions in 0.10.2.