13
0
livetrax/libs/surfaces
Robin Gareus 8f5df7ed28
Fix console1 crashes when no surface is present
e.g. selecting a track causes a ControlNotFoundException
if the ctrl surface is enabled, but no hardware is connected.

terminate called after throwing an instance of 'ArdourSurface::ControlNotFoundExceptio

```
#0  0x00007ffff14d8c2e in __cxa_throw () at /lib/x86_64-linux-gnu/libstdc++.so.6
#1  0x00007fffe2b560a0 in ArdourSurface::Console1::get_button(ArdourSurface::Console1::ControllerID) const (this=0x61d0017e1c80, id=ArdourSurface::Console1::FOCUS1)
    at ../libs/surfaces/console1/console1.cc:928
#2  0x00007fffe2bfc647 in ArdourSurface::Console1::map_select() (this=0x61d0017e1c80) at ../libs/surfaces/console1/c1_operations.cc:653
#3  0x00007fffe2b55384 in ArdourSurface::Console1::map_stripable_state() (this=0x61d0017e1c80) at ../libs/surfaces/console1/console1.cc:832
#4  0x00007fffe2b541ab in ArdourSurface::Console1::set_current_stripable(std::shared_ptr<ARDOUR::Stripable>)
...
```

This does at least fix the crash. Ideally the surface would
only be enabled if there is hardware present.
2023-10-19 21:58:28 +02:00
..
cc121 wscript: drop traces of shutdown() handling 2023-10-15 10:47:16 -06:00
console1 Fix console1 crashes when no surface is present 2023-10-19 21:58:28 +02:00
contourdesign wscript: drop traces of shutdown() handling 2023-10-15 10:47:16 -06:00
faderport wscript: drop traces of shutdown() handling 2023-10-15 10:47:16 -06:00
faderport8 wscript: drop traces of shutdown() handling 2023-10-15 10:47:16 -06:00
frontier wscript: drop traces of shutdown() handling 2023-10-15 10:47:16 -06:00
generic_midi wscript: drop traces of shutdown() handling 2023-10-15 10:47:16 -06:00
launch_control_xl wscript: drop traces of shutdown() handling 2023-10-15 10:47:16 -06:00
launchpad_pro wscript: drop repeated autowaf.set_options - it is enough to set at top level 2023-10-15 10:47:16 -06:00
mackie wscript: drop traces of shutdown() handling 2023-10-15 10:47:16 -06:00
maschine2 wscript: drop traces of shutdown() handling 2023-10-15 10:47:16 -06:00
osc wscript: drop traces of shutdown() handling 2023-10-15 10:47:16 -06:00
push2 wscript: drop traces of shutdown() handling 2023-10-15 10:47:16 -06:00
tranzport wscript: drop traces of shutdown() handling 2023-10-15 10:47:16 -06:00
us2400 wscript: drop traces of shutdown() handling 2023-10-15 10:47:16 -06:00
websockets wscript: drop traces of shutdown() handling 2023-10-15 10:47:16 -06:00
wiimote wscript: drop traces of shutdown() handling 2023-10-15 10:47:16 -06:00
wscript wscript: don't add pointless -DHAVE_X for each mandatory subdir 2023-10-15 10:47:16 -06:00