# Graphics problem when connecting remotely (ssh + X11 forwarding) from a Mac

**URL:** <https://community.freefem.org/t/graphics-problem-when-connecting-remotely-ssh-x11-forwarding-from-a-mac/2320>\
**Category:** General Discussion\
**Created:** [March 7, 2023, 2:29pm UTC](https://community.freefem.org/t/graphics-problem-when-connecting-remotely-ssh-x11-forwarding-from-a-mac/2320 "2023-03-07T14:29:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![etj](https://avatars.discourse-cdn.com/v4/letter/e/a698b9/32.png) [@etj](https://community.freefem.org/u/etj)\
**Post date:** [March 7, 2023, 2:29pm UTC](https://community.freefem.org/t/graphics-problem-when-connecting-remotely-ssh-x11-forwarding-from-a-mac/2320/1 "2023-03-07T14:29:40Z")

</div>

Hello,

I use FreeFem++ on several computers, connecting remotely with ssh and X11 forwarding. One of the computers has an old version:  
– FreeFem++ v 3.380000 (date Mer 24 jui 2015 20:46:58 CEST)

On that computer, everything works fine when connecting from a Windows 10 PC (with MobaXterm, if that matters), but there is an issue when connecting from a Mac OS 13 (Ventura) with Xquartz and the `ssh -X ...` command in a terminal: FreeFem++ runs correctly with the `-nw` option, but without that option the following error occurs:

> libGL error: No matching fbConfigs or visuals found  
> libGL error: failed to load driver: swrast  
> X Error of failed request: GLXBadContext  
> Major opcode of failed request: 149 (GLX)  
> Minor opcode of failed request: 6 (X\_GLXIsDirect)  
> Serial number of failed request: 35  
> Current serial number in output stream: 34  
> X Error of failed request: BadValue (integer parameter out of range for operation)  
> Major opcode of failed request: 149 (GLX)  
> Minor opcode of failed request: 24 (X\_GLXCreateNewContext)  
> Value in failed request: 0x0  
> Serial number of failed request: 34  
> Current serial number in output stream: 35

Does anyone have experience with the same problem, or knows how to solve it? Thank you in advance!

---

<div class="post-metadata">

**Author:** ![etj](https://avatars.discourse-cdn.com/v4/letter/e/a698b9/32.png) [@etj](https://community.freefem.org/u/etj)\
**Post date:** [March 7, 2023, 3:01pm UTC](https://community.freefem.org/t/graphics-problem-when-connecting-remotely-ssh-x11-forwarding-from-a-mac/2320/2 "2023-03-07T15:01:14Z")

</div>

I forgot to mention that X11 forwarding itself is working correctly: for instance, I can open emacs with GUI. It’s only when running FreeFem++ that the error occurs.

---

<div class="post-metadata">

**Author:** ![frederichecht](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/frederichecht/32/15_2.png) [@frederichecht](https://community.freefem.org/u/frederichecht)\
**Post date:** [March 8, 2023, 12:40pm UTC](https://community.freefem.org/t/graphics-problem-when-connecting-remotely-ssh-x11-forwarding-from-a-mac/2320/3 "2023-03-08T12:40:30Z")

</div>

Possible is because on MacOS FreeFem++ and ffglut are not X11 application but CoCoa

---

<div class="post-metadata">

**Author:** ![etj](https://avatars.discourse-cdn.com/v4/letter/e/a698b9/32.png) [@etj](https://community.freefem.org/u/etj)\
**Post date:** [March 8, 2023, 2:33pm UTC](https://community.freefem.org/t/graphics-problem-when-connecting-remotely-ssh-x11-forwarding-from-a-mac/2320/4 "2023-03-08T14:33:02Z")

</div>

Thank you for your reply.

Unfortunately I’m not familiar with CoCoa. Is it possible to connect remotely and still have FF++ graphics? If yes, how? Thanks again.

---

<div class="post-metadata">

**Author:** ![frederichecht](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/frederichecht/32/15_2.png) [@frederichecht](https://community.freefem.org/u/frederichecht)\
**Post date:** [March 10, 2023, 4:14pm UTC](https://community.freefem.org/t/graphics-problem-when-connecting-remotely-ssh-x11-forwarding-from-a-mac/2320/5 "2023-03-10T16:14:42Z")

</div>

CoCoa is a apple tool box to make graphique,  
Infortunalty we do no compile FreeFem++ with X11 interface.  
it is possible but not simple.
