vixalien / muzika

Elegant music streaming app
GNU General Public License v3.0
238 stars 14 forks source link

crash on start with "JS ERROR: Error: Failed to create gtk4paintablesink" #172

Closed violoncelloCH closed 3 weeks ago

violoncelloCH commented 3 weeks ago

Hi, Thanks for the promising looking app! I tried installing it on Fedora 40 following the instructions (as a Flatpak). However when starting the app, it doesn't launch. When starting from the terminal, I get the following error output:

$ flatpak run com.vixalien.muzika.Devel 
Gjs-Console-Message: 10:21:28.041: caching soup requests at /home/jonas/.var/app/com.vixalien.muzika.Devel/cache/com.vixalien.muzika.Devel/soup-cache

(com.vixalien.muzika.Devel:2): Gjs-CRITICAL **: 10:21:28.823: JS ERROR: Error: Failed to create gtk4paintablesink, is that installed on your system?
MuzikaMediaStream@resource:///com/vixalien/muzika/js/main.js:27267:13
MuzikaPlayer@resource:///com/vixalien/muzika/js/main.js:27574:5
Application@resource:///com/vixalien/muzika/js/main.js:30957:20
main@resource:///com/vixalien/muzika/js/main.js:31074:15
run@resource:///org/gnome/gjs/modules/script/package.js:207:19
@file:///app/bin/com.vixalien.muzika.Devel:22:40
@file:///app/bin/com.vixalien.muzika.Devel:28:6

Am I missing something?

vixalien commented 3 weeks ago

Im suddenly getting this error too. Will look into it soon

On Thu, 27 Jun 2024 at 10:29, Jonas Sulzer @.***> wrote:

Hi, Thanks for the promising looking app! I tried installing it on Fedora 40 following the instructions (as a Flatpak). However when starting the app, it doesn't launch. When starting from the terminal, I get the following error output:

$ flatpak run com.vixalien.muzika.Devel Gjs-Console-Message: 10:21:28.041: caching soup requests at /home/jonas/.var/app/com.vixalien.muzika.Devel/cache/com.vixalien.muzika.Devel/soup-cache

(com.vixalien.muzika.Devel:2): Gjs-CRITICAL : 10:21:28.823: JS ERROR: Error: Failed to create gtk4paintablesink, is that installed on your **@.**@*.**@*.**@*.**@*.***:///org/gnome/gjs/modules/script/package.js:207:19 @file:///app/bin/com.vixalien.muzika.Devel:22:40 @file:///app/bin/com.vixalien.muzika.Devel:28:6

Am I missing something?

— Reply to this email directly, view it on GitHub https://github.com/vixalien/muzika/issues/172, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJB5FCM2LEJYQGA4D3AGVWDZJPEP3AVCNFSM6AAAAABJ7NOTYCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM3TONJQHA4DKMA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

rayzr522 commented 3 weeks ago

having this issue as well. perhaps related to this? https://discourse.gnome.org/t/creating-gstreamer-sink-for-widget-in-gtk4-application/13220/5

gtk4paintablesink is not included in the Flatpak SDK yet, see Ship gst-plugins-rs together with the other GStreamer components (#1502) · Issues · freedesktop-sdk / freedesktop-sdk · GitLab 35.

You would have to build it as part of your Flatpak application.

i am not familiar with gtk4 development but the implication of the above comment seems to be that you yourself need to ensure the right gst plugins are included in the flatpak

vixalien commented 3 weeks ago

you yourself need to ensure the right gst plugins are included in the flatpak

Yes indeed, we are building the gst-plugins-rs ourselves in the flatpak (see https://github.com/vixalien/muzika/blob/main/build-aux/flatpak/modules/gst-plugin-gtk4.json) however a recent update or something caused it not to be packaged correctly...