Bug 56916 - LilyPond снова не генерирует файлы: Error: /undefined in finddevice
Summary: LilyPond снова не генерирует файлы: Error: /undefined in finddevice
Status: NEW
Alias: None
Product: Branch p11
Classification: Unclassified
Component: lilypond (show other bugs)
Version: unspecified
Hardware: x86_64 Linux
: P5 normal
Assignee: arbars@altlinux.org
QA Contact: qa-p11@altlinux.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-19 13:44 MSK by Artem Varaksa
Modified: 2025-11-19 13:51 MSK (History)
0 users

See Also:


Attachments
Вывод с -V для sisyphus, p11, p10 (25.63 KB, text/plain)
2025-11-19 13:44 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 13:44:47 MSK
Created attachment 20117 [details]
Вывод с -V для sisyphus, p11, p10

Похоже, что проблемы с GhostScript/guile https://bugzilla.altlinux.org/36005 проявляются заново.
* По-разному в p10 и p11.
* В sisyphus работает.


Шаги
====

1. # apt-get install -y festival lilypond

2. $ cat > test.ly << EOF
\version "2.24.2"
{
  c' e' g' e'
}
EOF

(можно и без указания версии)

3. $ lilypond test.ly


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

[p11] $ lilypond test.ly
GNU LilyPond 2.24.2 (running Guile 2.2)
Processing `test.ly'
Разбираю...
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Converting to `test.pdf'...
warning: `(gs -q -dNODISPLAY -dNOSAFER -dNOPAUSE -dBATCH -dAutoRotatePages=/None -dPrinted=false /tmp/.private/test/lilypond-tmp-7480239)' failed (256)

/usr/share/lilypond/2.24.2/ly/init.ly:65:2: error: Guile signaled an error for the expression beginning here
#
 (let ((book-handler (if (defined? 'default-toplevel-book-handler)
Throw to key `ly-file-failed' with args `()'


[p10] $ lilypond test.ly
> GNU LilyPond 2.22.0
> Processing `test.ly'
> Разбираю...
> test.ly:1: warning: no \version statement found, please add
> 
> \version "2.22.0"
> 
> for future compatibility
> Interpreting music...
> Preprocessing graphical objects...
> Finding the ideal number of pages...
> Fitting music on 1 page...
> Drawing systems...
> Converting to `test.pdf'...
> warning: `(gs -q -dNODISPLAY -dNOSAFER -dNOPAUSE -dBATCH -dAutoRotatePages=/None -dPrinted=false /tmp/.private/test/lilypond-tmp-2537064)' failed (256)
>
> fatal error: failed files: "test.ly"


Вывод с `-V` - во вложении.

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

Успешная генерация файла, как в sisyphus:


[sisyphus] $ lilypond test.ly
> GNU LilyPond 2.24.4 (running Guile 2.2)
> Processing `test.ly'
> Разбираю...
> Interpreting music...
> Preprocessing graphical objects...
> Finding the ideal number of pages...
> Fitting music on 1 page...
> Drawing systems...
> Converting to `test.pdf'...
> Success: compilation successfully completed


Вывод с `-V` - во вложении.


Дополнительно
=============

Следующие команды:


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


Завершаются успешно на всех системах:


> 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 {}
> }


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

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

[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 (поведение аналогично [p11])
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
Comment 1 Artem Varaksa 2025-11-19 13:51:14 MSK
При этом, похоже, исходная ошибка 

> Error: /undefined in finddevice

одинакова в p10 и p11.