Jack MIDI test on github-musescore-musescore-81b5496

• Jun 26, 2014 - 22:13
Type
Functional
Severity
S4 - Minor
Status
closed
Project

Ok, so, this issue report tests I've done for Igevorse about Jack MIDI implementation in 81b5496 on linux kxstudio 14.04, jack 1.9.10, kernel 3.13.0-29-lowlatency, soundcard is a firewire one with FFADO driver. Works perfectly with qtractor or ardour.

I haven't this awfull stuff called pulseaudio installed :-p

Here are the test :
-------------------------------------------------------------------------------
jack + Use jack MIDI

daeavelwyn@StudioCorei5:~$ ./mscore
Marker::read type 0
Marker::read type 1
Marker::read type 2
Marker::read type 3
Marker::read type 5
Marker::read type 6
layoutX: empty segment(0x611ca30)ChordRest: measure: tick 14400 ticks 1920
nticks==0 segmente 11, segmentIdx: 8, segTick: 16320 nsegTick(0x0) 1920
layoutX: empty segment(0x611f8c0)ChordRest: measure: tick 16320 ticks 1920
nticks==0 segmente 8, segmentIdx: 5, segTick: 18240 nsegTick(0x0) 1920
cannot deactivate client
noJACK ERROR: Cannot read socket fd = 19 err = Success
noJACK ERROR: CheckRes error
noJACK ERROR: JackSocketClientChannel read fail
noJACK ERROR: Cannot open mscore client
JackAudio()::init(): failed, status 0x21
no JACK server found
no audio driver found
Cannot start I/O
sequencer init failed
daeavelwyn@StudioCorei5:~$ ./mscore
noJACK ERROR: Cannot open mscore client
noJACK ERROR: Cannot read socket fd = 17 err = Succès
noJACK ERROR: CheckRes error
noJACK ERROR: JackSocketClientChannel read fail
JackAudio()::init(): failed, status 0x21
no JACK server found
no audio driver found
Marker::read type 0
Marker::read type 1
Marker::read type 2
Marker::read type 3
Marker::read type 5
Marker::read type 6
layoutX: empty segment(0x3836380)ChordRest: measure: tick 14400 ticks 1920
nticks==0 segmente 11, segmentIdx: 8, segTick: 16320 nsegTick(0x0) 1920
layoutX: empty segment(0x3839210)ChordRest: measure: tick 16320 ticks 1920
nticks==0 segmente 8, segmentIdx: 5, segTick: 18240 nsegTick(0x0) 1920
---------------------------------------------------------------------------------------------------------------

Use Jack MIDI + ALSA Audio (CPU overload + makes JACK server crash when I stop musescore)

daeavelwyn@StudioCorei5:~$ ./mscore
noJACK ERROR: Cannot read socket fd = 20 err = Succès
noJACK ERROR: Cannot open mscore client
noJACK ERROR: CheckRes error
JackAudio()::init(): failed, status 0x21
no JACK server found
no audio driver found
Marker::read type 0
Marker::read type 1
Marker::read type 2
Marker::read type 3
Marker::read type 5
Marker::read type 6
layoutX: empty segment(0x3993740)ChordRest: measure: tick 14400 ticks 1920
nticks==0 segmente 11, segmentIdx: 8, segTick: 16320 nsegTick(0x0) 1920
layoutX: empty segment(0x39965d0)ChordRest: measure: tick 16320 ticks 1920
nticks==0 segmente 8, segmentIdx: 5, segTick: 18240 nsegTick(0x0) 1920
QObject::connect: Cannot connect QSocketNotifier::activated(int) to (null)::midiInputReady()
---------------------------------------------------------------------------------------------------------------

ALSA alone (No Jack MIDI) have audio sound, but haven't jack MIDI working :-s
kmidimon return no midi out datas from ALSA2Jack bridge when I connected to musescore Port-0 out in catia.

daeavelwyn@StudioCorei5:~$ ./mscore
Marker::read type 0
Marker::read type 1
Marker::read type 2
Marker::read type 3
Marker::read type 5
Marker::read type 6
layoutX: empty segment(0x7bf1410)ChordRest: measure: tick 14400 ticks 1920
nticks==0 segmente 11, segmentIdx: 8, segTick: 16320 nsegTick(0x0) 1920
layoutX: empty segment(0x7bf42a0)ChordRest: measure: tick 16320 ticks 1920
nticks==0 segmente 8, segmentIdx: 5, segTick: 18240 nsegTick(0x0) 1920
Alsa_driver: stat = 00, xrun of at least 0.136 ms

--------------------------------------------------------------------------------------------------------------

activating Portaudio (just checking the checkbox Portaudio)

daeavelwyn@StudioCorei5:~$ ./mscore
Marker::read type 0
Marker::read type 1
Marker::read type 2
Marker::read type 3
Marker::read type 5
Marker::read type 6
layoutX: empty segment(0x7bf1410)ChordRest: measure: tick 14400 ticks 1920
nticks==0 segmente 11, segmentIdx: 8, segTick: 16320 nsegTick(0x0) 1920
layoutX: empty segment(0x7bf42a0)ChordRest: measure: tick 16320 ticks 1920
nticks==0 segmente 8, segmentIdx: 5, segTick: 18240 nsegTick(0x0) 1920
Alsa_driver: stat = 00, xrun of at least 0.136 ms
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.front.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.surround40.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround40
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround41
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround50
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround51
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.surround71.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround71
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM iec958
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.modem.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline:CARD=0,DEV=0
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.modem.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline:CARD=0,DEV=0
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.modem.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM phoneline
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.modem.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM phoneline
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pcm_dmix.c:961:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dsnoop.c:557:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
ALSA lib pcm_dsnoop.c:557:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream

--------------------------------------------------------------------------------------------------------------------

Portaudio with jack server. I have neither sounds nor midi datas out with ALSA2Jack midi bridge. If I check Use Jack MIDI, musescore crashes.

daeavelwyn@StudioCorei5:~$ ./mscore
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.front.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: Aucun fichier ou dossier de ce type
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: Aucun fichier ou dossier de ce type
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.surround40.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: Aucun fichier ou dossier de ce type
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: Aucun fichier ou dossier de ce type
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround40
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: Aucun fichier ou dossier de ce type
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: Aucun fichier ou dossier de ce type
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround41
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: Aucun fichier ou dossier de ce type
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: Aucun fichier ou dossier de ce type
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround50
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: Aucun fichier ou dossier de ce type
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: Aucun fichier ou dossier de ce type
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround51
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.surround71.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: Aucun fichier ou dossier de ce type
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: Aucun fichier ou dossier de ce type
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround71
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: Aucun fichier ou dossier de ce type
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: Aucun fichier ou dossier de ce type
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM iec958
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: Aucun fichier ou dossier de ce type
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: Aucun fichier ou dossier de ce type
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: Aucun fichier ou dossier de ce type
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: Aucun fichier ou dossier de ce type
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: Aucun fichier ou dossier de ce type
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: Aucun fichier ou dossier de ce type
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: Aucun fichier ou dossier de ce type
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: Aucun fichier ou dossier de ce type
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.modem.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: Aucun fichier ou dossier de ce type
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: Aucun fichier ou dossier de ce type
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline:CARD=0,DEV=0
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.modem.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: Aucun fichier ou dossier de ce type
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: Aucun fichier ou dossier de ce type
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline:CARD=0,DEV=0
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.modem.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: Aucun fichier ou dossier de ce type
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: Aucun fichier ou dossier de ce type
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM phoneline
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.modem.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: Aucun fichier ou dossier de ce type
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: Aucun fichier ou dossier de ce type
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM phoneline
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connexion refusée

ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connexion refusée

ALSA lib pcm_dmix.c:961:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dsnoop.c:557:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
ALSA lib pcm_dsnoop.c:557:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
Marker::read type 0
Marker::read type 1
Marker::read type 2
Marker::read type 3
Marker::read type 5
Marker::read type 6
layoutX: empty segment(0x75ea7c0)ChordRest: measure: tick 14400 ticks 1920
nticks==0 segmente 11, segmentIdx: 8, segTick: 16320 nsegTick(0x0) 1920
layoutX: empty segment(0x75ed650)ChordRest: measure: tick 16320 ticks 1920
nticks==0 segmente 8, segmentIdx: 5, segTick: 18240 nsegTick(0x0) 1920

------------------------------------------------------------------------------------------------------------------------

Only checking "Use Jack MIDI" :

daeavelwyn@StudioCorei5:~$ ./mscore
noJACK ERROR: Cannot read socket fd = 17 err = Succès
noJACK ERROR: Cannot open mscore client
noJACK ERROR: CheckRes error
JackAudio()::init(): failed, status 0x21
no JACK server found
no audio driver found
Marker::read type 0
Marker::read type 1
Marker::read type 2
Marker::read type 3
Marker::read type 5
Marker::read type 6
layoutX: empty segment(0x427eed0)ChordRest: measure: tick 14400 ticks 1920
nticks==0 segmente 11, segmentIdx: 8, segTick: 16320 nsegTick(0x0) 1920
layoutX: empty segment(0x4281d60)ChordRest: measure: tick 16320 ticks 1920
nticks==0 segmente 8, segmentIdx: 5, segTick: 18240 nsegTick(0x0) 1920

Attachment Size
ALSA_NO-MIDI-JACK.png 618.4 KB
jack-MIDI+ALSA-audio.png 525.56 KB
portaudio-jack-server.png 722.54 KB

Comments

Hi. How do you make these tests? Are you changing preferences and just click "Apply"?
You should open MuseScore, change preferences, close it and start again to see the result (seems like you're already do it).

I installed kxstudio 14.04 LTS in virtual machine, kernel 3.13.0-30-lowlatency 32 bit (i686), Cadence 1:0.8.1, jackd 5, jackd1 1:0.124.2. Using 505c48b nighty. Enabled "Use Jack Midi" and connected to the Qsynth. I have sound. Try updating your kernel.

Could you turn on verbose output in jack (Cadence -> Configure ->Engine ->Properties) and make these test again?
1. Jack Audio only
2. Jack Midi only
3. Jack Audio & Midi

Also, please run MuseScore in debug mode.

Thank you.

Hi igevorse,

Test done seems to indicate everything is now working correctly except a crappy sound with internal jack synth even when using 8buffers and 1024 samples.

Thks for the help :)