Hang/Segfault on close (R.2934)

• Apr 3, 2010 - 18:53
S4 - Minor

Revision 2934, Ubuntu 9.10

Merely opening up the program and then closing it again results in the program hanging. If it doesn't hang, it segfaults when it closes.


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.

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.