[Mac] Opening MuseScore causes crash
1. Open MuseScore.
Result: Crash.
Note: See attached log. This seems to be a Mac only bug. It is openable sometimes, but often only after a number of attempts. It has been occurring for months.
Using MuseScore 2.0 Nightly Build (7c7c601) - Mac 10.7.5.
Attachment | Size |
---|---|
Opening MuseScore causes crash (Log).txt | 50.56 KB |
Comments
This particular crash seems to happen here https://github.com/musescore/MuseScore/blob/master/synthesizer/msynthes…
On Mac the size of the portaudio buffer can go over 4096 and then it crashes. Not sure what we can do...
- dynamically allocate the effectXbuffer?
- Increase their size? how much?
- fix the number of frames per buffer on mac by passing it to Pa_OpenStream?
- change the suggested latency in Pa_OpenStream? Smaller latency will cause smaller buffers? but how much?
Because of #21897: [Mac] Sluggish sound. I change the suggested latency to 20ms in fcce1dbff0. It seems to solve #21897 but still, there is no reason why "n" would be below MAX_BUFFERSIZE.
Fixed in 429b740e8f
I raised the buffer size to 8192 and in process() I added a check to drop the frame if it would end up in an overflow.
Automatically closed -- issue fixed for 2 weeks with no activity.