lewdlime / abcm2ps

abcm2ps is a command line program which converts ABC to music sheet in PostScript or SVG format. It is an extension of abc2ps which may handle many voices per staff. abcm2ps is Copyright © 2014-2016 Jean-Francois Moine.
http://moinejf.free.fr/
GNU General Public License v3.0
84 stars 31 forks source link

abcm2ps crash in set_stems at music.:4400 ... with example input file. Running git clone/pull from today. #119

Open marshallmidden opened 1 month ago

marshallmidden commented 1 month ago

sigh Provided: macos lldb output of interest. The arguments of abcm2ps. The input file. And how I changed things to fix/get around it. (And something else, which I have forgotten ...)

PROGRAM='/Users/m4/Desktop/saved-m4-stuff/src/abcm2ps/abcm2ps' PROGRAM_ARGS="-M -b 1 ${INPUT} -i -N 2 -j 1"

Input: %abc X:1 %%staves [ (1 2) ] %%combinevoices 1 L:1/4 K:C V:1 [L:1/4][M:2/4]G/4=e/4=e/4=e/4[L:1/16](4:4:4=e=e=e=e |] V:2 [L:1/4][M:2/4]z/4B/4B/4B/4[L:1/16](4:4:4BBBB |]

git diff:

@@ -4396,6 +4397,7 @@ static void set_stems(void) if (s->sflags & S_FEATHERED_BEAM) nflags = ++s->nflags; for (s2 = s->next; /s2/; s2 = s2->next) {