makehuman icon indicating copy to clipboard operation
makehuman copied to clipboard

Viewport empty/not working in Wayland

Open andersmmg opened this issue 3 years ago • 3 comments

When using Wayland, the viewport does not seem to render. I've already tried turning on the no shaders and sample buffers, but it has no effect. It seems to work using X11 when I install that, but not Wayland. It just shows my desktop or whatever is behind the window, while flickering a lot. image

andersmmg avatar Nov 09 '22 03:11 andersmmg

~~Just out of curiosity, does it still fail if you launch it with PYOPENGL_PLATFORM=osmesa?~~ I'm investigating running makehuman on wayland myself and have run into three different scenarios:

  • Launching in Wayland (QT_QPA_PLATFORM=wayland)
    • Fails due to not properly configuring the xdg_surface (see #224)
  • Launching in XWayland (QT_QPA_PLATFORM=xcb)
    • Fails as described in this issue, due to running in XWayland but attempting to load EGL.
  • Launching in XWayland using the OSMesa software renderer (QT_QPA_PLATFORM=xcb PYOPENGL_PLATFORM=osmesa
    • Works just fine, but on the software renderer and thus entirely unaccelerated.

~~Launching it with PYOPENGL_PLATFORM=glx seems to be ignored and continues to load EGL because it detects wayland.~~ Okay I went and did some searching before submitting this comment, it looks like the appropriate invocation is in fact PYOPENGL_PLATFORM=x11!

Launching through Wayland/EGL still fails and should be explored in the relevant ticket, but forcing XWayland/GLX works fine with: QT_QPA_PLATFORM=xcb PYOPENGL_PLATFORM=x11 makehuman.

Celti avatar Jun 23 '23 01:06 Celti

Adding those variables does make it display at least, I added them to my .desktop file and it's useable

andersmmg avatar Jun 23 '23 05:06 andersmmg

yeah PYOPENGL_PLATFORM=x11 fixes this issue for me.

nattydread69 avatar Feb 10 '25 21:02 nattydread69