From a1dee6cba207497469e091fb26f35da1f5bfbdce Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 21 Jan 2023 01:42:33 +0100 Subject: [PATCH] Fix printing from Lua DSP context (#9202) --- libs/ardour/luaproc.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/ardour/luaproc.cc b/libs/ardour/luaproc.cc index 86b938b419..a959b8f4da 100644 --- a/libs/ardour/luaproc.cc +++ b/libs/ardour/luaproc.cc @@ -203,7 +203,11 @@ LuaProc::lua_print (std::string s) { #ifndef NDEBUG std::cout << "LuaProc: " << s << "\n"; #endif - PBD::info << "LuaProc: " << s << "\n"; + /* This is dangerous and can lead to crashes.A + * PBD::Transmitter is neither thread-safe nor rt-safe. + * (see also fe0e997335c34af0d71e7536fd507e1cab322d24) + */ + PBD::info << "LuaProc: " << s << endmsg; } bool