View Issue Details

IDProjectCategoryView StatusLast Update
0009202ardourbugspublic2023-01-21 00:41
Reporterrastin Assigned Tox42  
Status resolvedResolutionfixed 
PlatformArchOSLinuxOS Version(any)
Product Version7.2 
Summary0009202: missing print() messages in lua dsp processor
DescriptionWhen using the print() function from within a lua dsp processor, the printed messages do not reach the log until something else prints a message.
Steps To Reproduce1) Load any lua dsp processor that calls print() anywhere, such as in dsp_init, dsp_configure, or dsp_run
2) Notice that nothing appears in Ardour's log
3) Load any lua session script that calls print()
4) Notice that all of the print messages from 1) now appear in the log and the first printed message from 3) is missing its time stamp.
Additional InformationSkimming through Ardour's code, I wonder if an endmsg is missing on line 206 of which reads as follows.
PBD::info << "LuaProc: " << s << "\n";

A similar line in (line 5249) has endmsg, and lua session scripts have no issue using print().
PBD::info << "LuaSession: " << s << endmsg;

TagsNo tags attached.



2023-01-21 00:41

administrator   ~0027208

Thanks. Fixed in 7.2-128-g7e4bb2ff68. Keep in mind that print() is not realtime-safe and should only be used for debugging.

Issue History

Date Modified Username Field Change
2023-01-20 20:23 rastin New Issue
2023-01-21 00:41 x42 Note Added: 0027208
2023-01-21 00:41 x42 Assigned To => x42
2023-01-21 00:41 x42 Status new => resolved
2023-01-21 00:41 x42 Resolution open => fixed