falkTX / Carla

Audio plugin host
https://kx.studio/carla
1.61k stars 147 forks source link

Carla assertion failure: "timeInfo.bbt.bar > 0" #1236

Open enorrmann opened 4 years ago

enorrmann commented 4 years ago

When using Carla as VST inside Ardour 6.. and moving play head to the beggining (time zero), and trying to start playback, carla and ardour crashes with

Carla assertion failure: "timeInfo.bbt.bar > 0" in file CarlaPluginVST2.cpp, line 1188, value 0 Carla assertion failure: "timeInfo.bbt.bar > 0" in file CarlaPluginVST2.cpp, line 1188, value 0 Carla assertion failure: "size < fBuffer->size" in file ../../utils/CarlaRingBuffer.hpp, line 383, v1 1231836513, v2 524288 Carla assertion failure: "fRetAtom.atom.size < kMaxAtomDataSize" in file ../../utils/Lv2AtomRingBuffer.hpp, line 168, v1 1231836513, v2 32760

falkTX commented 4 years ago

Did a fix to at least prevent the 1st vst related assertion.

Ardour (version 6) is sending incorrect time values (negative frame/position). Ardour 5 does not have this issue, seems to be a regression. This needs to be fixed in Ardour.

x42 commented 4 years ago

In Ardour 6 this is expected behaviour, since there is a preroll to fill in buffers before starting to roll. So far Carla is the only plugin having issue with it.

I've pushed a commit to investigate how other plugins respond, and see if e.g. Addictive Drums still correctly rolls into and after the first beat.