Solve bug of "PANIC: unprotected error in call to Lua API(attempt to call a nil value),Aborted"

This commit is contained in:
weijin deng 2022-02-25 18:21:56 +08:00
parent 60ea97070a
commit fe184c7e08
2 changed files with 22 additions and 1 deletions

View File

@ -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;

View File

@ -1,10 +1,11 @@
Name: grilo-plugins Name: grilo-plugins
Version: 0.3.13 Version: 0.3.13
Release: 2 Release: 3
Summary: Plugins for the Grilo framework Summary: Plugins for the Grilo framework
License: LGPLv2+ License: LGPLv2+
URL: https://gitlab.gnome.org/GNOME/grilo-plugins URL: https://gitlab.gnome.org/GNOME/grilo-plugins
Source0: https://download.gnome.org/sources/grilo-plugins/0.3/grilo-plugins-%{version}.tar.xz 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: 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 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}/* %exclude %{_bindir}/*
%changelog %changelog
* Fri Feb 25 2022 weijin deng <weijin.deng@turbolinux.com.cn> - 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 <chenyanpan@huawei.com> - 0.3.13-2 * Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 0.3.13-2
- DESC: delete -S git from %autosetup, and delete BuildRequires git - DESC: delete -S git from %autosetup, and delete BuildRequires git