NCAR / ncl

The NCAR Command Language (NCL) is a scripting language for the analysis and visualization of climate and weather data.
http://www.ncl.ucar.edu
Other
268 stars 65 forks source link

Incompatibility with new version of XQuartz (v2.8.5)? #197

Open mdtoyNOAA opened 1 year ago

mdtoyNOAA commented 1 year ago

screenshot Describe the bug Since the latest update of XQuartz for Mac OSX, I have been unable to plot from NCL scripts to an X11 window. I will describe the behavior on two machines: 1) My "work" laptop connected to a remote HPC server -- the plot begins to draw, but does not complete. Note that I can plot to pdf, png, etc. files, but not to an X11 window. 2) My "home" laptop trying to plot locally -- launching NCL gives the error message: dyld: Library not loaded: /opt/X11/lib/libcairo.2.dylib Referenced from : /opt/local/bin/ncl Reason: Incompatible library version: ncl requires version 11203.0.0 or later, but libcairo.2.dylib provides version 1.0.0 Abort

In both cases, the problem started with the latest update to XQuartz version 2.8.5.

Provide the following: (Files listed below are tarred and zipped in attached tgz file)

Computing environment

Additional context Again, the problem seems to be related to latest update of XQuartz to version 2.8.5. files.tgz

rbrownrigg commented 1 year ago

Hi,

This may not be relevant any longer, but you might check this FAQ for the partial drawing issue:

https://www.ncl.ucar.edu/FAQ/#err_msgs_001

Rick

On Tue, Feb 7, 2023 at 12:21 PM mdtoyNOAA @.***> wrote:

Describe the bug Since the latest update of XQuartz for Mac OSX, I have been unable to plot from NCL scripts to an X11 window. I will describe the behavior on two machines:

  1. My "work" laptop connected to a remote HPC server -- the plot begins to draw, but does not complete. Note that I can plot to pdf, png, etc. files, but not to an X11 window.
  2. My "home" laptop trying to plot locally -- launching NCL gives the error message: dyld: Library not loaded: /opt/X11/lib/libcairo.2.dylib Referenced from : /opt/local/bin/ncl Reason: Incompatible library version: ncl requires version 11203.0.0 or later, but libcairo.2.dylib provides version 1.0.0 Abort

In both cases, the problem started with the latest update to XQuartz version 2.8.5.

Provide the following: (Files listed below are tarred and zipped in attached tgz file)

  • a concise NCL script: "plot_du3_oblcol_lat_profile_simple.ncl"
  • necessary data files: "avg_du3_oblcol_bar.lndmsk.nc"
  • relevant graphical output: what the plot should look like: "du3_oblcol_emc_drag.pdf"

Computing environment

  • OS: MacOS and Linux (HPC)
  • OS version: Catalina
  • NCL Version: 6.6.2
  • Installation method: Both binary from NCAR website and conda

Additional context Again, the problem seems to be related to latest update of XQuartz to version 2.8.5. files.tgz https://github.com/NCAR/ncl/files/10678220/files.tgz

— Reply to this email directly, view it on GitHub https://github.com/NCAR/ncl/issues/197, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADLWOXVM42VZQVMORHLURMLWWKHBXANCNFSM6AAAAAAUUJUCKA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

mdtoyNOAA commented 1 year ago

Thank you, Rick. It is similar to my issue, except that the partially drawn plot is always the same, that is it stops drawing at the same point, not at random places. Also, the GPU on my laptop is an Apple chip. Up until last week, before the XQuartz update, I was able to plot to X11 with no problems. I'm going to add a screenshot of the partially drawn plot to the issue.

-- Mike

Dave-Allured commented 1 year ago

As I said on ncl-talk, this is a known problem with the XQuartz 2.8.5 release. It is affecting other X11 software, not just NCL. The suggested workaround is to back down to 2.8.4, until the problem is resolved. Also it looks like the XQuartz developers are actively working on this.

https://github.com/XQuartz/XQuartz/issues/323