-
Notifications
You must be signed in to change notification settings - Fork 1
Crashes after some time #4
Comments
It seems that wmc-mpris cannot create a D-Bus object path from what it gets from the extension. Could you check if extension crashes on the same video on YouTube or track on Spotify? If it does, please give me link to that video or track and I'l try to reproduce. Unfortunately, I cannot reproduce this bug now and have never experienced it before. And please say what commit of wmc-mpris are you using (AUR package version has this info) and what version of WMC are you using. |
Usually
There is no specific link. It happens with various videos/songs on YT/spotify. I will do additional check with clean browser profile. |
Yes but you could have installed the package some time before, so it could be not the latest commit.
Okay, that info is enough.
Strange. I believe it should happen consistently with same videos but I could be wrong. Please build wmc-mpris from master and run it with the following patch to check if my assumption about track IDs is correct: diff --git a/src/mpris2.c b/src/mpris2.c
index def40eb..9b87a4c 100644
--- a/src/mpris2.c
+++ b/src/mpris2.c
@@ -257,6 +257,7 @@ add_value_to_metadata_builder(JsonObject *serialized_metadata,
g_variant_new_string(value));
} else if (!g_strcmp0(key, "trackId")) {
const gchar *value = json_node_get_string(value_node);
+ fprintf(stderr, "trackId = '%s'\n", value);
g_variant_builder_add(builder, "{sv}",
"mpris:trackid",
g_variant_new_object_path(value)); |
@TomaszGasior is this issue still reproducible? Anyway, I plan to mangle track IDs that come from extension, so there should be less space for the bugs. |
I am not sure whether this is bug in browser extension or system binary. I use Firefox with https://github.com/f1u77y/web-media-controller and with
web-media-controller-mpris-git
AUR package. When I start Firefox and youtube/spotify, extension works but after some time it crashes. This is log from browser console (Ctrl+Shift+J):The text was updated successfully, but these errors were encountered: