MuseScore is an open source and free music notation software. For support, contribution, bug reports, visit MuseScore.org. Fork and make pull requests!
When working on a medium sized score, MuseScore will consistently crash with a malloc(): invalid size (unsorted)
The source of the crash is coming from libMuseSamplerCoreLib.so and is detailed in the stack-trace below. It does not seem to occur in certain situations, (described below).
The cause of the crash appears to be a descrepancy between the tempo indicated by a rall... and the end tempo marking, where the rall sets the tempo below that of the marked tempo.
For example t = 132bpm - rall 90% to t = 120bpm, the rall sets the final tempo to 119bpm over 2 bars; approx 4 bars later, MuseScore will crash.
The workaround appears to be to set the % for the rall to 91% over 2 bars so the final tempo matches that of the marked tempo.
In trying to test this, it only appears to affect the Percussion set of which the score makes heavy use of vibraphone, celesta, orchestral bass drum, snare, timpani, it does not seemingly have an effect on strings although I can neither confirm nor guarantee this is the case.
To understand this issue, I have:
Confirmed it in 4.0.1
Tested it in the nightly build
Built MuseScore from the 4.0.2 branch with debug symbols
Score instrumentation:
Tubular bells
Bass Guitar
Timpani
Vibraphone 1
Vibraphone 2
Vibraphone 3
Bongos
Bass Drum
Snare Drum
Cymbals (Platti)
Celesta 1
Celesta 2
Violins 1a (section)
Violins 1b (section)
Violins 2 (section)
Violas (section)
Cellos (section)
Contrabass (section)
Steps to reproduce
I am not entirely confident this will fail in exactly the same way each time but:
Create a score containing 200+ bars making heavy use of percussion and strings with an opening tempo of crotchet = 132
Add a rallentando at bar 101 spanning 2 bars
Set the playback tempo change property to 90%
add a new tempo marking at bar 103 to crotchet = 120
Issue type
Crash or freeze
Bug description
When working on a medium sized score, MuseScore will consistently crash with a
malloc(): invalid size (unsorted)
The source of the crash is coming from
libMuseSamplerCoreLib.so
and is detailed in the stack-trace below. It does not seem to occur in certain situations, (described below).The cause of the crash appears to be a descrepancy between the tempo indicated by a rall... and the end tempo marking, where the rall sets the tempo below that of the marked tempo.
For example t = 132bpm - rall 90% to t = 120bpm, the rall sets the final tempo to 119bpm over 2 bars; approx 4 bars later, MuseScore will crash.
The workaround appears to be to set the % for the rall to 91% over 2 bars so the final tempo matches that of the marked tempo.
In trying to test this, it only appears to affect the Percussion set of which the score makes heavy use of vibraphone, celesta, orchestral bass drum, snare, timpani, it does not seemingly have an effect on strings although I can neither confirm nor guarantee this is the case.
To understand this issue, I have:
Score instrumentation:
Steps to reproduce
I am not entirely confident this will fail in exactly the same way each time but:
Screenshots/Screen recordings
No response
MuseScore Version
4.0.1 OS: Ubuntu 22.10, Arch.: x86_64, MuseScore version (64-bit): 4.0.1-230121751, revision: github-musescore-musescore-9b70a8c
Regression
No.
Operating system
Ubuntu Studio 22.10
Additional context
Full backtrace log: musescore-backtrace.txt
Specific backtrace from
gdb
(Backtrace created with MuseScore 4.0.2 git @ commit 48ac167c5e20b612a418d922a22db6e06ceb3c19)