Hi,
I've found a strange behaviour using lilypond-book --safe on a lytex
file: With multiple snippets each containing one \fret-diagram-x markup
command, compilation works for the first snippet but fails on the next
one. Then if you run lilypond-book --safe a second time, it will
successfully compile the second snippet but fail on the third, etc.
I attach a minimal example file and the log of the error on first run of
lilypond-book --safe. The same file compiles perfectly without the
--safe switch. I am assuming that \fret-diagram-x markup commands are
allowed in safe mode. Minimal trials with lilypond -dsafe have led me to
believe that this should work.
Thanks and regards,
Julien
# lilypond-book --safe --output out safe-mode-crash.lytex
lilypond-book (GNU LilyPond) 2.13.38
Reading safe-mode-crash.lytex...
Running latex...This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
restricted \write18 enabled.
entering extended mode
(/tmp/tmpFX4oAm.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, french, basque, ngerman, german, german-x-2009-06-19, ngerman-x-200
9-06-19, ukenglish, loaded.
(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size10.clo))
No file tmpFX4oAm.aux.
textwidth=345.0pt
columnsep=10.0pt
(./tmpFX4oAm.aux) )
No pages of output.
Transcript written on tmpFX4oAm.log.
Dissecting...
Writing snippets...
Processing...
Running lilypond...GNU LilyPond 2.13.39
Processing `snippet-map-1517400283.ly'
Parsing...
Processing `safe-mode-crash.lytex'
Parsing...
Layout output to `ea/lily-d3fe7bea.eps'...
Layout output to `ea/lily-d3fe7bea-1.eps'...
Writing ea/lily-d3fe7bea-systems.texi...
Writing ea/lily-d3fe7bea-systems.tex...
Writing ea/lily-d3fe7bea-systems.count...
Processing `safe-mode-crash.lytex'
Parsing...
safe-mode-crash.lytex:12:21: error: GUILE signaled an error for the expression
beginning here
\fret-diagram-terse #
"x;x;o;2;3;2;"
Wrong type argument in position 1 (expecting module): #<srcprops ((breakpoint .
#f) (line . 602) (column . 58) (filename .
"/usr/local/share/lilypond/2.13.39/ly/music-functions-init.ly"))>
/usr/local/share/lilypond/2.13.39/scm/fret-diagrams.scm:868:17: In procedure
string-split in expression (string-split definition-string #\;):
/usr/local/share/lilypond/2.13.39/scm/fret-diagrams.scm:868:17: Wrong type
argument in position 1 (expecting string): #<unspecified>
command failed: /usr/local/bin/lilypond --formats=ps -dbackend=eps -I
"/scratch/lilypond-samples" --formats=eps -deps-box-padding=3.000000
-dread-file-list -dno-strip-output-dir
"/scratch/lilypond-samples/out/snippet-names-1517400283.ly"
Child returned 1
% lilypond-book --safe --output out safe-mode-crash.lytex
\documentclass{article}
\begin{document}
\begin{lilypond}
\markup{
\fret-diagram-terse #"x;3;2;o;1;o;"
}
\end{lilypond}
%
\begin{lilypond}
\markup{
\fret-diagram-terse #"x;x;o;2;3;2;"
}
\end{lilypond}
\end{document}
_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond