With my session file after I closed it normally, the day after I get this error:
Session “/data/music_kl/99_idea54 (snapshot 99_idea54)” did not load successfully:
Cannot initialize session/engine: Invalid or corrupt session state.
—ERROR: Could not set session state from XML
ERROR: Session: failed to load active playlists
ERROR: Session: cannot create Playlist from XML description.
ERROR: Playlist: cannot create region from XML
ERROR: Session: cannot create Region from XML description. Can not load state for region ‘Take273_drum1-1.13’
ERROR: Session: cannot create Region from XML description. Can not load state for region ‘Take273_drum1-1.11’
—ERROR: Could not set session state from XML
ERROR: Session: failed to load active playlists
ERROR: Session: cannot create Playlist from XML description.
ERROR: Playlist: cannot create region from XML
ERROR: Session: cannot create Region from XML description. Can not load state for region 'Take44_SY99-1.4'
Already tried loading the .BAK file, gives the same error.
Region Take271_drum1-1.15 has length a165282228@a37460945355 which is longer than its (first?) source's length of a165280920
Region Take271_drum1-1.15 has length a165282228@a37460945355 which is longer than its (first?) source's length of a165280920
Region Take271_drum1-1.16 has length a165282228@a37460945355 which is longer than its (first?) source's length of a165280920
Region Take273_drum1-1.11 has length a39823637@a47769921691 which is longer than its (first?) source's length of a39819360
Region Take273_drum1-1.11 has length a39823637@a47769921691 which is longer than its (first?) source's length of a39819360
Region Take273_drum1-1.13 has length a85527273@a47809745328 which is longer than its (first?) source's length of a85524600
Region Take273_drum1-1.13 has length a85527273@a47809745328 which is longer than its (first?) source's length of a85524600
I have replaced the respective duration with the slightly shorter ones:
Hi, I have 2 projects I can’t open for this same reason. Sorry, I haven’t understood any of the fix solutions as described in this forum to date. What options do I have to fix my files? Thanks very much.
To minimize the issue, use “AudioTime” when creating a session (dropdown in the new-session dialog). The underlying bug is a rounding error when using BeatTime (bar/beat/ticks).
If you have a session that does not load, you can either post it here and @paul or me or someone can have a look.
Alternatively: run Ardour from a Terminal and there will be messages like
Region NNN has length XXX which is longer than its (first?) source's length of ZZZ
You then open the .ardour session file in a text editor (after making a backup), and search/replace the duration XXX with ZZZ for all affected regions.
Hi Robin, thanks, that’s very helpful and has worked. A bit of a pain going through that, and it takes 2 passes, but better than losing my work. If it helps, the first file was a snapshot and in Audio Time. The 2nd - not a snapshot but a first save of a project and in Beat Time.
Is this recurring bug of region longer than the actual audio file expected to be avoided with this new commit?
commit fa376b709d46cbd9d1002ef46f96adece36cecaf
Author: Paul Davis paul@linuxaudiosystems.com
Date: Wed Jan 29 17:24:12 2025 -0700
…
This fixes a number of bugs, including any use of ARDOUR::Filter which writes a new (audio) file
to disk that must be an integer number of samples long, but may be derived from and later used
by a region that had an audio-time duration that is slightly longer (less than one sample)
than the audio file
Yes, I am hopeful that this solves it. I managed to find a repeatable set of steps to trigger it and this change fixes it. There is a small code simplification to come.
Hmm. I’m not totally sure if indeed this particular problem arose with a session created in 8.10, latently waiting for me to open it in 8.11.
I created the session in 8.10. I did some file date forensics and I can confirm.
However this is a bit peculiar when I checked the xml: