# Picture lost in canvas and function

**URL:** <https://root-forum.cern.ch/t/picture-lost-in-canvas-and-function/58478>\
**Category:** ROOT\
**Created:** [March 11, 2024, 9:52am UTC](https://root-forum.cern.ch/t/picture-lost-in-canvas-and-function/58478 "2024-03-11T09:52:50Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [March 11, 2024, 11:48am UTC](https://root-forum.cern.ch/t/picture-lost-in-canvas-and-function/58478/4 "2024-03-11T11:48:03Z")

</div>

If you want to keep running it through WSL2, you need to install an “X server”, e.g. VcXsrv (google it and get it from sourceforge), and have this server running before opening the linux environment. See here some instructions for WSL2:

> [@ROOT on Windows 11 WSL2 / WSLg](https://root-forum.cern.ch/t/root-on-windows-11-wsl2-wslg/48348/7):
>
> So I tried staying with WSL2 and using VcXsrv, and it works fine, as far as I have tested. I don’t know if behind curtains WSL is complaining for having 2 GUI servers, but it seems to work slight_smile Just for completeness, when using WSL2 and VcXsrv (don’t know with Xming), adding these lines to .bashrc is needed: export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2\>/dev/null):0 export LIBGL\_ALWAYS\_INDIRECT=1 but is not enough (in either Windows 10 or 11). When starti…

---

_[View the full topic](https://root-forum.cern.ch/t/picture-lost-in-canvas-and-function/58478)._
