GNOME Bugzilla – Bug 622134
PiTiVi constantly crashes when zooming in the track
Last modified: 2011-07-29 00:08:53 UTC
Using PiTiVi 0.13.4 on Lucid and GStreamer from PPA for GStreamer developers, PiTiVi always crashes when sooming in the track Step to reproduce Add a video (for instance http://libre-ouvert.toile-libre.org/data/documents/stallman_free_software_song_320x240.ogv ) to the library and drag it at the beginning at the beginning of the track Zoom in using the slider (or the ctrl+mouse wheel) PiTiVi crashes (Terminal says : "segmentation fault")
Could you attach the full terminal output ? And preferably also the backtrace.
FWIW, I can't reproduce the problem on either pitivi git or 0.13.4. I have a feel that "segmentation fault" *is* the full terminal output :) To get a backtrace, make sure to install all the "-dbg" (debug) packages related to gstreamer, pygtk, etc. Then run "gdb bin/pitivi"; at the prompt run "run", make it crash, then do "bt full" (there may be multiple pages of output).
Indeed "segmentation fault" was the full terminal output How can i backtrace a python script ?
I'm still experiencing this bug with PiTiVi 0.13.4.2 in Maverick beta up to date. I've made an absolutely clean install on a new hard drive with new / and /home. I didn't add any PPA. This bug occurs even if i deactivate waves and thumbs in the time line I still don't know how to trace the bug considering that PiTiVi is written in Python Being crash-proof is the functionality n°1 i'm looking for in an application. Having PiTiVi always crashing when i use the slider is not cool at all :-/
Ok, make sure you have python-dbg python-gtk2-dbg python-gst0.10-dbg gstreamer0.10-gnonlin-dbg *gstreamer0.10*-dbg ...installed, then run: "gdb python" ...then, at the gdb prompt, type "run bin/pitivi" (or "run /usr/bin/pitivi" for the system-wide installed version) Make it crash, then execute: "bt full" Scroll as much as needed and paste all the output here. Info taken from http://wiki.python.org/moin/DebuggingWithGdb
+ Trace 223643
Hmmm, could this be similar (or the same) as https://bugs.launchpad.net/ubuntu/+source/pitivi/+bug/642426 ?
Confirming. 100% reproducible in ubuntu maverick. We'll probably need to backport a fix for this.
This is just plain weird. I can reproduce it too here. It crashes when attempting to call ... Preview.do_simple_update This is the relevant code where it crashes in python (PyEval_EvalCodeEx) ====================================== for (i = 0; i < n; i++) { x = args[i]; Py_INCREF(x); <== HERE SETLOCAL(i, x); } ======================================= Where: i = 1 n = 2 x = 0x0 <== Incrementing a NULL pointer <<BOOM>>
Yeah I debugged this with jeff yesterday. The crash is a bug in pygoocanvas. I have a fix for it, I'll make a patch on monday.
Would be nice to get that fix pushed in distros :)
Created attachment 171260 [details] [review] fix The bug is in _wrap_GooCanvasItemSimple__proxy_do_simple_update. The issue is here: py_cr = PycairoContext_FromContext(cairo_reference(cr), &PyGdkCairoContext_Type, NULL); py_args = PyTuple_New(1); PyTuple_SET_ITEM(py_args, 0, py_cr); If PycairoContext_FromContext fails it returns NULL. We add a NULL item to a tuple and it crashes unreffing NULL when the tuple is disposed.
with today maverick updates (pygoocanvas & pitivi) everything works fine now, thank you
Can I have a patch against pitivi 0.13.5? Does pygoocanvas need patching too?
This pygoocanvas bug has been fixed in recent versions.