View Issue Details
|ID||Category||Date Submitted||Last Update|
|0008730||bugs||2021-05-29 06:45||2021-05-30 04:11|
|Platform||Debian GNU||OS||Linux||OS Version||(any)|
|Product Version||Mixbus 7.x|
|Fixed in Version|
|Summary||0008730: Fatal Error when selecting routes via Lua|
|Description||Mixbus32c v7.0 and Ardour v6.7|
Using the script in Steps below causes a Fatal Error crash saying "programming error: unknown selectable type passed to Selection:add()".
According to the manual’s Lua class reference, RouteTimeAxisView is a RouteUI which is a Selectable which is what set_selection() requires. So this error was unexpected.
Robin Gareus commented that the script looks correct, which suggests that this is a bug in Ardour.
I also tried with the "ArdourUI.SelectionOp.Add" parameter value which had the same result, only this time the error message said "Add()" instead of "add()".
|Steps To Reproduce||In the Lua script window...|
local r = Session:route_by_name(“route name here”)
local rtav = Editort:rtav_from_route(r)
local sl = ArdourUI.SelectionList()
|Tags||No tags attached.|
A further comment from Robin in the discourse topic...
"I just realized that Editor:set_selection is exclusively for items that are only visible on the editor-timeline.
Track/Bus selection is synced with the Mixer and control-surfaces.
It is not currently possible to select track from Lua scripts, and there are some technical issues with exposing that API."
So, not a bug after all by the sounds of it.
P.S. The script has a typo - "Editort" - here and in the discourse topic. It was not the cause of the problem.