FS#39714 - [pitivi] 0.93-3 Segmentation Fault on Startup
Attached to Project:
Community Packages
Opened by Kevin Sarendranath (k.sarend) - Tuesday, 01 April 2014, 21:26 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 17 November 2014, 10:49 GMT
Opened by Kevin Sarendranath (k.sarend) - Tuesday, 01 April 2014, 21:26 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 17 November 2014, 10:49 GMT
|
Details
Description:
The application doesn't run. It get hits with a segfault after stating the soft dependencies and crashes. Here's the output from the terminal: $ pitivi Missing soft dependency: - pycanberra not found on the system -> enables sound notifications when rendering is complete ERROR:root:Could not find any typelib for GnomeDesktop Missing soft dependency: - GnomeDesktop not found on the system -> file thumbnails provided by GNOME's thumbnailers Segmentation fault (core dumped) Additional info: package version : 0.93-3 Steps to reproduce: 1) Install pitivi and dependencies from repository. 2) Start pitivi in a terminal and crash occurs. |
This task depends upon
Edit : you can also try lubosz's AUR package : https://aur.archlinux.org/packages/pitivi-git/
the script.
$
...
Using host libthread_db library "/usr/lib/libthread_db.so.1".
File "/usr/bin/pitivi", line 82
print "Couldn't set locale."
^
SyntaxError: invalid syntax
[Inferior 1 (process 4176) exited with code 01]
I just realized that I've got muliple versions of python installed.
I've tried to run the script through each version but there still is the segfault.
Any ideas? Going to try the AUR package now.
Will report back on the status.
The SyntaxError: invalid syntax occurs because python2 code is ran in the python3 interpreter.
the segmentation fault flag pointing to an multithreaded issue.
$
...
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7808234 in pthread_mutex_lock () from /usr/lib/libpthread.so.0
Here's the backtrace of all the threads.
backtrace_multi.txt (6.9 KiB)
Which desktop environment do you use? Do you have any fancy cursor modifications?
In the end it crashes in libX11 / XrmQGetResource.
I see that you use r600, maybe driver related?
Is this reproducable with other Python / GTK software? Maybe gnome-music.
backtrace. One using KDE and the other MATE. One using the r600 driver
and the other using nouveau. No special changes to either. I installed
gnome-music and it ran perfectly on both systems but both crashes
on pitivi.
Do you have it installed? It starts for me, even without gnome-desktop.
I will try to run pitivi with mate or i3wm.
I was running GDM.
The crash occurs for me in cairo. Backtrace attached (current pitivi git version).
The crash even occurs in GNOME Classic.
So the bug should be worded:
Pitivi segfaults in Cairo when not run in GNOME Shell.
https://bugzilla.gnome.org/show_bug.cgi?id=727851
Edit:
since the bundle works in arch, the dependencies have to be wrong.
I bet it's clutter-gst.
http://fundraiser.pitivi.org/download-bundles
intresting note, it does not crash when run as root from a terminal
edit: I am guessing its a permissions issue with something
Especially in the X11 part of things.
Anyway, it should not segfault when its a permissions issue.
I guess running as root just hides the symptoms of the problem.
Kubuntu is apparently encountering the same problem
https://bugs.launchpad.net/ubuntu/+source/pitivi/+bug/1307746
Oddly with user (B) I have no problem(user B is not root, hehe)
I also try to remove .config/piviti from user A and start again but didint work.
Shoud be same shared configuration with others gnome program.
[EDIT] Both LXDE
https://bugs.launchpad.net/ubuntu/+source/pitivi/+bug/1307746
@scorp: the upstream bug url is https://bugzilla.gnome.org/show_bug.cgi?id=727851
the ubuntu bug is also referenced there.
contributions to the upstream bug discussion are welcome
The Fedora build Pitivi bundle does work.
Building with the gstreamer build system cerbero works on Arch and fixes the issue. You need the cerbero branch from thiblahute with my Arch patches:
https://github.com/lubosz/cerbero/tree/gi%2Bpitivi
Running my minimal crash python example works from the cerbero shell on Arch:
https://bugzilla.gnome.org/attachment.cgi?id=273831
$ ./cerbero-uninstalled shell
$ ./clutter-crash.py
This is a packaging issue and Ubuntu also has it.
Cerbero builds 10 boostrap packages and 89 for Pitivi. So the problem can only be in 99 Arch packages.
The "fix" I mentioned by using cerbero, is building the whole GTK+ and GStreamer stack by "hand" without pacman. There is not much sense to package this :)
So the problem needs to be found in the Arch glib2 / gstreamer-1.0 stack. Didn't have much time comparing the builds yet.
My bug report for clutter-gst didn't find much love yet either: https://bugzilla.gnome.org/show_bug.cgi?id=729643
I reinstalled pitivi on my Mate Arch Box and it works.
The only problem is that the GUI looks horrible but other than that, the program functions.
So this problem may be linked within clutter.
@GI_Jack: cerbero is a different build system. I does not use PKGBUILDs and the Arch build flags and methods from the ABS. Everything could be different there. You can build it on Arch though.
Clutter is just a speculation guess because it deals with the GUI.
It could be any other libraries that deals with the GUI since the program functionally works on my Mate box.
Happens everytime.
My display manager is lxdm.
BTW: Cinelerra won't start with i3wm too (but works in openbox).
I think I have a different backtrace:
Traceback (most recent call last):
File "/usr/bin/pitivi", line 137, in <module>
_run_pitivi()
File "/usr/bin/pitivi", line 124, in _run_pitivi
sys.exit(ptv.main(sys.argv))
File "/usr/lib/pitivi/python/pitivi/application.py", line 416, in main
ptv = StartupWizardGuiPitivi(debug=options.debug)
File "/usr/lib/pitivi/python/pitivi/application.py", line 362, in __init__
self.projectManager.newBlankProject(emission=False)
File "/usr/lib/pitivi/python/pitivi/project.py", line 429, in newBlankProject
self.emit("new-project-loaded", self.current_project, emission)
File "/usr/lib/pitivi/python/pitivi/utils/signal.py", line 212, in emit
*args, **kwargs)
File "/usr/lib/pitivi/python/pitivi/utils/signal.py", line 187, in emit
res = cb(*ar, **kw)
File "/usr/lib/pitivi/python/pitivi/timeline/timeline.py", line 1391, in _projectChangedCb
self.ruler.setProjectFrameRate(self._project.videorate)
File "/usr/lib/pitivi/python/pitivi/timeline/ruler.py", line 244, in setProjectFrameRate
self.ns_per_frame = float(1 / self.frame_rate) * Gst.SECOND
TypeError: unsupported operand type(s) for /: 'int' and 'NoneType'
Install this: https://www.archlinux.org/packages/community/x86_64/gst-python/
Otherwise you need a more recent version: https://aur.archlinux.org/packages/gst-python-git/
@All: This has been fixed upstream. Install the git package if you experience this issue. It will be in the next release.
https://aur.archlinux.org/packages/pitivi-git/
http://jeff.ecchi.ca/blog/2014/11/02/tricks-or-tracebacks-pitivi-0-94-is-here/
It's in the new release.