Bug 33243 - lilypond enable to output pdf file
Summary: lilypond enable to output pdf file
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL: https://bugs.gentoo.org/920817
Whiteboard: MGA9-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2024-05-26 15:30 CEST by bruno pinçon
Modified: 2024-07-01 19:54 CEST (History)
5 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
TogoHT.ly is a lilypond file which raises an error when output a pdf file (2.86 KB, text/plain)
2024-05-30 11:04 CEST, bruno pinçon
Details

Description bruno pinçon 2024-05-26 15:30:41 CEST
Description of problem: lilypond (2.24.2) enable to output a pdf file


Version-Release number of selected component (if applicable): 2.24.2


How reproducible: Write a minimal xxx.ly file then lilypond xxx.ly. A workaround is to output a postscript file using the --ps option then convert the ps file in pdf.


Steps to Reproduce:
I prefer to provide the following page of the gentoo distribution where this bug has been fixed (bug  920817). The page describes exactly my problem :
https://bugs.gentoo.org/920817

hth
BrunoP
Comment 1 Morgan Leijström 2024-05-26 18:06:45 CEST
Thank you for reporting, and providing link to a fix :)

Assigning to registered maintainer, with alternate mail in CC.

CC: (none) => bruno, fri
URL: (none) => https://bugs.gentoo.org/920817
Assignee: bugsquad => bruno.cornec

Comment 2 Bruno Cornec 2024-05-27 10:31:14 CEST
I can't really reproduce that (just tried on a random score I had handy):

$ lilypond imperayritz.ly
GNU LilyPond 2.24.2 (exécution de Guile 2.2)
Traitement de « imperayritz.ly »
Analyse...
imperayritz.ly:116:53: Avertissement : abandonné : absence du « . » dans le chemin à la propriété Score.RemoveEmptyVerticalGroup.remove-first
           \override Score.RemoveEmptyVerticalGroup 
                                                    #'remove-first = ##t
Interprétation en cours de la musique...
imperayritz.ly:116:12: Avertissement : « RemoveEmptyVerticalGroup » n'est pas un nom d'objet graphique (grob)
           
           \override Score.RemoveEmptyVerticalGroup #'remove-first = ##t
Avertissement : vérification du type de propriété pour « instrument » (translation-type?) non trouvée  Probable faute de frappe
Avertissement : affectation ignorée
Avertissement : vérification du type de propriété pour « instrument » (translation-type?) non trouvée  Probable faute de frappe
Avertissement : affectation ignorée
[8][16][24][32]
Pré-traitement des éléments graphiques...
Détermination du nombre optimal de pages...
Répartition de la musique sur une page...
Dessin des systèmes...
Conversion à « imperayritz.pdf »...
Compilation menée à son terme, avec succès.
$ ls -altr imperayritz.pdf
-rw-r--r-- 1 bruno users 192301 mai   27 09:59 imperayritz.pdf

I've produced multiple scores since I updated to mageia 9 without issue.

The Gentoo bug report is on 2.24.0 so may be linked to something else as well.

Can you provide a .ly file which is not working for you so I can see whether i can reproduce or not.

Status: NEW => ASSIGNED

Comment 3 Morgan Leijström 2024-05-27 14:53:34 CEST
Thank you for assigning, Bruno.

I am confused whether it is you who are assigned;
I went by http://90.7.108.76/show?distribution=cauldron&architecture=x86_64&graphical=0&rpm=lilypond which say bcornec, but for mga9 it say daviddavid, but
$ mgarepo maintdb get lilypond
akien
Comment 4 Morgan Leijström 2024-05-27 17:22:21 CEST
Papoteur answered on qa-list that madb use name of last packager submitting.
Comment 5 bruno pinçon 2024-05-30 11:04:53 CEST
Created attachment 14553 [details]
TogoHT.ly is a lilypond file which raises an error when output a pdf file

Here is the output (and after the output when I precise to output a postscript file) :

lilypond TogoHT.ly 
GNU LilyPond 2.24.2 (exécution de Guile 2.2)
Traitement de « TogoHT.ly »
Analyse...
Interprétation en cours de la musique...[8]
Pré-traitement des éléments graphiques...
Détermination du nombre optimal de pages...
Répartition de la musique sur une page...
Dessin des systèmes...
Conversion à « TogoHT.pdf »...
Avertissement : « (gs -q -dNODISPLAY -dNOSAFER -dNOPAUSE -dBATCH -dAutoRotatePages=/None -dPrinted=false /tmp/lilypond-tmp-4659379) » a échoué (256)

