FS#40906 - [timidity++] "Couldn't start JACK device (`j')"

Attached to Project: Arch Linux
Opened by Christian Landel (Titan) - Friday, 20 June 2014, 00:39 GMT
Last edited by David Runge (dvzrv) - Thursday, 03 December 2020, 18:28 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To David Runge (dvzrv)
Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

timidity can't use jack devices (using the -Oj flag):

$ timidity -Oj -iA
jack_client_new: deprecated
TiMidity starting in ALSA server mode
Opening sequencer port: 129:0 129:1 129:2 129:3
Couldn't start JACK device (`j')

(the last line of output happens when any MIDI device is connected to timidity, e.g. via qjackctl or rosegarden, no sound is produced even though it would with -Os [ALSA output])
Also I had the same result with both jack and jack2.
This task depends upon

Closed by  David Runge (dvzrv)
Thursday, 03 December 2020, 18:28 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with 2.15.0-5
Comment by Christian Landel (Titan) - Friday, 20 June 2014, 00:47 GMT
(edit: the summary was thankfully edited after I accidentally pressed enter while creating this report)
Comment by Christian Landel (Titan) - Friday, 20 June 2014, 02:37 GMT
could this be the solution: http://blog.163.com/jiams_wang/blog/static/3033914920138120746567 ? (edit: the change does not compile with the 2.14.0 tarball)
Comment by Christian Landel (Titan) - Friday, 20 June 2014, 03:48 GMT
changing (lines 269 and 285 of jack_a.c)
jack_client_new(TIMIDITY_JACK_CLIENT_NAME)
to
jack_client_open(TIMIDITY_JACK_CLIENT_NAME, (jack_options_t)0, NULL)
fixes the deprecated message, but not the issue
Comment by Christian Landel (Titan) - Friday, 20 June 2014, 23:50 GMT
finally, this makes it work (at least with the 2.14.0 tarball, i don't know how this bug originally came into existence):
add
case PM_REQ_PLAY_START:
in jack_a.c, line 511 ("fall-through")
this constant seems to originate from alsaseq_c.c, line 549.
(traced the error message in gdb with "b fputs")
The blog entry http://blog.163.com/jiams_wang/blog/static/3033914920138120746567 uses wrong/other constant names for some reason.

Playing midi files works over jack, the bug only appears when using -iA -Oj (alsa-sequencer).
Comment by J. Berger (jmb) - Monday, 05 October 2020, 12:18 GMT
  • Field changed: Percent Complete (100% → 0%)
Comment by David Runge (dvzrv) - Monday, 05 October 2020, 12:36 GMT
@jmb: My bad. I tested integration with jack and thought this was not relevant anymore. Maybe not thoroughly enough.

It seems that as of today upstream has not fixed this: https://sourceforge.net/p/timidity/git/ci/master/tree/timidity/jack_a.c

I'll release a new version of the package soon.

Loading...