Pitivi can't be started

  • Done
  • quality assurance status badge
Details
4 participants
  • Josselin Poiret
  • Liliana Marie Prikler
  • Maxim Cournoyer
  • Christian Miller
Owner
unassigned
Submitted by
Christian Miller
Severity
normal
C
C
Christian Miller wrote on 28 Jun 2022 19:52
(name . bug-guix@gnu.org)(address . bug-guix@gnu.org)
eDUAjRnV7ivuISs5HbNJTEYthW2UCBeJV9NxrtvZ__2P3QTmttO403HmcU30sFrxI6q0oyRbl2HyUSWHi7g_SiosSemJMPbXs4fhaRuM8dI=@proton.me
Running the command pitivi results to the following output:

** (gst-plugin-scanner:21018): CRITICAL **: 19:44:14.963: pygobject initialization failedTraceback (most recent call last):
File "/gnu/store/qzlwacdsvswq2ahayd3p6iail5n3rpwk-pitivi-0.999.0-2021.05.0/bin/.pitivi-real", line 172, in <module>

_run_pitivi()
File "/gnu/store/qzlwacdsvswq2ahayd3p6iail5n3rpwk-pitivi-0.999.0-2021.05.0/bin/.pitivi-real", line 143, in _run_pitivi
from pitivi import application
File "/gnu/store/qzlwacdsvswq2ahayd3p6iail5n3rpwk-pitivi-0.999.0-2021.05.0/lib/pitivi/python/pitivi/application.py", line 32, in <module>

from pitivi.mainwindow import MainWindow
File "/gnu/store/qzlwacdsvswq2ahayd3p6iail5n3rpwk-pitivi-0.999.0-2021.05.0/lib/pitivi/python/pitivi/mainwindow.py", line 29, in <module>

from pitivi.editorperspective import EditorPerspective
File "/gnu/store/qzlwacdsvswq2ahayd3p6iail5n3rpwk-pitivi-0.999.0-2021.05.0/lib/pitivi/python/pitivi/editorperspective.py", line 30, in <module>

from pitivi.dialogs.missingasset import MissingAssetDialog
File "/gnu/store/qzlwacdsvswq2ahayd3p6iail5n3rpwk-pitivi-0.999.0-2021.05.0/lib/pitivi/python/pitivi/dialogs/missingasset.py", line 24, in <module>

from pitivi.medialibrary import AssetThumbnail
File "/gnu/store/qzlwacdsvswq2ahayd3p6iail5n3rpwk-pitivi-0.999.0-2021.05.0/lib/pitivi/python/pitivi/medialibrary.py", line 255, in <module>

class AssetThumbnail(GObject.Object, Loggable):
File "/gnu/store/qzlwacdsvswq2ahayd3p6iail5n3rpwk-pitivi-0.999.0-2021.05.0/lib/pitivi/python/pitivi/medialibrary.py", line 280, in AssetThumbnail
EMBLEMS[status] = GdkPixbuf.Pixbuf.new_from_file_at_size(
gi.repository.GLib.GError: gdk-pixbuf-error-quark: Couldn’t recognize the image file format for file “/gnu/store/qzlwacdsvswq2ahayd3p6iail5n3rpwk-pitivi-0.999.0-2021.05.0/share/pitivi/pixmaps/asset-proxied.svg” (3)

Package information:

pitivi 0.999.0-2021.05.0 out /gnu/store/qzlwacdsvswq2ahayd3p6iail5n3rpwk-pitivi-0.999.0-2021.05.0
Attachment: file
L
L
Liliana Marie Prikler wrote on 29 Jun 2022 06:28
7195f1643eceb61d2a2b39a359b5e9c7259d40a1.camel@gmail.com
Am Dienstag, dem 28.06.2022 um 17:52 +0000 schrieb Christian Miller:
Toggle quote (8 lines)
> Running the command pitivi results to the following output:
>
> [...]
>     EMBLEMS[status] = GdkPixbuf.Pixbuf.new_from_file_at_size(
> gi.repository.GLib.GError: gdk-pixbuf-error-quark: Couldn’t recognize
> the image file format for file
> “/gnu/store/qzlwacdsvswq2ahayd3p6iail5n3rpwk-pitivi-0.999.0-
> 2021.05.0/share/pitivi/pixmaps/asset-proxied.svg” (3)
Did you check that the mentioned file is actually an SVG file? You
store might be broken in which case you would need to repair it.

I checked three different versions of pitivi – one rather old one,
current master and one on staging with a bunch of local GStreamer
updates – all three launched successfully.

Cheers
J
J
Josselin Poiret wrote on 30 Jun 2022 14:08
Re: bug#56288: Pitivi can't be started
87tu82s69q.fsf@jpoiret.xyz
Hello Lily and Christian,

This is unfortunately the usual gdk-pixbuf SVG loader not being found,
since it is part of librsvg. Some details are described in [1] already,
but to summarize: we need to propagate gdk-pixbuf so that the
search-path GDK_PIXBUF_MODULE_FILE is properly set for the profile.

Hence, I can reproduce the issue with
Toggle snippet (3 lines)
guix shell --pure pitivi -- pitivi

but the following launches pitivi properly (didn't check further)
Toggle snippet (3 lines)
guix shell --pure pitivi gdk-pixbuf hicolor-icon-theme adwaita-icon-theme -- pitivi

I think it's very impractical that we have to do this for all packages
that wish to load SVG files via gdk-pixbuf, because it's technical and
not a concern that upstream developers document, since they don't
encounter such behavior.

(87zgozy59x.fsf@jpoiret.xyz)

HTH,
--
Josselin Poiret
L
L
Liliana Marie Prikler wrote on 30 Jun 2022 17:27
e2180da04f066c290f2d2d01abe0e24a99a879c8.camel@gmail.com
Am Donnerstag, dem 30.06.2022 um 14:08 +0200 schrieb Josselin Poiret:
Toggle quote (29 lines)
> Hello Lily and Christian,
>
> This is unfortunately the usual gdk-pixbuf SVG loader not being
> found,
> since it is part of librsvg.  Some details are described in [1]
> already,
> but to summarize:  we need to propagate gdk-pixbuf so that the
> search-path GDK_PIXBUF_MODULE_FILE is properly set for the profile.
>
> Hence, I can reproduce the issue with
> --8<---------------cut here---------------start------------->8---
> guix shell --pure pitivi -- pitivi
> --8<---------------cut here---------------end--------------->8---
>
> but the following launches pitivi properly (didn't check further)
> --8<---------------cut here---------------start------------->8---
> guix shell --pure pitivi gdk-pixbuf hicolor-icon-theme adwaita-icon-
> theme -- pitivi
> --8<---------------cut here---------------end--------------->8---
>
> I think it's very impractical that we have to do this for all
> packages
> that wish to load SVG files via gdk-pixbuf, because it's technical
> and
> not a concern that upstream developers document, since they don't
> encounter such behavior.
>
> [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=52044#41
>     (87zgozy59x.fsf@jpoiret.xyz)
Isn't there a per-package solution to this that basically means adding
librsvg to the package inputs?
C
C
Christian Miller wrote on 3 Jul 2022 00:38
Pitivi can't be started
(name . 56288@debbugs.gnu.org)(address . 56288@debbugs.gnu.org)
poDKiBi8dbD6enbF4tak3wyJrSa5K0rkBfdUfaQCu3n6LgxeDm3IJK-nhcH_oJ4FkNCqn2VhPNQP733pNahpttSbT_1U3d_cGhZbknlWP2k=@proton.me
Hello Josselin,

thanks for your solution it works.

This is definitely not user friendly and should be fixed. Is it possible to change the subject to something more appropriate?

Best regards
Christian Miller
Attachment: file
M
M
Maxim Cournoyer wrote on 7 Jul 2022 18:21
(name . Josselin Poiret)(address . dev@jpoiret.xyz)
871quw28rj.fsf@gmail.com
Hi,

Josselin Poiret <dev@jpoiret.xyz> writes:

Toggle quote (21 lines)
> Hello Lily and Christian,
>
> This is unfortunately the usual gdk-pixbuf SVG loader not being found,
> since it is part of librsvg. Some details are described in [1] already,
> but to summarize: we need to propagate gdk-pixbuf so that the
> search-path GDK_PIXBUF_MODULE_FILE is properly set for the profile.
>
> Hence, I can reproduce the issue with
>
> guix shell --pure pitivi -- pitivi
>
>
> but the following launches pitivi properly (didn't check further)
>
> guix shell --pure pitivi gdk-pixbuf hicolor-icon-theme adwaita-icon-theme -- pitivi
>
> I think it's very impractical that we have to do this for all packages
> that wish to load SVG files via gdk-pixbuf, because it's technical and
> not a concern that upstream developers document, since they don't
> encounter such behavior.

Agreed; on the other hand it's not much more impractical than having to
propagate manually the icons, albeit harder to discover. An easy
solution is to propagate librsvg, which I did in 47f0b3ad14. I've also
updated Pitivi to its latest release in the following commit.

Closing,

Thanks!

Maxim
Closed
?