Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

musicxml2hum aborts when converting file exported from a musescore file #46

Open
pierre-dlsi opened this issue Oct 22, 2021 · 0 comments

Comments

@pierre-dlsi
Copy link

pierre-dlsi commented Oct 22, 2021

The attached MusicXML file, exported from a Musescore file, makes musicxml2hum abort at the Tool_musicxml2hum::convertOttavaToHumdrum() function.

I don't know exactly which is the culprit. May be the MusicXML file is ill-exported by Musescore. musicxml2hum aborts due to lines humlib.cpp:54401-54406 computing a 'staffindex' value equal to -1, which causes the program to abort due to an 'out_of_range' exception at line 54412. May be the use of 'atoi()' in that code produces some undefined behaviour.

exported_by_musescore.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant