You are not logged in.

#1 2016-05-02 18:20:42

mjb
Member
From: Germany
Registered: 2012-01-28
Posts: 68

Pitivi segfaults

Hi,

the video editor Pitivi segfaults on my system. It starts up without problems, but whenever I click on the "New" button (welcome screen), it crashes.

Missing soft dependency:
- pycanberra not found on the system
    -> enables sound notifications when rendering is complete
Missing soft dependency:
- GnomeDesktop not found on the system
    -> file thumbnails provided by GNOME's thumbnailers
Missing soft dependency:
- Notify not found on the system
    -> enables visual notifications when rendering is complete
Traceback (most recent call last):
  File "/usr/lib/pitivi/python/pitivi/titleeditor.py", line 394, in tabSwitchedCb
    self._connect_signals()
  File "/usr/lib/pitivi/python/pitivi/titleeditor.py", line 326, in _connect_signals
    self.app.gui.viewer.target.connect(
AttributeError: 'NoneType' object has no attribute 'viewer'

(pitivi:6102): Gtk-WARNING **: Allocating size to pitivi+viewer+TransformationBox 0x3459310 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?

(pitivi:6102): Gtk-WARNING **: Allocating size to pitivi+viewer+TransformationBox 0x3459310 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
Segmentation fault (core dumped)

Is this a problem with Arch or should I report this upstream?

Kindly,
mjb

Offline

#2 2016-05-03 13:01:24

aleb
Member
Registered: 2013-10-14
Posts: 17

Re: Pitivi segfaults

Try to run like this to get some more info about what's happening:
$ PITIVI_DEBUG=3 pitivi

Until 0.96 is released you can try to use flatpak to run Pitivi: http://wiki.pitivi.org/wiki/Install_with_flatpak

Last edited by aleb (2016-06-08 01:21:50)

Offline

#3 2016-05-03 13:07:57

mjb
Member
From: Germany
Registered: 2012-01-28
Posts: 68

Re: Pitivi segfaults

Hi,

thanks for your reply. Here is the full output with the debug level set to 3:

Missing soft dependency:
- pycanberra not found on the system
    -> enables sound notifications when rendering is complete
Missing soft dependency:
- GnomeDesktop not found on the system
    -> file thumbnails provided by GNOME's thumbnailers
Missing soft dependency:
- Notify not found on the system
    -> enables visual notifications when rendering is complete
Traceback (most recent call last):
  File "/usr/lib/pitivi/python/pitivi/titleeditor.py", line 394, in tabSwitchedCb
    self._connect_signals()
  File "/usr/lib/pitivi/python/pitivi/titleeditor.py", line 326, in _connect_signals
    self.app.gui.viewer.target.connect(
AttributeError: 'NoneType' object has no attribute 'viewer'
WARN  15:04:04 pipeline          pitivi+utils+pipeline+pipeline0 flushSeek: Could not flush because: Position not available (../../usr/lib/pitivi/python/pitivi/utils/pipeline.py:243)

(pitivi:23945): Gtk-WARNING **: Allocating size to pitivi+viewer+TransformationBox 0x22af440 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?

(pitivi:23945): Gtk-WARNING **: Allocating size to pitivi+viewer+TransformationBox 0x22af440 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
Segmentation fault (core dumped)

and here are the last lines with the debug level set to 6:

EBUG 15:04:29 pipeline          pitivi+utils+pipeline+pipeline0 _busMessageCb: Pipeline change state prev: <enum GST_STATE_READY of type Gst.State>, new: <enum GST_STATE_PAUSED of type Gst.State>, pending: <enum GST_STATE_VOID_PENDING of type Gst.State> (../../usr/lib/pitivi/python/pitivi/utils/pipeline.py:471)
LOG   15:04:29 pipeline          pitivi+utils+pipeline+pipeline0 getDuration: Got duration 0.0:0.0:0.0:0 (../../usr/lib/pitivi/python/pitivi/utils/pipeline.py:346)
DEBUG 15:04:29 viewercontainer   <ViewerContainer at 0x7f479e57ffc0> _setUiActive: active False (../../usr/lib/pitivi/python/pitivi/viewer.py:180)
LOG   15:04:29 playpausebutton   <PlayPauseButton at 0x7f479e581318> setPlay: Displaying the play image (../../usr/lib/pitivi/python/pitivi/viewer.py:684)
INFO  15:04:29 gnomesystem       <GnomeSystem at 0x7f479ff26288> uninhibitScreensaver: Uninhibiting the screensaver (../../usr/lib/pitivi/python/pitivi/utils/system.py:101)
LOG   15:04:29 pipeline          pitivi+utils+pipeline+pipeline0 getPosition: Got position 0.0:0.0:0.0:0 (../../usr/lib/pitivi/python/pitivi/utils/pipeline.py:338)
DEBUG 15:04:29 undoableactionlog <UndoableActionLog at 0x7f479ff10990> push: Pushing <timeline.LayerAdded object at 0x7f479d1595a0 (uninitialized at 0x(nil))> (../../usr/lib/pitivi/python/pitivi/undo/undo.py:169)
LOG   15:04:29 pipeline          pitivi+utils+pipeline+pipeline0 getDuration: Got duration 0.0:0.0:0.0:0 (../../usr/lib/pitivi/python/pitivi/utils/pipeline.py:346)
LOG   15:04:29 pipeline          pitivi+utils+pipeline+pipeline0 getDuration: Got duration 0.0:0.0:0.0:0 (../../usr/lib/pitivi/python/pitivi/utils/pipeline.py:346)

(pitivi:23972): Gtk-WARNING **: Allocating size to pitivi+viewer+TransformationBox 0x325c440 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
DEBUG 15:04:29 verticalbar       <VerticalBar at 0x7f479e586288> do_get_preferred_height: Getting prefered height (../../usr/lib/pitivi/python/pitivi/timeline/timeline.py:102)
DEBUG 15:04:29 verticalbar       <VerticalBar at 0x7f479e586288> do_get_preferred_width: Getting prefered height (../../usr/lib/pitivi/python/pitivi/timeline/timeline.py:98)
Segmentation fault (core dumped)

Does that help?

Kindly,
mjb

Offline

#4 2016-05-03 13:21:02

aleb
Member
Registered: 2013-10-14
Posts: 17

Re: Pitivi segfaults

I remember now, the crash is caused by how it uses Gtk 3.20. It's fixed in the dev version of Pitivi. Try with flatpak.

Last edited by aleb (2016-06-08 01:21:10)

Offline

#5 2016-06-07 19:04:52

Jacka
Member
From: Paris
Registered: 2014-07-02
Posts: 28

Re: Pitivi segfaults

Hello,

Sorry to bump this out, but did it work ? And if it did, could you explain exactly how to use this fix ?
Thanks in advance,

Cheers.

Offline

#6 2016-06-08 01:20:53

aleb
Member
Registered: 2013-10-14
Posts: 17

Re: Pitivi segfaults

You can $ sudo gedit  /usr/lib/pitivi/python/pitivi/timeline/layer.py and remove the last two lines of the file.

Maybe try instead http://wiki.pitivi.org/wiki/Install_with_flatpak

Offline

Board footer

Powered by FluxBB