- **summary**: Segfault with midi and \new StaffGroup --> Segfault when music
is empty and only MIDI file is generated
- **Comment**:
It's not only with StaffGroup, but also with Staff or Voice.
If \layout is present, the 'no music' warning is printed but the complation
completes without crashing.
If only \midi is enabled, there's a crash.
~~~~
\version "2.19.84"
\score {
\new Staff {}
%\new Voice { }
%\layout {}
\midi {}
}
~~~~
---
** [issues:#5234] Segfault when music is empty and only MIDI file is generated**
**Status:** Accepted
**Created:** Wed Nov 08, 2017 11:26 PM UTC by Simon Albrecht
**Last Updated:** Wed Nov 08, 2017 11:26 PM UTC
**Owner:** nobody
**Attachments:**
-
[debug.ly](https://sourceforge.net/p/testlilyissues/issues/5234/attachment/debug.ly)
(63 Bytes; text/x-lilypond)
-
[debug.midi](https://sourceforge.net/p/testlilyissues/issues/5234/attachment/debug.midi)
(0 Bytes; audio/midi)
The following code generates a segfault using 2.19.80 (Ubuntu 16.04, 64-bit):
~~~~
\version "2.19.80"
\score {
\new StaffGroup {}
\midi {}
}
~~~~
~~~~
$ lilypond debug.ly
GNU LilyPond 2.19.80
Processing `debug.ly'
Parsing...
Interpreting music...
warning: no music found in score
MIDI output to `debug.midi'...Segmentation fault (core dumped)
~~~~
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/testlilyissues/issues/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/testlilyissues/admin/issues/options. Or, if this is
a mailing list, you can unsubscribe from the mailing list._______________________________________________
Testlilyissues-auto mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/testlilyissues-auto