Cannot load session in Ardour8.4.0

I created a new session with Ardour8.4.0 on Ubuntu Studio yesterday evening and cannot load it this morning. The error message is the following

Session “/home/ttproject/Ardour/Warsaw (snapshot Warsaw)” did not load successfully:
Cannot initialize session/engine: Audio/MIDI Engine is not running or sample-rate mismatches.

—ERROR: Unexpected exception during session setup: bad_weak_ptr

Yesterday evening it was running without any problems. Does someone has an idea, what to do?

Sounds like you created your project using jack yesterday, and today for some reason the sample rate changed, or jack is not running.

Try with ALSA backend (in Ardour menu: “Window → Audio/MIDI Setup”) The Ardour Manual - Audio/MIDI Setup.

Or open the “Warsaw.ardour” file with a text editor, on the second line you will find the sample rate of the project, for example, sample-rate="48000". Tell jack or pipewire to use that sample rate.

This is actually very unlikely to be the problem.

This could also be attributed to MIDI learn (using a Pitch bend).

Are you using the Generic MIDI Control surface?

Please visit Download Ardour | Ardour Community and download the free/demo copy (you can install it in parallel with the one from Ubuntu Studio). Try loading your session with that, and let us know what happens.

Hey Pierg,

I opened a new session using Alsa and sample rate 44100 Hz (the warsaw session was recorded using Jack with 44100 Hz) and tried to open the session which fails with the same error message.

Hey Robin,

I indeed used pitch bending with Generic Midi Control Surface.

The solution here is to edit the .ardour session file in a text editor… and near the bottom disable Generic MIDI change active="1" to active="0"

<Protocol name="Generic MIDI" active="0" 

Pitch-bend (and other 14bit controls) causing issues with MIDI learn has been a long standing bug. :frowning:

Hey Robin,

that actually solved the problem! Thanks alot!
Will this problem occur everytime I use automation with a generic midi controler?
Is this a bug?

Binding MIDI CC knobs is fine, only Pitch-bend is known to have issues