From fe184c7e0878e55f5b424e84a1bb082339fca9c5 Mon Sep 17 00:00:00 2001 From: weijin deng Date: Fri, 25 Feb 2022 18:21:56 +0800 Subject: [PATCH] Solve bug of "PANIC: unprotected error in call to Lua API(attempt to call a nil value),Aborted" --- ..._of-Lua_API_attempt_to_call_a_nil_value.patch | 16 ++++++++++++++++ grilo-plugins.spec | 7 ++++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 0001-solve_an_error_of-Lua_API_attempt_to_call_a_nil_value.patch diff --git a/0001-solve_an_error_of-Lua_API_attempt_to_call_a_nil_value.patch b/0001-solve_an_error_of-Lua_API_attempt_to_call_a_nil_value.patch new file mode 100644 index 0000000..b0d9b09 --- /dev/null +++ b/0001-solve_an_error_of-Lua_API_attempt_to_call_a_nil_value.patch @@ -0,0 +1,16 @@ +https://gitlab.gnome.org/GNOME/gnome-music/-/issues/473 +https://gitlab.gnome.org/GNOME/grilo-plugins/-/merge_requests/108 + +diff --git a/src/lua-factory/grl-lua-factory.c b/src/lua-factory/grl-lua-factory.c +index 4f37984..3a3b824 100644 +--- a/src/lua-factory/grl-lua-factory.c ++++ b/src/lua-factory/grl-lua-factory.c +@@ -1255,8 +1255,6 @@ table_to_tags (lua_State *L) + lua_pop (L, 1); + } + +- lua_pop (L, 1); +- + if (array->len == 0) { + g_ptr_array_free (array, TRUE); + return NULL; diff --git a/grilo-plugins.spec b/grilo-plugins.spec index 174f659..56db66f 100644 --- a/grilo-plugins.spec +++ b/grilo-plugins.spec @@ -1,10 +1,11 @@ Name: grilo-plugins Version: 0.3.13 -Release: 2 +Release: 3 Summary: Plugins for the Grilo framework License: LGPLv2+ URL: https://gitlab.gnome.org/GNOME/grilo-plugins Source0: https://download.gnome.org/sources/grilo-plugins/0.3/grilo-plugins-%{version}.tar.xz +Patch0001: 0001-solve_an_error_of-Lua_API_attempt_to_call_a_nil_value.patch BuildRequires: gcc meson avahi-gobject-devel avahi-gobject glib2-devel grilo-devel >= 0.3.8 BuildRequires: gom-devel gperf intltool gnome-online-accounts-devel >= 3.17.91 gettext @@ -48,6 +49,10 @@ Radio France,Shoutcast,The Guardian Videos,Tracker,Vimeo,Youtube %exclude %{_bindir}/* %changelog +* Fri Feb 25 2022 weijin deng - 0.3.13-3 +- Solve bug of "PANIC: unprotected error in call to Lua API + (attempt to call a nil value) Aborted" + * Fri Jul 30 2021 chenyanpanHW - 0.3.13-2 - DESC: delete -S git from %autosetup, and delete BuildRequires git -- Gitee