-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bundled MPRIS plugin can error on SIGINT #81
Comments
mpv flatpak includes mpris support which uses dbus. When you press ctrl+c you also break the dbus connection. try
or enter sandbox cli, and when you press ctrl+c, the dbus connection is not killed.
Press CTRL+C, you won't get the error message. |
also if you press ctrl+c on the playing video window, you won't get those gdus errors. |
or simply press "q" instead of ctrl+c in the cli or playback window. |
I'm using mpv inside a Bash script, running Sure, I could hide all stderr. Wouldn't be better to handle the SIGINT signal and close everything gracefully? |
Yes, but, I am not a flatpak dev. If you want to distribute your script, you could use other mpv players in flathub like: celluloid
|
Yes, then please, handle the stderr 2
the above handles flatpak erros, we can still get mpv error output, like:
|
We could leave this issue open for a flatpak developer interested in handling SIGINT and close everything gracefully. For the time being I'll |
Generic flatpak issues should be reported here. It's quite improbable developers will find this thread. |
Flatpak's developers believe this isn't a generic issue on their side. Maybe a duplicate of this issue? |
or you could simply delete the mpris.so
|
@Erick555 could you help me making the script into flatpak extention? mpris.so is a script included with the main package. |
@Erick555 kindly check the yml files, please, Followed both VLC and https://blog.tingping.se/2018/03/18/flatpaking-plugins.html, but extension.yml fails to build :-( @TingPing Kindly guide if you can spare some time for the extension. Thanks. I've uploaded the yml files here: but
Many thanks. |
I cannot reproduce this issue. I think the best solution is just to fix any bugs in the MPRIS plugin. Its a small and simple plugin. However since I cannot reproduce I cannot fix it. |
Feel free to try out this patch, it probably solves it: TingPing/mpv-mpris@db49099 |
Hi @TingPing, To reproduce:
I built mpv flapak using the suggested patch (using your cloned git), but the issue remains same as above. I'd like to make mpv-mpris a flatpak extension, for that, I followed your guide and @Erick555's suggested VLC plugin, this is what I came up with. Application manifest: https://github.com/fastrizwaan/mpv_extensions/blob/main/io.mpv.Mpv/io.mpv.Mpv.yml Kindly help me with flatpak addon/extensions, so that I could bundle other useful mpv addons like subtitle downloader, video-cutter, etc. Thank you. |
@fastrizwaan Hi, I am looking for a solution to this bug. I don't want |
wont't show errors at all. pressing ctrl+c won't show any error
|
@fastrizwaan Thanks for the quick reply! I don't really understand what the error means though, does it mean processes are left running when they should be shut down, or even possible memory leaks? I think the CRITICAL in caps is a bit worrying... |
I'm currently frequently getting the error when playing videos:
The error is printed when starting playback, but not always. The media keys appear to still work.
|
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, I wasn't replying to you, it was the solution for the original bug about |
@pabloab the issue is resolved by allowing system-bus permission to mpv. |
@in-plaintext could you check with other distro or in an another distro in a virtual machine. Launching a video does not cause errors for me. |
@fastrizwaan Flatpak 1.11.1, mpv v0.37.0, dbus 1.12.16-2ubuntu2.3, Ubuntu 20.04.6 LTS. |
try
|
It is a third party plugin that is causing crashes. It is unfair to mpv to include it by default. This should go into an extension. Closes #81
@pabloab with the latest release 0.38.0 flathub, pressing |
cli is not the intended use case.. Anyways can't reproduce the bug. |
As mentioned on this mpv issue, every time I run mpv from cli and then ctrl_c (SIGNINT) I get this on stdout:
CounterPillow mention:
So I suspect here is the right place.
The text was updated successfully, but these errors were encountered: