GNOME Bugzilla – Bug 738078
Segmentation fault at startup on some systems (0.93 and git version)
Last modified: 2014-10-22 15:37:58 UTC
The software does not launch properly: $ pitivi Missing soft dependency: - pycanberra not found on the system -> active les notifications sonores lorsque le rendu est terminé (pitivi:6275): Gdk-WARNING **: gdk_window_set_icon_list: icons too large Erreur de segmentation (core dumped)
Bonjour Mathou, Is this really the git version or you forgot to specify the version? How did you build or install it? Which Linux distribution? And for a segfault like that, we'll need a gdb trace. See http://wiki.pitivi.org/wiki/Bug_reporting#Providing_debugging_information
Hello, I have the latest version from the repository (0.93-3) and the latest Ubuntu (14.4, 64 bits). Here the gdb trace. I hope it will help. (gdb) run /usr/bin/pitivi Starting program: /usr/bin/python /usr/bin/pitivi [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffeb4ca700 (LWP 3333)] [New Thread 0x7fffea65c700 (LWP 3334)] Missing soft dependency: - pycanberra not found on the system -> active les notifications sonores lorsque le rendu est terminé [New Thread 0x7fffd63c5700 (LWP 3335)] [New Thread 0x7fffd5bc4700 (LWP 3336)] [New Thread 0x7fffc2993700 (LWP 3337)] (pitivi:3329): Gdk-WARNING **: gdk_window_set_icon_list: icons too large Program received signal SIGSEGV, Segmentation fault. __GI___pthread_mutex_lock (mutex=0x7fffffff80a0) at ../nptl/pthread_mutex_lock.c:66 66 ../nptl/pthread_mutex_lock.c: Aucun fichier ou dossier de ce type.
Hm that doesn't seem like the complete gdb output at all, it certainly doesn't end there... and I did't see you entering the "bt full" (or similar) command to actually get the trace from that segmentation fault?
Created attachment 288193 [details] gdb stack trace The gdb stack trace or pitivi. $ gdb python (gdb) run /usr/bin/python (gdb) bt full
Created attachment 288194 [details] Debug log of the pitivi run Here the debug trace when the command PITIVI_DEBUG=6 /usr/bin/pitivi is run.
I see the same crash on openSUSE 13.2 (release candidates) and openSUSE Factory (the rolling release). A full stack trace (well, almost full.. it manages to crash gdb) Program received signal SIGSEGV, Segmentation fault. __GI___pthread_mutex_lock (mutex=0x7fffffff8b20) at ../nptl/pthread_mutex_lock.c:66 66 ../nptl/pthread_mutex_lock.c: No such file or directory. Missing separate debuginfos, use: zypper install libinput5-debuginfo-0.6.0-18.3.x86_64 pitivi-debuginfo-0.93.0.1412973377.7d88434-0.x86_64 (gdb) bt
+ Trace 234210
The stack trace above is done with these versions: pitivi-0.93.0.1412973377.7d88434 (so git snapshot 7d88434, which was master at the time) python 3.4.1 cairo 1.12.16 pycairo 1.10
Ok so now we have someone experiencing this on Ubuntu, someone on OpenSuSE, and spstarr (Shawn Starr) on Fedora 21. And yet I'm not experiencing those issues, either on Fedora 20 or on Fedora 21 (F21 in a virtualbox machine, either with LLVMpipe or the "Guest Additions" graphic drivers) Dominique further noted that Lubosz' old trick of trying to run as root had a twist: "I don't even have to start it as root; I can simply 'su' to my user and start it. So likely some dbus interaction or so (those are usually the thing not surviving su)"
According to the backtrace this seems to be a duplicate of Bug 727851. Using the git master of Pitivi with the glimagesink or using GNOME Shell with the release version should fix it.
Okay since this bug is still existent on git master, it does not seem to involve the clutter sink. Strangely the backtrace is the same. We need to carefully separate the bug reports still using the cluttersink version of Pitivi, and the ones using the glimagesink. I would like to be able to reproduce this... @Dominique @Mathou which distro and graphics driver are you using? Can you reproduce this in a virtual machine?
I have the latest Ubuntu (14.4, 64 bits) and a ATI AMD Mobility Radeon HD 5870. I have try on a virtual machine (an older version of ubuntu : 12.4) and it work fine.
(In reply to comment #1) > Bonjour Mathou, > > Is this really the git version or you forgot to specify the version? > > How did you build or install it? > Which Linux distribution? > > And for a segfault like that, we'll need a gdb trace. > See http://wiki.pitivi.org/wiki/Bug_reporting#Providing_debugging_information I encountered the same situation: yym@debian:~$ pitivi Missing soft dependency: - pycanberra not found on the system -> enables sound notifications when rendering is complete (pitivi:4192): Gdk-WARNING **: gdk_window_set_icon_list: icon too large (512x512) /usr/lib/x86_64-linux-gnu/pitivi/python/pitivi/project.py:559: TypeError: Passing arguments to gi.types.Boxed.__init__() is deprecated. All arguments passed will be ignored. Gst.Caps("application/ogg"), /usr/lib/x86_64-linux-gnu/pitivi/python/pitivi/project.py:563: TypeError: Passing arguments to gi.types.Boxed.__init__() is deprecated. All arguments passed will be ignored. video_profile = GstPbutils.EncodingVideoProfile.new(Gst.Caps("video/x-theora"), /usr/lib/x86_64-linux-gnu/pitivi/python/pitivi/project.py:565: TypeError: Passing arguments to gi.types.Boxed.__init__() is deprecated. All arguments passed will be ignored. Gst.Caps("video/x-raw"), /usr/lib/x86_64-linux-gnu/pitivi/python/pitivi/project.py:569: TypeError: Passing arguments to gi.types.Boxed.__init__() is deprecated. All arguments passed will be ignored. audio_profile = GstPbutils.EncodingAudioProfile.new(Gst.Caps("audio/x-vorbis"), /usr/lib/x86_64-linux-gnu/pitivi/python/pitivi/project.py:571: TypeError: Passing arguments to gi.types.Boxed.__init__() is deprecated. All arguments passed will be ignored. Gst.Caps("audio/x-raw"), /usr/lib/x86_64-linux-gnu/pitivi/python/pitivi/project.py:791: TypeError: Passing arguments to gi.types.Boxed.__init__() is deprecated. All arguments passed will be ignored. self.container_profile.set_format(Gst.Caps(muxertype)) /usr/lib/x86_64-linux-gnu/pitivi/python/pitivi/project.py:770: TypeError: Passing arguments to gi.types.Boxed.__init__() is deprecated. All arguments passed will be ignored. self.video_profile.set_format(Gst.Caps(videotype)) /usr/lib/x86_64-linux-gnu/pitivi/python/pitivi/project.py:750: TypeError: Passing arguments to gi.types.Boxed.__init__() is deprecated. All arguments passed will be ignored. self.audio_profile.set_format(Gst.Caps(audiotype)) Traceback (most recent call last):
+ Trace 234222
_run_pitivi()
sys.exit(ptv.main(sys.argv))
ptv = StartupWizardGuiPitivi(debug=options.debug)
self.projectManager.newBlankProject(emission=False)
self.emit("new-project-loaded", self.current_project, emission)
*args, **kwargs)
res = cb(*ar, **kw)
self.ruler.setProjectFrameRate(self._project.videorate)
self.ns_per_frame = float(1 / self.frame_rate) * Gst.SECOND
My OS is Debian Jessie, but pycanberra can't be find in Jessie's repositories. Thank you.
yym, your problem is a different one, bug #735529 The bug report here is only about a *segfault* - if you encounter that segfault with the git version, let us know.
@yym: You have a totally different problem. Update your gst-python version.
Created attachment 288677 [details] [review] Fix the segfault Actually the bug was never fixed. Although the cluttersink was replaced by glimagesink, the import causing the segfault was never removed.
(In reply to comment #15) > Created an attachment (id=288677) [details] [review] > Fix the segfault > > Actually the bug was never fixed. Although the cluttersink was replaced by > glimagesink, the import causing the segfault was never removed. Lubosz, Great stuff! I applied that patch on my local installed version of pitivi and I can start it up now; didn't do anything more than that, but it STARTS
Created attachment 288689 [details] [review] fix segfault updated to current master
commit 39d4a56b07d9fe2ca4216e2bea4ed4d7da9950a1 Author: Lubosz Sarnecki <lubosz@gmail.com> Date: Thu Oct 16 13:36:39 2014 +0200 check: remove ClutterGst https://bugzilla.gnome.org/show_bug.cgi?id=738078