View Issue Details

IDProjectCategoryView StatusLast Update
0001163ardourbugspublic2008-11-21 00:00
Reporterindigo Assigned Topaul  
PrioritynormalSeveritymajorReproducibilitysometimes
Status closedResolutionfixed 
Summary0001163: erratic playhead or broken playback when using jack transport sync
DescriptionIf I create a new session in ardour with nothing but jack running, open the options window, and change the timebase sync from "internal" to "sync with jack", I get various odd behaviours.

About 75% of the time, playback sounds fine, but the playhead will move forward about 2 bars, then jump back 1, and repeat. It does sync with jack in a fassion, as I can see the timeline change in qjackctl. Sometimes when I stop, it will jump rapidly between the stopped position and the start of the timeline.

About 20% of the time, the playhead will move normally if I hit play in ardour or on qjackctl, but no audio will be output (the mixer meters indicate no output, either) and I can't stop playback in ardour; only with another synced client like qjackctl. Spacebar does not stop nor start the transport.

Once, it seemed to work correctly. Maybe I did something wrong :)

My build of ardour was made a few hours ago from the CVS tarball. Jack is 0.100.

Although I get this behaviour with only ardour running, my goal was to get ardour and rosegarden to sync. When I did run rosegarden, it did not seem to exhibit any problems like playhead drunkenness.
TagsNo tags attached.

Activities

indigo

2005-12-15 01:20

reporter   ~0002422

Typically I run jackd at 44.1 kHz, 32 samples, 2 periods. I changed the buffer size to 1024, and the problem persists.

Harold

2007-03-19 20:22

reporter   ~0003603

Also playing a loop with jack as time master is broken... But this hasn't worked for a long time now...

Just set a loop range and hit the 'play loop' button. Ardour begins to stutter and ardour2<b12 just crashes...

b0ef

2007-03-20 17:15

reporter   ~0003615

Last edited: 2007-03-20 17:19

I'm not able to make it crash, but if setting sync to JACK and time master, it doesn't play the loop smooth. It halts everytime it's supposed to start the loop over again. There is no problem when using internal sync

I've also seen some weird behaviour, with the playhead jumping all over the place. I don't know what I did and it was a pain to make it stop. I'm not able to reproduce it, it seems

mtaht

2007-04-12 12:57

developer   ~0003798

This is an unusual and elusive bug. I've seen the same thing on occasion, but usually when some other jack application had been synced, and had crashed - I think - I don't have enough data, so if you have time, it would be interesting to push a few variables around.

Just some tuning thoughts. What kind of hardware are you running?

Get the latest jackd (103). Turn on SSE (compile jack with --dynsimd)

Is ardour from latest svn compiled for debugging? If so, compile it for non debug (if compiled for non-debug, compile it for debug - a debugging version might not be able to run at 32 samples/period tho).

I'm tickled you can run jack - SYNCED! - at 32 samples/period.

nowhiskey

2007-05-11 13:21

reporter   ~0003930

in v2.0.2 if i choose jack-sync, no matter if ardour is time master or not, the playback hangs every time when it comes to the beginning of the loop.
the same if i use 'loop range' funktion.

cheers,
doc

nowhiskey

2007-05-31 23:33

reporter   ~0004036

Last edited: 2007-06-03 21:34

since ongoing-rev1932, but also in rev 1936 this seems to work much more better here!
the playhead behaves as expected, but there are still some artifacts in the playback - often (not always) when the playback reaches the beginning of the loop i can here some noise-click-sound, which is not present in the loop if i switch to 'internal' again.
but the loop definitely does not "hangs" anymore here!

jackd-v0.103.0

cheers,
doc

edit: i just realized that this is only valid for a 0.99.3 session opened with ardour2, if i create a new session with ardour2, the playback still hangs very bad. sometimes it hangs for longer and switching to another workspace will mostly make the playhead moving again.

i am here on a fluxbox1.0-rc3

nowhiskey

2007-06-26 12:51

reporter   ~0004078

this is fixed here in ongoing since rev2034!

cheers,
doc

paul

2007-06-27 20:33

administrator   ~0004085

fixed by essej sometime close to svn rev 2034 (see notes)

Issue History

Date Modified Username Field Change
2005-12-12 14:27 indigo New Issue
2005-12-15 01:20 indigo Note Added: 0002422
2007-03-19 20:22 Harold Note Added: 0003603
2007-03-20 17:15 b0ef Note Added: 0003615
2007-03-20 17:19 b0ef Note Edited: 0003615
2007-04-12 12:57 mtaht Note Added: 0003798
2007-05-11 13:21 nowhiskey Note Added: 0003930
2007-05-31 23:33 nowhiskey Note Added: 0004036
2007-06-03 21:34 nowhiskey Note Edited: 0004036
2007-06-26 12:51 nowhiskey Note Added: 0004078
2007-06-27 20:33 paul Status new => resolved
2007-06-27 20:33 paul Resolution open => fixed
2007-06-27 20:33 paul Assigned To => paul
2007-06-27 20:33 paul Note Added: 0004085
2008-11-21 00:00 seablade Status resolved => closed