I can reproduce with r2935. If playback is working, I sometimes got SegFault in the terminal. My I/O settings is Portaudio / Alsa / Pulse or Default; On first start, playback was not working and MuseScore hangs.
Funny enough, running mscore -d, the segfault is less frequent. When it appears the last messages are: Stop I/O
Erreur de segmentation
Sometimes mscore hangs in portaudio Pa_Terminate() on exit. I added a Pa_CloseStream() before Pa_Terminate() and could not reproduce the bug anymore. Needs to be checked on different systems.
Disregard. I had forgotten; Toby Smithe changed the way the executable works in account of pulseaudio, and I had forgotten to apply it to my own builds.
Comments
Not able to reproduce (Tested using r. 2931 and r. 2935 nightly, Windows 7)
I can reproduce with r2935. If playback is working, I sometimes got SegFault in the terminal. My I/O settings is Portaudio / Alsa / Pulse or Default; On first start, playback was not working and MuseScore hangs.
Funny enough, running mscore -d, the segfault is less frequent. When it appears the last messages are:
Stop I/O
Erreur de segmentation
Sometimes mscore hangs in portaudio Pa_Terminate() on exit. I added a Pa_CloseStream() before Pa_Terminate() and could not reproduce the bug anymore. Needs to be checked on different systems.
Great fix. I can't reproduce anymore with r2939.
It's only working half of the time for me. One in every 10 fails presents this error:
Expression 'SetApproximateSampleRate( pcm, hwParams, sr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1294
Expression 'PaAlsaStreamComponent_InitialConfigure( &self->playback, outParams, self->primeBuffers, hwParamsPlayback, &realSr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1873
Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1994
Disregard this. It's because it switches my I/O preferences randomly every 10 startups. Will file another report.
Sorry for triple post.
Even if my settings are the same, one in every ten closes will hang. The segfaults have stopped, though.
Disregard. I had forgotten; Toby Smithe changed the way the executable works in account of pulseaudio, and I had forgotten to apply it to my own builds.
So sorry for the noise.
Automatically closed -- issue fixed for 2 weeks with no activity.