-
Notifications
You must be signed in to change notification settings - Fork 49
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
playerctl
+ mpv
+ mpris
causes AwesomeWM to crash
#215
Comments
I made a minimal reproduction: local gears = require("gears")
local lgi = require("lgi")
local wibox = require("wibox")
local widget = wibox.widget.textbox()
local Playerctl = lgi.Playerctl
gears.timer.delayed_call(function()
local manager = Playerctl.PlayerManager()
function manager:on_name_appeared(name)
local player = Playerctl.Player.new_from_name(name)
manager:manage_player(player)
function player:on_metadata(metadata)
if self:get_title() then
widget:set_text(self:get_artist() .. " – " .. self:get_title())
else
widget:set_text("-")
end
end
function player:on_playback_status()
if self:get_title() then
widget:set_text(self:get_artist() .. " – " .. self:get_title())
else
widget:set_text("-")
end
end
widget:connect_signal("button::press", function() player:play_pause() end)
end
end) It seems that the issue only happens when you use |
EDIT: Oops sorry. I thought we were in the Awesome repository. Feel free to dismiss my comment. Hello @musjj,
LGI (https://github.com/lgi-devs/lgi) is a Lua binding to GObject based libraries. It can be used independently from Awesome. So you could try to make the minimal example be a simple script. Also, when reporting issues, stack strace/error messages/logs are useful to understand what's going on. |
No worries, that's actually helpful. This time, AwesomeWM didn't crash, but the player still took a long time to launch. So I looked at AwesomeWM's stderr and I found this:
It looks like it got stuck in a loop somewhere? This might be an AwesomeWM issue, rather than |
This error basically means that something blocked the Awesome process for a long period of time. It is problematic because while Awesome is blocked, the computer feels frozen to the user. I guess the something blocking Awesome is the Payerctl stuff, but I also can't guarantee it's that. 🤷 |
The error disappears if I remove the |
When you have the
mpris
plugin installed onmpv
and aplayerctl
signal active in the background, trying to open a video withmpv
will freeze and crash AwesomeWM.To reproduce:
mpris
plugin (https://github.com/hoyon/mpv-mpris)playerctl
signal in your configmpv
The text was updated successfully, but these errors were encountered: