Trying to print on Linux crashes musescore

• Oct 17, 2016 - 01:36
Reported version
3.0
Type
Functional
Severity
S2 - Critical
Status
closed
Project

If I try to print, the current dev version crashes. It happens if I press CTRL-P or use the menu entry.

BTW: pdf export works, but it isn't very pretty, as often (not always) the stems are away from the note heads (there is a gap inbetween)

Linux Mint 18

GIT commit: 3543170


Comments

7f9585a, self-built, doesn't crash on Windows 7
3543170 is from Jul 31 2013, stoneage, did you build it yourself and forgot the following, taken from https://musescore.org/en/developers-handbook/compilation/compile-instru…

(optional but recommended) In your clone directory, copy the file build/git/hooks/post-checkout to the directory .git/hooks in order for mscore/revision.h to be maintained automatically by git. See build/git/hooks/README for details. Note that the .git directory is hidden.

That PDF export issue might be needed to get reported as a separate bug. Haven't noticed it on Windows yet though, so please attach a score and the exported PDF

The crash is caused by the changes of 0763a5cc
In particular line 1498 where cs->excerpt() is NUL since there are no excerpts (=parts).
I think that the problem can be solved similarly to what is done a few lines above 1485-1488 with a check if we are printing the main score or an excerpt.