Ooops! I thought it was strange that I could have missed the g_mutex_unlock() the first time, what happened was that I mistakenly deleted the g_mutex_free() and left the unlock, and then when I looked again saw the unlock still there and thought I'd missed it. But this meant the g_mutex_free() was missing - this didn't crash my machine when I tested it, but it could run you out of memory ... Your error messages don't seem to match this mistake of mine though - there are now just three g_mutex_unlock()s in the C code all in audiointerface.c and all matched with lock/trylock. So this Attempt to unlock mutex that was not locked > Abgebrochen > is puzzling. On the face of it, it looks like a muddle with versions of the program - a failed git pull, corruption of files ... I can't think what.
Well, I have fixed the failure to free the mutex and so it is worth testing again. Richard On Mon, 2014-10-06 at 09:24 +0200, Andreas Schneider wrote: > Now it crashes even when the audio device should not be busy (i.e. no > other program uses it). > > With portaudio: > > Denemo - MESSAGE : Loading preference file: > /home/andreas/.denemo-1.1.9/denemorc > Denemo - MESSAGE : Audio driver is 'portaudio' 0 > Denemo - MESSAGE : Initializing Fluidsynth > Denemo - MESSAGE : The default fluidsynth soundfont has been loaded > Denemo - MESSAGE : Initializing Rubberband > Denemo - MESSAGE : Initializing PortAudio backend > Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, > &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', > line: 924 > Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, > &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', > line: 924 > Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, > &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', > line: 924 > ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition > 'cards.HDA-Intel.pcm.rear.0:CARD=0' > ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer > returned error: Datei oder Verzeichnis nicht gefunden > ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: Datei oder > Verzeichnis nicht gefunden > ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM rear > ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition > 'cards.HDA-Intel.pcm.center_lfe.0:CARD=0' > ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer > returned error: Datei oder Verzeichnis nicht gefunden > ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: Datei oder > Verzeichnis nicht gefunden > ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM center_lfe > ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side > ALSA lib pcm_route.c:947:(find_matching_chmap) Found no matching channel map > Cannot connect to server socket err = Datei oder Verzeichnis nicht gefunden > Cannot connect to server request channel > jack server is not running or cannot be started > Denemo - WARNING : Invalid device 'ALSA: USB Audio DAC: - (hw:2,0)' > Denemo - WARNING : Initializing audio backend 'portaudio' failed, > falling back to dummy > Denemo - MESSAGE : Initializing dummy audio backend > Denemo - MESSAGE : MIDI driver is 'portmidi' > Denemo - MESSAGE : Initializing PortMidi backend > Attempt to unlock mutex that was not locked > Abgebrochen > > Without portaudio: > > Denemo - MESSAGE : Loading preference file: > /home/andreas/.denemo-1.1.9/denemorc > Denemo - MESSAGE : Audio driver is 'portaudio' 0 > Denemo - MESSAGE : Initializing Fluidsynth > Denemo - MESSAGE : The default fluidsynth soundfont has been loaded > Denemo - MESSAGE : Initializing Rubberband > Denemo - MESSAGE : Initializing PortAudio backend > Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, > &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', > line: 924 > Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, > &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', > line: 924 > Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, > &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', > line: 924 > ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition > 'cards.HDA-Intel.pcm.rear.0:CARD=0' > ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer > returned error: Datei oder Verzeichnis nicht gefunden > ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: Datei oder > Verzeichnis nicht gefunden > ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM rear > ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition > 'cards.HDA-Intel.pcm.center_lfe.0:CARD=0' > ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer > returned error: Datei oder Verzeichnis nicht gefunden > ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: Datei oder > Verzeichnis nicht gefunden > ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM center_lfe > ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side > ALSA lib pcm_route.c:947:(find_matching_chmap) Found no matching channel map > ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: > Verbindung verweigert > > ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: > Verbindung verweigert > > Cannot connect to server socket err = Datei oder Verzeichnis nicht gefunden > Cannot connect to server request channel > jack server is not running or cannot be started > Denemo - WARNING : Invalid device 'ALSA: USB Audio DAC: - (hw:2,0)' > Denemo - WARNING : Initializing audio backend 'portaudio' failed, > falling back to dummy > Denemo - MESSAGE : Initializing dummy audio backend > Denemo - MESSAGE : MIDI driver is 'portmidi' > Denemo - MESSAGE : Initializing PortMidi backend > Denemo - MESSAGE : Opening input device 'ALSA: MPK249 MIDI 1' > Denemo - MESSAGE : Opening output device 'ALSA: CS46XX' > Attempt to unlock mutex that was not locked > Abgebrochen > > Andreas > > > Am 05.10.2014 um 23:00 schrieb Richard Shann: > > Checking again, I see I missed one of these mutex unlocks that caused > > the trouble - now fixed in git if you can test again. > > Thanks > > Richard > _______________________________________________ Denemo-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/denemo-devel