/usr/share/lilypond/2.24.2/ly/init.ly:65:2: Erreur : Guile a signalé une erreur pour l'expression débutant ici
#
 (let ((book-handler (if (defined? 'default-toplevel-book-handler)
Throw to key `ly-file-failed' with args `()'.


Now no problem with a postscrit file :

lilypond --ps TogoHT.ly 
GNU LilyPond 2.24.2 (exécution de Guile 2.2)
Traitement de « TogoHT.ly »
Analyse...
Interprétation en cours de la musique...[8]
Pré-traitement des éléments graphiques...
Détermination du nombre optimal de pages...
Répartition de la musique sur une page...
Dessin des systèmes...
Copie vers « TogoHT.ps »...
Compilation menée à son terme, avec succès.
Comment 6 bruno pinçon 2024-05-30 11:11:55 CEST
Thanks you to investigate this bug which seems not so easy to solve. Here is a .ly file (but all my lilypond files have the same behavior with lilypond) where I can have a postcript output but not a pdf output. I have provided the output of lilypond in the 2 cases (sorry there are in french.
 Bruno Pinçon.

PS : my email adress is outdated in this bugzilla and I was not able to change it (seems a intrinsic pb with bugzilla), what is the natural procedure to change it ? Open a new account ?
Comment 7 katnatek 2024-05-30 19:14:46 CEST
I confirm and reproduce the fail with the provide file

LC_ALL=C lilypond Descargas/TogoHT.ly 
GNU LilyPond 2.24.2 (running Guile 2.2)
Processing `Descargas/TogoHT.ly'
Parsing...
Interpreting music...[8]
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Converting to `TogoHT.pdf'...
warning: `(gs -q -dNODISPLAY -dNOSAFER -dNOPAUSE -dBATCH -dAutoRotatePages=/None -dPrinted=false /tmp/lilypond-tmp-3950901)' 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 `()'.

 LC_ALL=C lilypond --ps Descargas/TogoHT.ly 
GNU LilyPond 2.24.2 (running Guile 2.2)
Processing `Descargas/TogoHT.ly'
Parsing...
Interpreting music...[8]
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Copying to `TogoHT.ps'...
Success: compilation successfully completed

As the fail output have gs I wonder if resents updates to ghostscript introduce this error and search in the internet https://bugs.gentoo.org/920817 looks like we need to update lilypond
Comment 8 Bruno Cornec 2024-06-17 02:58:50 CEST
Ok good news, well sort of.
Since I updated my distro on that machine, I have the same issue as you on all my scores.

So this is due to one of my updates. The bad news is that there are a lot. I tried downgrading ghostscript without success, so that is linked to something else.
Comment 9 Bruno Cornec 2024-06-17 10:01:49 CEST
With these updates, upgrading to lilypond 2.24.3 fixes the issue for me.
I'm pushing it to updates_testing so you can try as well.
Comment 10 Brian Kimerer 2024-06-30 16:10:55 CEST
I have installed 2.24.3 on my system, and it works.

$ inxi -b
System:
  Host: linux6core Kernel: 6.6.28-desktop-1.mga9 arch: x86_64 bits: 64
    Desktop: KDE Plasma v: 5.27.10 Distro: Mageia 9
Machine:
  Type: Desktop Mobo: Micro-Star model: MPG Z490 GAMING EDGE WIFI (MS-7C79)
    v: 1.0 serial: <superuser required> UEFI: American Megatrends v: 1.C0
    date: 06/10/2022
CPU:
  Info: 6-core 11th Gen Intel Core i5-11400 [MT MCP] speed (MHz): avg: 800
    min/max: 800/4400

CC: (none) => briankimerer

Comment 11 katnatek 2024-06-30 20:32:48 CEST
Packages in 9/core/updates_testing

i586:
lilypond-2.24.3-1.mga9.i586.rpm
lilypond-doc-2.24.3-1.mga9.noarch.rpm

x86_64:
lilypond-2.24.3-1.mga9.x86_64.rpm
lilypond-doc-2.24.3-1.mga9.noarch.rpm


SRPM:
lilypond-2.24.3-1.mga9.src.rpm

Assignee: bruno.cornec => qa-bugs

Comment 12 katnatek 2024-06-30 20:44:45 CEST
LC_ALL=C urpmi --auto --auto-update
medium "QA Testing (32-bit)" is up-to-date
medium "QA Testing (64-bit)" is up-to-date
medium "Core Release (distrib1)" is up-to-date
medium "Core Updates (distrib3)" is up-to-date
medium "Nonfree Release (distrib11)" is up-to-date
medium "Nonfree Updates (distrib13)" is up-to-date
medium "Tainted Release (distrib21)" is up-to-date
medium "Tainted Updates (distrib23)" is up-to-date
medium "Core 32bit Release (distrib31)" is up-to-date
medium "Core 32bit Updates (distrib32)" is up-to-date
medium "Nonfree 32bit Release (distrib36)" is up-to-date
medium "Tainted 32bit Release (distrib41)" is up-to-date
medium "Tainted 32bit Updates (distrib42)" is up-to-date


installing lilypond-2.24.3-1.mga9.x86_64.rpm from //home/katnatek/qa-testing/x86_64
Preparing...                     ##################################################################################################
      1/1: lilypond              ##################################################################################################
      1/1: removing lilypond-2.24.2-2.mga9.x86_64
                                 ##################################################################################################

LC_ALL=C lilypond TogoHT.ly 
GNU LilyPond 2.24.3 (running Guile 2.2)
Processing `TogoHT.ly'
Parsing...
Interpreting music...[8]
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Converting to `TogoHT.pdf'...
Success: compilation successfully completed

Open the generated pdf without issues

CC: (none) => andrewsfarm
Whiteboard: (none) => MGA9-64-OK

katnatek 2024-06-30 20:52:08 CEST

Keywords: (none) => advisory

Comment 13 Thomas Andrews 2024-07-01 02:35:39 CEST
Validating.

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 14 Mageia Robot 2024-07-01 19:54:41 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2024-0152.html

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.