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 663094 - AttributeError: 'NoneType' object has no attribute 'pad_id'
AttributeError: 'NoneType' object has no attribute 'pad_id'
Status: RESOLVED OBSOLETE
Product: pitivi
Classification: Other
Component: General
Git
Other Linux
: Normal normal
: 0.91
Assigned To: Pitivi maintainers
Pitivi maintainers
Depends on:
Blocks:
 
 
Reported: 2011-10-31 12:27 UTC by j^
Modified: 2014-03-20 22:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
check for stream before writing its properties (712 bytes, patch)
2011-10-31 12:27 UTC, j^
none Details | Review

Description j^ 2011-10-31 12:27:18 UTC
Created attachment 200330 [details] [review]
check for stream before writing its properties

starting pitivi, it crashes like this:

  • File "/usr/lib/pitivi/python/pitivi/effects.py", line 141 in _setAllEffects
    added = self.addStreams(element_factory, effect)
  • File "/usr/lib/pitivi/python/pitivi/effects.py", line 192 in addStreams
    stream = get_stream_for_pad(pad)
  • File "/usr/lib/pitivi/python/pitivi/stream.py", line 373 in get_stream_for_pad
    stream.pad_id = pad_id
AttributeError: 'NoneType' object has no attribute 'pad_id'

checking if stream is not None this does not happen

if stream:
    stream.pad_id = pad_id
Comment 1 jh 2011-11-06 03:29:02 UTC
Same problem with version 0.15.0-1 on a new install of Fedora 15.

At first PiTiVi would open, but I needed gstreamer ffmpeg plugin.
Only after installing the ffmpeg plugin did this error ocurr.

My traceback is slightly different from the original reporter's:

** Message: pygobject_register_sinkfunc is deprecated (GstObject)
Traceback (most recent call last):
  • File "/usr/bin/pitivi", line 134 in <module>
    _run_pitivi()
  • File "/usr/bin/pitivi", line 129 in _run_pitivi
    sys.exit(ptv.main(sys.argv))
  • File "/usr/share/pitivi/python/pitivi/application.py", line 514 in main
    ptv = StartupWizardGuiPitivi(debug=options.debug)
  • File "/usr/share/pitivi/python/pitivi/application.py", line 371 in __init__
    FullGuiPitivi.__init__(self, debug)
  • File "/usr/share/pitivi/python/pitivi/application.py", line 264 in __init__
    InteractivePitivi.__init__(self, debug)
  • File "/usr/share/pitivi/python/pitivi/application.py", line 212 in __init__
    Pitivi.__init__(self)
  • File "/usr/share/pitivi/python/pitivi/application.py", line 128 in __init__
    self.effects = EffectsHandler()
  • File "/usr/share/pitivi/python/pitivi/effects.py", line 123 in __init__
    self._setAllEffects()
  • File "/usr/share/pitivi/python/pitivi/effects.py", line 141 in _setAllEffects
    added = self.addStreams(element_factory, effect)
  • File "/usr/share/pitivi/python/pitivi/effects.py", line 189 in addStreams
    stream = get_stream_for_pad(pad)
  • File "/usr/share/pitivi/python/pitivi/stream.py", line 373 in get_stream_for_pad
    stream.pad_id = pad_id
AttributeError: 'NoneType' object has no attribute 'pad_id'

jh
Comment 2 jh 2011-11-06 05:52:33 UTC
as it's python i could apply the fix provided by j^ to my local installation.

then got 2 more errors
(this info from Fedora's automatic bug reporter):

stream.py:321:get_pad_type:IndexError: list index out of range
(didn't notice when it happened)

pipeline.py:460:_getFactoryEntry:PipelineError
maybe happened when rendering -- the dialog froze at 100%.
Comment 3 Jean-François Fortin Tam 2011-11-16 18:26:36 UTC
Hi there,
Currently PiTiVi's core is being replaced by GStreamer Editing Services. This is a major overhaul and we sadly can't investigate much bugs that occur on the "traditional" core of PiTiVi. 

We will revisit this by the next release which will use GES, which is planned to occur in sync with GNOME 3.4. Hopefully your issue may be gone with the GES version, otherwise we will appreciate your help in testing it out. Thanks!
Comment 4 Jean-François Fortin Tam 2013-09-30 15:12:06 UTC
Hi there,

As Pitivi 0.91 has now been released, we would like to encourage you to test it.

It is quite possible that your issue is fixed in this version,
as it is a very significant technical overhaul compared to the 0.15 series.
Read more about the 0.91 release here: http://wiki.pitivi.org/wiki/0.91

If you can reproduce this bug against 0.91 or newer (such as the git version),
please update this bug report accordingly with detailed instructions to
reproduce the bug, updated sample files/projects in xges format, etc.

Drop by our IRC channel if you need help getting started or want to help out!

Thanks!