Open tommaisey opened 1 year ago
Catching a Lua error as an exception is always tricky, and exception-related mechanisms have been broken for a long time now in sol2 due to the many different issues with triggering unwinding through a C-style library.
As a first question, did you compile Lua-as-C++, and did you enable SOL_USING_CXX_LUA
as a preprocessor define for the whole build?
Version in branch develop
seems to be ok with this code.
I'm using Lua 5.4.4 and Sol 3.3.0. The following program crashes with an uncaught exception, despite my handler.
The exception is
attempt to call a nil value
, and it seems to originate inbasic_table_core::traverse_set
when thepush_popper_n
goes out of scope, i.e. while the stack is unwinding.