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

../../../luaApp/src/luaaa/luaaa.hpp:979: #24

Open
PeiyuQuan opened this issue Sep 22, 2022 · 2 comments
Open

../../../luaApp/src/luaaa/luaaa.hpp:979: #24

PeiyuQuan opened this issue Sep 22, 2022 · 2 comments

Comments

@PeiyuQuan
Copy link

Hello,
When I run IOC of AMC100, I found this issue.

Connect to virtual motor controller server

drvAsynIPPortConfigure("AMC-1_IP","192.168.0.110:9090", 0, 0, 0)
#ScriptControllerConfig( "PORT_NAME", num_axes, "lua_script", "PARAMS=")
ScriptControllerConfig("AMC-1", 2, "Attocube_AMC.lua", "PORT='AMC-1_IP'")
xxx: ../../../luaApp/src/luaaa/luaaa.hpp:979: luaaa::LuaClass< >::LuaClass(lua_State*, const char*, const luaL_Reg*) [with TCLASS = _apdWrapper; lua_State = lua_State; luaL_Reg = luaL_Reg]: Assertion `klassName == nullptr' failed.
Aborted (core dumped)

@keenanlang
Copy link
Member

I've tracked this down to a problem with the CPP class binding code and not being able to have it linked to multiple instances of lua environment at the same time (each axis gets its own environment).

I've opened up an issue with the luaaa library maintainer. In the meantime, you can deactivate that functionality and go back to the simpler libraries by putting CXX11_SUPPORT=NO into CONFIG_SITE.local.Linux and rebuilding.

@keenanlang
Copy link
Member

I believe that I've made a temporary fix with 8ad0ee0 , though an upstream fix to the library would need to be more complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants