Wings 3D Development Forum

Full Version: [false+] fails to start on wayland
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
On my system Wings3d 2.1.5 will not start when running Wayland. Using Xorg or downgrading to 1.5.3 does work.

Debian 64bit, Linux 4.9.0
Gnome Shell 3.22.3
Xwayland 1.19.3

Dump written 2017-4-19_21-53
Version: 2.1.5
Window: "<Unknown Window Name>"
Reason: {{error,no_gl_context,5075},
[{gl,rec,1,[{file,"gen/gl.erl"},{line,298}]},
{wings_gl,init_extensions,0,[{file,"wings_gl.erl"},{line,164}]},
{wings_gl,init,1,[{file,"wings_gl.erl"},{line,49}]},
{wings,init,1,[{file,"wings.erl"},{line,121}]}]}
Have you built everything yourself?
I would not expect the released (linux) binary to work out of the box.
I'm using the version from the Debian repository. Presumably compiled from source by the package maintainer.

Just tested the released binary as well for good measure. It has the same problem.
Oh well I could need some help with fixing that, don't know anything about wayland nor have a machine to test it on.

I don't know if wxWidgets and OpenGL works with wayland yet, or if it can be fixed in the erlang gui
wrapper.

Some linux programmer should probably start looking and fix something in the erlang source
at otp/lib/wx/c_src/*gl* files.

EDIT:
wxWidgets seems to not support wayland and opengl yet:
http://trac.wxwidgets.org/ticket/16692
http://trac.wxwidgets.org/ticket/17702
Well, I'm a developer that so happens to have access to such a setup, though with zero Erlang experience.... Alas, the error is not within Wings.
Which might actually be a good thing, wx is a widely used library and with the emerge of distros enabling Wayland per default one would expect a fix somewhere in the future.
Thanks for the research.