bugGNU TeXmacs - Bugs: bug #61991, outdated gs in MacOs .app =>...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #61991: outdated gs in MacOs .app => pdf issue

Submitter:  Tilda A. Steiner <tilda>
Submitted:  Fri 04 Feb 2022 09:18:14 PM UTC
 
Category:  None Priority:  5 - Normal
Item Group:  None Status:  Confirmed
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  None Release: 
Fixed Release:  None Fixed Release: 
Keywords: 

Sun 06 Feb 2022 09:52:17 AM UTC, comment #3: 

Well, gs 9.24 is inside texmacs.app; it's shipped with texmacs, and that's the problem.
changing the summary to reflect that

bug in the pdf-import -> outdated gs in MacOs .app => pdf issue

Philippe Joyez <pjoyez>
Project Member
Sat 05 Feb 2022 08:06:41 PM UTC, comment #2: 

I ran /Applications/TeXmacs.app/Contents/MacOS/TeXmacs --debug-convert bug_report.tm

This is the output:

/Users/matthias/.TeXmacs/progs/my-init-texmacs.scm:511:1: In expression (assign "darkgreen" (macro "body" #)):
/Users/matthias/.TeXmacs/progs/my-init-texmacs.scm:511:1: Unbound variable: assign
TeXmacs] debug-convert, Loading dictionary corktounicode
TeXmacs] debug-convert, Loading dictionary cork-unicode-oneway
TeXmacs] debug-convert, Loading dictionary tmuniversaltounicode
TeXmacs] debug-convert, Loading dictionary symbol-unicode-oneway
TeXmacs] debug-convert, Loading dictionary symbol-unicode-fallback
TeXmacs] debug-convert, Loading dictionary symbol-unicode-math
TeXmacs] debug-convert, Loading dictionary corktounicode
TeXmacs] debug-convert, Loading dictionary unicode-cork-oneway

TeXmacs] debug-convert, Loading dictionary tmuniversaltounicode
TeXmacs] debug-convert, Loading dictionary unicode-symbol-oneway
TeXmacs] debug-convert, Loading dictionary corktounicode
TeXmacs] debug-convert, Loading dictionary cork-unicode-oneway
TeXmacs] debug-convert, Loading dictionary tmuniversaltounicode
TeXmacs] debug-convert, Loading dictionary symbol-unicode-oneway
TeXmacs] debug-convert, Loading dictionary symbol-unicode-math
TeXmacs] With linked TrueType support
TeXmacs] debug-convert, image_size not cached for :/Users/matthias/Documents/progs/maxima/mea/Dowling07/bug_report_sample_05.pdf
TeXmacs] debug-convert, hummus_pdf_image_info:
TeXmacs] debug-convert, image =/Users/matthias/Documents/progs/maxima/mea/Dowling07/bug_report_sample_05.pdf
TeXmacs] debug-convert, crop box={0, 640, 0, 384}
TeXmacs] debug-convert, w,h={640, 384}
TeXmacs] debug-convert, degrees image rotated :0
TeXmacs] debug-convert, dx,dy={-0, -0}
TeXmacs] debug-convert, image_to_png ...  using gs
TeXmacs] debug-convert, gs_to_png using gs
TeXmacs] debug-convert, image_size in cache for /Users/matthias/Documents/progs/maxima/mea/Dowling07/bug_report_sample_05.pdf
TeXmacs] debug-convert, 640 x 384
TeXmacs] debug-convert, w=620 h=372
TeXmacs] debug-convert, bbw=640 bbh=384
TeXmacs] debug-convert,  res =69 * 69
TeXmacs] debug-convert, "/Applications/TeXmacs.app/Contents/Resources/share/TeXmacs/bin/gs" -dQUIET -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pngalpha -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -g620x372 -sOutputFile=/Users/matthias/.TeXmacs/system/tmp/18417/tmp_845492656.png -r69x69 -dUseCropBox /Users/matthias/Documents/progs/maxima/mea/Dowling07/bug_report_sample_05.pdf
TeXmacs] debug-convert, answer :GPL Ghostscript 9.24: Some glyphs of the font YMVOSG+Helvetica requires a patented True Type interpreter.
TeXmacs] debug-convert,    **** Error reading a content stream. The page may be incomplete.
TeXmacs] debug-convert,                Output may be incorrect.
TeXmacs] debug-convert,    **** Error: File did not complete the page properly and may be damaged.
TeXmacs] debug-convert,                Output may be incorrect.
TeXmacs] debug-convert,

What I do not understand is that TeXmacs calls Ghostscript 9.24. My default Ghostscript is version 9.54.0 as setup by MacPorts.

Tilda A. Steiner <tilda>
Sat 05 Feb 2022 06:24:52 PM UTC, comment #1: 

Works flawlessly for me (on Linux).

If I run texmacs with the  --debug-convert command line option it shows :

TeXmacs] debug-convert, image_size not cached for :/tmp/bug_report_sample_05.pdf
TeXmacs] debug-convert, hummus_pdf_image_info:
TeXmacs] debug-convert, image =/tmp/bug_report_sample_05.pdf
TeXmacs] debug-convert, crop box={0, 640, 0, 384}
TeXmacs] debug-convert, w,h={640, 384}
TeXmacs] debug-convert, degrees image rotated :0
TeXmacs] debug-convert, dx,dy={-0, -0}
...
TeXmacs] debug-convert, image_size in cache for /tmp/bug_report_sample_05.pdf
TeXmacs] debug-convert, 640 x 384
TeXmacs] debug-convert, qt loading image /tmp/bug_report_sample_05.pdf
TeXmacs] debug-convert, image_to_png ...  using gs
TeXmacs] debug-convert, gs_to_png using gs
TeXmacs] debug-convert, image_size in cache for /tmp/bug_report_sample_05.pdf
TeXmacs] debug-convert, 640 x 384
TeXmacs] debug-convert, w=566 h=340
TeXmacs] debug-convert, bbw=640 bbh=384
TeXmacs] debug-convert,  res =63 * 63
TeXmacs] debug-convert, "gs" -dQUIET -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pngalpha -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -g566x340 -sOutputFile=/home/phil/.TeXmacs/system/tmp/2419/tmp_1715827599.png -r63x63 -dUseCropBox /tmp/bug_report_sample_05.pdf
TeXmacs] debug-convert, answer :

This shows the image is indeed converted by gs, and the output is good, as you have seen already. For some reason it's behaving differently on your machine.

Can you try the same debug and report here the corresponding output? Besides the command line option, you can activate debugging on-the-fly through the "Tools->Debugging tool" menu and then selecting "Debug->convert" and the debug output can be seen with "Debug->Consoles->Debugging console" (but you will not be able to select&copy the output from that window).

Philippe Joyez <pjoyez>
Project Member
Fri 04 Feb 2022 09:18:14 PM UTC, original submission:  

I did pdf-plots within the Maxima-plugin containing Unicode math characters such as “⅓” and “⋅” for the “key” labels. Maxima and gnuplot produce the correct pdf output. (c.f. attached pdf-file).

However, when I want to load these files into my tm-file these Unicode characters are only partially imported by TeXmacs (2.1.1 on OS X 13.6/15.7) and the function graphs not rendered at all. (c.f. attached png-file).

Tilda A. Steiner <tilda>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #52804:  bug_report_sample_05.pdf added by tilda (30KiB - application/pdf)
file #52805:  bug_report_screen_05.png added by tilda (42KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pjoyez (Posted a comment)
  • -email is unavailable- added by tilda (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

     

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-02-06 pjoyez StatusNone Confirmed
        Summarybug in the pdf-import outdated gs in MacOs .app => pdf issue
    2022-02-04 tilda Attached File- Added bug_report_sample_05.pdf, #52804
        Attached File- Added bug_report_screen_05.png, #52805

    Back to the top


    Powered by Savane 3.9