Bug 56919 - LilyPond не генерирует .pdf/.midi при отсутствии нот
Summary: LilyPond не генерирует .pdf/.midi при отсутствии нот
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: lilypond (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: arbars@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-19 15:42 MSK by Artem Varaksa
Modified: 2025-11-19 15:42 MSK (History)
1 user (show)

See Also:


Attachments
Ожидаемый вид PDF-файла (2.28 KB, image/png)
2025-11-19 15:42 MSK, Artem Varaksa
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Artem Varaksa 2025-11-19 15:42:27 MSK
Created attachment 20118 [details]
Ожидаемый вид PDF-файла

Шаги
====

1. # apt-get install -y lilypond

2. $ echo '%%LY voices \set autoBeaming = ##f' > abc.ly && \
  abc2ly -o abc2ly.ly abc.ly && \
  lilypond abc2ly.ly 

3. $ ls


Фактический результат
=====================

Файлы .pdf/.midi не создаются.

В выводе предупреждения:

> abc2ly from LilyPond 2.24.4
> Parsing `abc.ly'...
> Line ... lilypond output to: `abc2ly.ly'...
> GNU LilyPond 2.24.4 (running Guile 2.2)
> Processing `abc2ly.ly'
> Разбираю...
> Interpreting music...
> abc2ly.ly:15:5: warning: skipping zero-duration score
> 
>     <<
> abc2ly.ly:15:5: warning: to suppress this, consider adding a spacer rest
> 
>     <<
> Interpreting music...
> abc2ly.ly:15:5: warning: skipping zero-duration score
> 
>     <<
> abc2ly.ly:15:5: warning: to suppress this, consider adding a spacer rest
> 
>     <<
> Success: compilation successfully completed


$ cat abc2ly.ly


> \version "2.7.40"
> \header {
>         footnotes = ""
>         tagline = "Lily was here 2.24.4 -- automatically converted from ABC"
> }
> voicedefault =  {
> \set Score.measureBarType = ""
> 
> \set autoBeaming = ##f
>  % %LY voices \set autoBeaming = ##f
> 
> }
> 
> \score{
>     <<
> 
>         \context Staff="default"
>         {
>             \voicedefault
>         }
> 
>     >>
>         \layout {
>         }
>         \midi {}
> }


Ожидаемый результат
===================

Ранее в 2023 году с версией 2.24.2 фиксировался результат:

$ abc2ly abc.ly 

> /usr/bin/abc2ly from LilyPond 2.24.2
> Parsing `abc.ly'...
> Line ... lilypond output to: `abc2ly.ly'...

$ lilypond abc2ly.ly 

> GNU LilyPond 2.24.2
> Processing `abc2ly.ly'
> Разбираю...
> Interpreting music...
> Preprocessing graphical objects...
> Interpreting music...
> вывод MIDI в abc.midi...
> Finding the ideal number of pages...
> Fitting music on 1 page...
> Drawing systems...
> Layout output to `/tmp/.private/test/lilypond-rBcDtl'...
> Converting to `abc.pdf'...
> Deleting `/tmp/.private/test/lilypond-rBcDtl'...
> Success: compilation successfully completed


В т. ч.:

> вывод MIDI в abc.midi...
> Converting to `abc.pdf'...

и корректное создание данных файлов. Ожидаемый вид PDF-файла прикреплён. 


Воспроизводимость
=================

Воспроизводится на виртуальных машинах:

[p10] ALT Server 10.4 x86_64
festival-2.5-alt0.4.x86_64
lilypond-2.22.0-alt1.x86_64
ghostscript-10.05.1-alt1.x86_64

[p10+400371.1] ALT Server 10.4 x86_64
festival-2.5-alt0.4.x86_64
lilypond-2.24.2-alt1.x86_64
ghostscript-10.05.1-alt1.x86_64

[p11] ALT Server 11.0 x86_64
festival-2.5-alt0.4.x86_64
lilypond-2.24.2-alt1.x86_64
ghostscript-10.06.0-alt1.x86_64

[sisyphus] ALT Server 11.0 x86_64
festival-2.5-alt0.6.x86_64
lilypond-2.24.4-alt1.x86_64
ghostscript-10.06.0-alt1.x86_64