Skip to content
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

unprotected error in call to Lua API #836

Open
MarcusE1W opened this issue Apr 16, 2020 · 2 comments
Open

unprotected error in call to Lua API #836

MarcusE1W opened this issue Apr 16, 2020 · 2 comments
Labels

Comments

@MarcusE1W
Copy link

Hi.

Today I tried to install luakit with Manjaro ARM an the PinebookPro
Unfortunately I get the same error with the provided package and installing from source when I start it the first time:

This is from the source code version:

[luakit]$ luakit -v
[    0.127712] V [core/web_context]: base_data_directory:                 (null)
[    0.127823] V [core/web_context]: base_cache_directory:                (null)
[    0.127838] V [core/web_context]: disk_cache_directory:                /home/mmw/.cache/luakit
[    0.127851] V [core/web_context]: indexeddb_directory:                 /home/mmw/.local/share/luakit/indexeddb
[    0.127865] V [core/web_context]: local_storage_directory:             /home/mmw/.local/share/luakit/local_storage
[    0.127879] V [core/web_context]: offline_application_cache_directory: /home/mmw/.local/share/luakit/applications
[    0.127899] V [core/web_context]: websql_directory:                    /home/mmw/.local/share/luakit/websql
[    0.132087] W [core/log]: not sure how to handle this one: '(unknown)'
[    0.182123] V [core/web_context]: setting spell check languages: he
[    0.182785] E [core/common/util]: unprotected error in call to Lua API (bad light userdata pointer)

Any ideas?

@aidanholm
Copy link
Member

Hi! Sorry for the slow response. Unfortunately this doesn't give too much information. The 'unprotected error in call to Lua API' message should be followed by a stack dump and a traceback, but these are missing, so there's really not much information to go on. :/

@btrepp
Copy link

btrepp commented Aug 1, 2020

I get the same thing

Seems similar/related
LuaJIT/LuaJIT#245
kubernetes/ingress-nginx#2802

Don't know any lua, so unsure where to look, but I think luajit as a newer pointer type, and it's the light userdata pointer that doesn't seem to be compatible with aarch64?

https://github.com/LuaJIT/LuaJIT/blob/570e758ca7dd14f93efdd43d68cf8979c1d7f984/doc/status.html#L95

Ran a grep for lightuserdata and it seems to be used below.

luakit/widgets/window.c
117: lua_pushlightuserdata(L, gtk_window_get_screen(d->win));
152: if (!lua_islightuserdata(L, 3))
153: luaL_argerror(L, 3, "expected GdkScreen lightuserdata");

luakit/widgets/webview/javascript.c
100: lua_pushlightuserdata(L, cb);

luakit/widgets/drawing_area.c
66: lua_pushlightuserdata(L, cr);

luakit/extension/clib/page.c
204: lua_pushlightuserdata(L, ctx);
205: lua_pushlightuserdata(L, func);

luakit/extension/luajs.c
125: lua_pushlightuserdata(L, promise);
130: lua_pushlightuserdata(L, promise);

luakit/clib/unique.c
46: lua_pushlightuserdata(L, screen);

luakit/common/luauniq.c
72: lua_pushlightuserdata(L, key);
105: lua_pushlightuserdata(L, key);
136: lua_pushlightuserdata(L, key);

luakit/common/luaobject.h
80: lua_pushlightuserdata(L, p);
135: lua_pushlightuserdata(L, p);

luakit/common/luaclass.c
52: lua_pushlightuserdata(L, class);
191: lua_pushlightuserdata(L, class);

luakit/common/luaserialize.c
176: lua_pushlightuserdata(L, p);

luakit/widgets/webview.c
1138: lua_pushlightuserdata(L, action);

luakit/common/luaobject.c
57: lua_pushlightuserdata(L, p);
68: lua_pushlightuserdata(L, p);
75: lua_pushlightuserdata(L, p);
103: lua_pushlightuserdata(L, p);
110: lua_pushlightuserdata(L, p);
126: lua_pushlightuserdata(L, p);
136: lua_pushlightuserdata(L, lua_class);

luakit/lib/lousy/mode.lua
27: return ((t == "table" or t == "userdata" or t == "lightuserdata")

@c0dev0id c0dev0id added the bug label Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants