I get this error when trying to open a very recent project I am working on.
Session "/home/…/home-rec-02122024 (snapshot home-rec-02122024)" 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 'Take54_perc-1.6'
ERROR: Session: cannot create Region from XML description. Can not load state for region 'Take54_perc-1.2'
...
Yet another instance of rounding errors when using MusicTime for Audio
Fixed session file (replaced “a139003289” with “a139003200”) at Wild Mint
Region Take54_perc-1.6 has length a139003289@a79589311402 which is longer than its (first?) source's length of a139003200
Region Take54_perc-1.3 has length a139003289@a74843341985 which is longer than its (first?) source's length of a139003200`
Region Take54_perc-1.2 has length a139003289@a76114229192 which is longer than its (first?) source's length of a139003200
Hi @x42
I’ve the same thing described by tarball on a file, with ardour 8.10 (but I have a backup, so no need to correct, I’ll record again)
In the backup file, which is ok , I look at Session> Properties > Misc and the “Default time domain” can be only “Muscial (beats) time” , which is selected , or “Audio (wallclock) time”.
Can you tell which setting is the best according to you for recording all instruments except drumkits with drumgizmo?
I figured I’d reply to this topic since I woke up this morning to the same bug. How can I get a full dump of all the regions that need fixing? and then what exactly do I need to fix? You said it’s a rounding issue, but wanna make sure I do it right.
Also does this mean we should NEVER use Beat Time for sessions?
EDIT: I tried simply deleting all lines in the session file relating to the corrupted regions, on a copy of the session file. I now only get the “Could not state session state from XML” set of errors without the list of regions. But I still can’t open it.
Is there any way I can get the session back? it’s a time sensitive project for a client.
How were you able to get the backtrace on the console? I tried using the debug version, but I couldn’t get GDB to give me a backtrace. Do I have to force Ardour to crash?
I had other similar problems today (corrected for now), after recording session…
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 'AudioIn-131.1'
Region AudioIn-134.1 has length a4082601600@a73664640000 which is longer than its (first?) source’s length of a3009048840
Region AudioIn-136.1 has length a4656960000@a73664640000 which is longer than its (first?) source’s length of a3409453320
And no need of the debug version of ardour : launch it in a terminal, you 'll see the errors
Thank you sooooo much! It took me in hour to fix all the regions. After a while it’d keep crashing just for an extra region it hadn’t informed me on first. And after a few edits (NVim saved me) I ended up getting the session back!