Skip to content

New gs 10.01.0 from brew yields many subtle failures #7336

Closed

Description

@PaulWessel

After doing brew update and brew upgrade I got gs 10.01.0 which seems to yield numerous tiny failures where lines are just processed and rendered slightly differently. So suddenly I have 85 failures on my hand that hours ago were fine. Hoping @GenericMappingTools/core can check to verify this. I guess 85 DVC updates are no big deal but this is kind of annoying.

Activity

  1. added
    bug
    on Mar 23, 2023
  2. self-assigned this
    on Mar 23, 2023
  3. seisman commented on Mar 23, 2023

    @seisman
    Member

    Please note that our Linux CI is still using old gs versions. Thus, if we update the PS files, the Linux CI may break.

  4. PaulWessel commented on Mar 23, 2023

    @PaulWessel
    ContributorAuthor

    As a brew master, is there a command that takes me back to 10.00?

  5. seisman commented on Mar 24, 2023

    @seisman
    Member

    There is no easy way to install old versions of a homebrew package, but you can try:

    1. change into the homebrew-core directory. For me, it's /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula
    2. Download the old gs recipe file ghostscript.rb (https://raw.githubusercontent.com/Homebrew/homebrew-core/7ef0570825ab93c0557c3561e66cfeb6b78686be/Formula/ghostscript.rb), which provides gs 10.0.0
    3. Replace the new ghostscript.rb file with the old one
    4. Reinstall ghostscript
  6. PaulWessel commented on Mar 24, 2023

    @PaulWessel
    ContributorAuthor

    Step 4 redownloads 10.01 even though I had placed the previous there. Perhaps I don’t know how to “reinstall”

    also, when you say you are using “old” gs, are vi talking 9.x?

  7. joa-quim commented on Mar 24, 2023

    @joa-quim
    Member

    Don't remember how but one can tell brew to run a locally stored formula. So you'd run brew on formula after step 2.

  8. PaulWessel commented on Mar 25, 2023

    @PaulWessel
    ContributorAuthor

    Just to show some of the craziness happening once 10.01 got used (presumably also via gm). Look at this failing example 23:

    wPgX3

    Yes it still fails with what you think is not too much given the picture?

    /opt/homebrew/bin/gm compare: image difference exceeds limit (0.0233046 > 0.003).

  9. PaulWessel commented on Mar 25, 2023

    @PaulWessel
    ContributorAuthor

    Was able to roll back to 10.00 so failures are back to normal.

  10. seisman commented on Mar 26, 2023

    @seisman
    Member

    Step 4 redownloads 10.01 even though I had placed the previous there. Perhaps I don’t know how to “reinstall”

    also, when you say you are using “old” gs, are vi talking 9.x?

    This looks pretty bad. Attached are ex023 PNG images generated by gs 9.54 and gs 10.01.

    ex23-gs954
    ex23-gs1001

    A significant change is that in the gs 10.01 version, the character "k" in the contour annotations is almost invisible.

    However, the PDF version from gs 10.01 seems OK.

    ex23.pdf

  11. PaulWessel commented on Mar 26, 2023

    @PaulWessel
    ContributorAuthor

    Yes, the PDF look fine - I wonder if this is a gm/gs issue since it makes no sense.

  12. seisman commented on Mar 26, 2023

    @seisman
    Member

    It's a gs issue because gm is not used when converting ps to png.

  13. KristofKoch commented on Jul 13, 2023

    @KristofKoch
    Contributor

    Just a heads-up:

    Ghostscript […] has been found vulnerable to a critical-severity remote code execution flaw.

    The flaw is tracked as CVE-2023-3664, having a CVSS v3 rating of 9.8, and impacts all versions of Ghostscript before 10.01.2, which is the latest available version released three weeks ago.

    Source: Bleeping Computer: Critical RCE found in popular Ghostscript open-source PDF library

  14. PaulWessel commented on Jul 13, 2023

    @PaulWessel
    ContributorAuthor

    At summit we should build 10.01.2 and see if they have fixed the bugs affecting us.

  15. joa-quim commented on Jul 13, 2023

    @joa-quim
    Member

    Don’t think they have. In that recent report of malfunction from Dan he was using 10.01.2

  16. 19 remaining items

  17. remkos commented on Sep 17, 2023

    @remkos
    Contributor

    I created a PR for Ghostscript 10.02.0 on macports. It was accepted and merged yesterday, so macports users can get it easily now.

  18. seisman commented on Sep 18, 2023

    @seisman
    Member

    FYI, conda and homebrew also updated their ghostscript to 10.02.0

  19. ghomsi123 commented on Sep 20, 2023

    @ghomsi123

    Thanks @seisman for the updates. Transparency is still not working on my MBpro Ventura.
    I'm using the 6.4.0 version installed via brew. I've even linked gs10.2.0 with gmt and it still doesn't work.

  20. joa-quim commented on Sep 20, 2023

    @joa-quim
    Member

    With GMT6.4 you need a gs version < 10 to have transparency.

  21. ghomsi123 commented on Sep 20, 2023

    @ghomsi123

    Thanks @joa-quim. Any ideas or process for downgrading gs version < 10?

  22. joa-quim commented on Sep 20, 2023

    @joa-quim
    Member

    Homebrew can do it but I don't remember how (very occasional Mac user)

  23. ghomsi123 commented on Sep 20, 2023

    @ghomsi123

    Surely @seisman and @PaulWessel have tricks to find out!

  24. seisman commented on Sep 20, 2023

    @seisman
    Member

    Any ideas or process for downgrading gs version < 10?

    It's not easy to downgrade gs to <10, because many gs dependencies are too new to be compatible with gs 9.

    I think it's much easier to install the GMT master branch instead. With homebrew, you just need to run

    brew install gmt --HEAD
    
  25. ghomsi123 commented on Sep 20, 2023

    @ghomsi123

    Thanks @seisman. Is the master branch compatible with the current version of gs?

  26. joa-quim commented on Sep 20, 2023

    @joa-quim
    Member

    Can that --HEAD be limited to recent commits only to avoid having to download the ~1 GB repo?

    Is the master branch compatible with the current version of gs?

    Yes.

  27. seisman commented on Sep 20, 2023

    @seisman
    Member

    Can that --HEAD be limited to recent commits only to avoid having to download the ~1 GB repo?

    I believe it only downloads the latest commit using git clone --depth=1.

  28. joa-quim commented on Sep 20, 2023

    @joa-quim
    Member

    Ah, that is good. We should probably advertise that in our installing instructions.

  29. seisman commented on Sep 20, 2023

    @seisman
    Member
  30. seisman commented on Sep 24, 2023

    @seisman
    Member

    Since gs 10.02.0 seems working well with GMT master branch, I think we can close the issue, although we still need to update the baseline images if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugdiscussion

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions