-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New gs 10.01.0 from brew yields many subtle failures #7336
Comments
Please note that our Linux CI is still using old gs versions. Thus, if we update the PS files, the Linux CI may break. |
As a brew master, is there a command that takes me back to 10.00? |
There is no easy way to install old versions of a homebrew package, but you can try:
|
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? |
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. |
Was able to roll back to 10.00 so failures are back to normal. |
This looks pretty bad. Attached are ex023 PNG images generated by gs 9.54 and gs 10.01. 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. |
Yes, the PDF look fine - I wonder if this is a gm/gs issue since it makes no sense. |
It's a gs issue because gm is not used when converting ps to png. |
Just a heads-up:
Source: Bleeping Computer: Critical RCE found in popular Ghostscript open-source PDF library |
At summit we should build 10.01.2 and see if they have fixed the bugs affecting us. |
Don’t think they have. In that recent report of malfunction from Dan he was using 10.01.2 |
I tried both ghostscript 10.00.0 and 10.01.2 on ex23.ps Results are here for ghostscript 10.00.0 and rendering to png, jpg, and plotting on Xwindows. Results are here for ghostscript 10.01.2 and rendering to png, jpg, and plotting on Xwindows. |
This patch to ghostscript appears to fix it: https://git.ghostscript.com/?p=ghostpdl.git;a=blobdiff;f=base/gspaint.c;h=b3500c1d5282972dbb5ae1a27452c27644a4af32;hp=d67ef36bce6cacf2d02c547a9f4337a420667ff6;hb=c52b4a80cdfc6d9b7d04f52c4a872717aeeff73c;hpb=772d6f3f65b9453df52fb3f12058613842e3565c It is not yet applied to ghostscript 10.01.2 that was released in June. But with this patch applied, things are OK again. |
Thanks to @remkos, macports now delivers a patched gs 10.02.1 that seems to work fine. |
Do you think we should has a page that lists the working gs versions? |
Yes, insofar as we know enough to make a useful one for most users.
… On Jul 20, 2023, at 10:38 PM, Dongdong Tian ***@***.***> wrote:
Do you think we should has a page that lists the working gs versions?
—
Reply to this email directly, view it on GitHub <#7336 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/APUT6GLYKEYK74TN7M6POWTXRHTSDANCNFSM6AAAAAAWFNEBDE>.
You are receiving this because you are on a team that was mentioned.
|
@joa-quim might have good intel on this. Pre 9.56 had a few buggers, then 10.0.0 right? |
In fact, it is gs 10.01.2, which is the latest release. |
FYI, Ghostscript has released the first candidate release of 10.02.0. I just built it from the source and ran the GMT full tests. Now I have 13 failing tests (similar to what we're having using gs 9.56.1):
I didn't check all the tests carefully, but the failures look reasonable. The example ex23 mentioned in #7336 (comment) also looks good with gs 10.02.0. |
Hi @seisman I am trying to build on my M1 Mac. Run ./configure then make and get at the end:
Anything I need to initialise first, args to configure ? |
|
No worries, I think I did do this before so there must be a way. Obviously the gs team do not use Macs I think. |
This post may be helpful: https://stackoverflow.com/questions/57734434/libiconv-or-iconv-undefined-symbol-on-mac-osx |
Tested 10.02.0 on Windows and seems to work. Same number of failures as before. |
I have about 80 failures. Either tiny things (mixcompose.sh): or very bad (imgshade.sh): Not among @seisman's list and I am guessing no among @joa-quim's either. I have a bunch that is related to different reference grids (like the last one here), and probably round off (top one)? Note sure what I should do. What data server do you use for your tests? Cannot be the same as me (oceania)? |
These latest clearly look originated in different grid versions. We shouldn’t have these type of tests. |
Well, we cannot avoid having plots that need to be compared. I agree we should avoid such test if an alternative way without needing gs, but I dont see how given these types of modules. What we do need is to run these of a static set of data that does not get updated. Remember that lots of tests results from bug reports and we turned those into tests. |
They could use small synthetic grids. |
gs 10.02.0 is out. I built the source code and ran the full tests on Linux. Here are a list of failures I have:
I didn't check all these failures carefully, but most of them look good to me. In summary, gs 10.02.0 looks like a working version for GMT. |
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. |
FYI, conda and homebrew also updated their ghostscript to 10.02.0 |
Thanks @seisman for the updates. Transparency is still not working on my MBpro Ventura. |
With GMT6.4 you need a gs version < 10 to have transparency. |
Thanks @joa-quim. Any ideas or process for downgrading gs version < 10? |
Homebrew can do it but I don't remember how (very occasional Mac user) |
Surely @seisman and @PaulWessel have tricks to find out! |
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
|
Thanks @seisman. Is the master branch compatible with the current version of gs? |
Can that
Yes. |
I believe it only downloads the latest commit using |
Ah, that is good. We should probably advertise that in our installing instructions. |
We already did it https://github.com/GenericMappingTools/gmt/blob/master/INSTALL.md#install-via-homebrew |
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. |
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.
The text was updated successfully, but these errors were encountered: