Bug 2014915 - [abrt] pitivi: __setitem__(): Gst.py:310:__setitem__:SystemError: gi.FunctionInfo(set_value) returned a result with an exception set
Summary: [abrt] pitivi: __setitem__(): Gst.py:310:__setitem__:SystemError: gi.Function...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-gstreamer1
Version: 35
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Simon Farnsworth
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:487ab83b705cba29e92d37078b3...
: 2018476 2023483 2023727 2023773 2026252 2026899 2027026 2027076 2027522 2029059 2031464 2033102 2035556 2035785 (view as bug list)
Depends On:
Blocks: 2036542
TreeView+ depends on / blocked
 
Reported: 2021-10-17 22:56 UTC by Francisco de la Peña
Modified: 2022-02-06 02:08 UTC (History)
27 users (show)

Fixed In Version: python-gstreamer1-1.20.0-1.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-02-06 02:08:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.80 KB, text/plain)
2021-10-17 22:56 UTC, Francisco de la Peña
no flags Details
File: cpuinfo (2.76 KB, text/plain)
2021-10-17 22:56 UTC, Francisco de la Peña
no flags Details
File: environ (1.44 KB, text/plain)
2021-10-17 22:56 UTC, Francisco de la Peña
no flags Details
File: mountinfo (2.83 KB, text/plain)
2021-10-17 22:56 UTC, Francisco de la Peña
no flags Details
File: namespaces (172 bytes, text/plain)
2021-10-17 22:56 UTC, Francisco de la Peña
no flags Details
File: open_fds (2.56 KB, text/plain)
2021-10-17 22:56 UTC, Francisco de la Peña
no flags Details

Description Francisco de la Peña 2021-10-17 22:56:13 UTC
Version-Release number of selected component:
pitivi-2021.05.0-4.fc35

Additional info:
reporter:       libreport-2.15.2
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-glib-org.pitivi.Pitivi-42692.scope
cmdline:        /usr/bin/python3 /usr/bin/pitivi
crash_function: __setitem__
exception_type: SystemError
executable:     /usr/bin/pitivi
interpreter:    python3-3.10.0-1.fc35.x86_64
kernel:         5.14.11-300.fc35.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
Gst.py:310:__setitem__:SystemError: gi.FunctionInfo(set_value) returned a result with an exception set

TypeError: 'float' object cannot be interpreted as an integer

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib64/python3.10/site-packages/pitivi/greeterperspective.py", line 334, in __new_project_cb
    self.app.project_manager.new_blank_project()
  File "/usr/lib64/python3.10/site-packages/pitivi/project.py", line 511, in new_blank_project
    project = Project(self.app)
  File "/usr/lib64/python3.10/site-packages/pitivi/project.py", line 729, in __init__
    res = self._ensure_video_restrictions()
  File "/usr/lib64/python3.10/site-packages/pitivi/project.py", line 2097, in _ensure_video_restrictions
    return self._ensure_restrictions(profile, defaults, ref_restrictions, prev_vals)
  File "/usr/lib64/python3.10/site-packages/pitivi/project.py", line 2067, in _ensure_restrictions
    restriction = fixate_caps_with_default_values(encoder_sinkcaps,
  File "/usr/lib64/python3.10/site-packages/pitivi/utils/misc.py", line 373, in fixate_caps_with_default_values
    value = intersect(struct_val, prev_val)
  File "/usr/lib64/python3.10/site-packages/pitivi/utils/misc.py", line 303, in intersect
    structure = Gst.Structure('t', t=v1).intersect(Gst.Structure('t', t=v2))
  File "/usr/lib/python3.10/site-packages/gi/overrides/Gst.py", line 286, in __new__
    struct[k] = v
  File "/usr/lib/python3.10/site-packages/gi/overrides/Gst.py", line 310, in __setitem__
    return self.set_value(key, value)
SystemError: gi.FunctionInfo(set_value) returned a result with an exception set

Local variables in innermost frame:
self: <Gst.Structure object at 0x7f162b1f7160 (GstStructure at 0x5611724ce410)>
key: 't'
value: <Gst.FractionRange [0/1,2147483647/1]>

Comment 1 Francisco de la Peña 2021-10-17 22:56:16 UTC
Created attachment 1834047 [details]
File: backtrace

Comment 2 Francisco de la Peña 2021-10-17 22:56:17 UTC
Created attachment 1834048 [details]
File: cpuinfo

Comment 3 Francisco de la Peña 2021-10-17 22:56:18 UTC
Created attachment 1834049 [details]
File: environ

Comment 4 Francisco de la Peña 2021-10-17 22:56:19 UTC
Created attachment 1834050 [details]
File: mountinfo

Comment 5 Francisco de la Peña 2021-10-17 22:56:20 UTC
Created attachment 1834051 [details]
File: namespaces

Comment 6 Francisco de la Peña 2021-10-17 22:56:21 UTC
Created attachment 1834052 [details]
File: open_fds

Comment 7 Luya Tshimbalanga 2021-10-26 02:08:32 UTC
Similar problem has been detected:

Attempt to create or opening a new project.

reporter:       libreport-2.15.2
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-org.pitivi.Pitivi-10521.scope
cmdline:        /usr/bin/python3 /usr/bin/pitivi
crash_function: __setitem__
exception_type: SystemError
executable:     /usr/bin/pitivi
interpreter:    python3-3.10.0-1.fc35.x86_64
kernel:         5.14.5-300.fc35.x86_64
package:        pitivi-2021.05.0-4.fc35
reason:         Gst.py:310:__setitem__:SystemError: gi.FunctionInfo(set_value) returned a result with an exception set
runlevel:       N 5
type:           Python3
uid:            1000

Comment 8 Joran Martinière 2021-10-29 12:46:17 UTC
*** Bug 2018476 has been marked as a duplicate of this bug. ***

Comment 9 twofish1024 2021-11-12 21:13:55 UTC
Similar problem has been detected:

does this as soon as you try to make a new project. perhaps new python broke it?

reporter:       libreport-2.15.2
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-944af3f5-8081-4905-893b-6b134cc02f30.scope
cmdline:        /usr/bin/python3 /usr/bin/pitivi
crash_function: __setitem__
exception_type: SystemError
executable:     /usr/bin/pitivi
interpreter:    python3-3.10.0-1.fc35.x86_64
kernel:         5.14.10-300.fc35.x86_64
package:        pitivi-2021.05.0-5.fc35
reason:         Gst.py:310:__setitem__:SystemError: gi.FunctionInfo(set_value) returned a result with an exception set
runlevel:       N 5
type:           Python3
uid:            1000

Comment 10 Stéphane 2021-11-15 21:14:08 UTC
*** Bug 2023483 has been marked as a duplicate of this bug. ***

Comment 11 Minomit 2021-11-16 11:46:07 UTC
*** Bug 2023727 has been marked as a duplicate of this bug. ***

Comment 12 Stéphane 2021-11-16 14:14:43 UTC
*** Bug 2023773 has been marked as a duplicate of this bug. ***

Comment 13 Francisco de la Peña 2021-11-20 07:05:16 UTC
gst-python patch:

https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1358

Comment 14 Minomit 2021-11-24 07:57:25 UTC
*** Bug 2026252 has been marked as a duplicate of this bug. ***

Comment 15 Nicolas 2021-11-26 12:10:07 UTC
*** Bug 2026899 has been marked as a duplicate of this bug. ***

Comment 16 Paweł Żydek 2021-11-27 05:25:55 UTC
*** Bug 2027026 has been marked as a duplicate of this bug. ***

Comment 17 Persona non grata 2021-11-28 02:45:55 UTC
*** Bug 2027076 has been marked as a duplicate of this bug. ***

Comment 18 harivera2014 2021-11-29 21:43:41 UTC
*** Bug 2027522 has been marked as a duplicate of this bug. ***

Comment 19 twofish1024 2021-12-03 16:59:42 UTC
Similar problem has been detected:

happens when i click new proj

reporter:       libreport-2.15.2
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-org.pitivi.Pitivi-10561.scope
cmdline:        /usr/bin/python3 /usr/bin/pitivi
crash_function: __setitem__
exception_type: SystemError
executable:     /usr/bin/pitivi
interpreter:    python3-3.10.0-1.fc35.x86_64
kernel:         5.15.6-200.fc35.x86_64
package:        pitivi-2021.05.0-5.fc35
reason:         Gst.py:310:__setitem__:SystemError: gi.FunctionInfo(set_value) returned a result with an exception set
runlevel:       N 5
type:           Python3
uid:            1000

Comment 20 Mohammad 2021-12-04 14:28:19 UTC
*** Bug 2029059 has been marked as a duplicate of this bug. ***

Comment 21 jaylivg 2021-12-12 03:57:44 UTC
*** Bug 2031464 has been marked as a duplicate of this bug. ***

Comment 22 Rubén 2021-12-15 23:19:46 UTC
*** Bug 2033102 has been marked as a duplicate of this bug. ***

Comment 23 Arte a Programar 2021-12-24 16:23:53 UTC
*** Bug 2035556 has been marked as a duplicate of this bug. ***

Comment 24 Mathias Nicolajsen Kjærgaard 2021-12-27 16:14:04 UTC
*** Bug 2035785 has been marked as a duplicate of this bug. ***

Comment 25 Göran Uddeborg 2021-12-27 22:02:20 UTC
As mentioned in comment 13, this is a gstreamer bug, not a pitivi bug, right?

Comment 26 W. Michael Petullo 2022-01-03 01:34:23 UTC
I confirmed applying the patch at https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1358 to the current Fedora python3-gstreamer packages fixes the problem in Pitivi.

Comment 27 W. Michael Petullo 2022-01-03 03:48:25 UTC
Fixed by this pull request: https://src.fedoraproject.org/rpms/python-gstreamer1/pull-request/3.

Comment 28 Carlos Mogas da Silva 2022-01-06 14:40:50 UTC
Similar problem has been detected:

Clicked "New" after opening PiTiVi

reporter:       libreport-2.15.2
cgroup:         0::/user.slice/user-803800001.slice/user/app.slice/vte-spawn-51eeedee-767e-4c8f-8280-0031fdc18e22.scope
cmdline:        /usr/bin/python3 /usr/bin/pitivi
crash_function: __setitem__
exception_type: SystemError
executable:     /usr/bin/pitivi
interpreter:    python3-3.10.1-2.fc35.i686
kernel:         5.15.12-200.fc35.x86_64
package:        pitivi-2021.05.0-5.fc35
reason:         Gst.py:310:__setitem__:SystemError: gi.FunctionInfo(set_value) returned a result with an exception set
runlevel:       N 5
type:           Python3
uid:            803800001

Comment 29 Fedora Update System 2022-01-28 21:17:27 UTC
FEDORA-2022-9bc6cc53b1 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-9bc6cc53b1

Comment 30 Fedora Update System 2022-01-30 01:14:29 UTC
FEDORA-2022-9bc6cc53b1 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-9bc6cc53b1`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-9bc6cc53b1

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 31 Fedora Update System 2022-02-05 02:12:12 UTC
FEDORA-2022-b14e084006 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-b14e084006`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-b14e084006

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 32 Fedora Update System 2022-02-06 02:08:58 UTC
FEDORA-2022-b14e084006 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.