Wings 3D Development Forum
[false+] fails to start on wayland - Printable Version

+- Wings 3D Development Forum (https://www.wings3d.com/forum)
+-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1)
+--- Forum: Bug Reports (https://www.wings3d.com/forum/forumdisplay.php?fid=12)
+--- Thread: [false+] fails to start on wayland (/showthread.php?tid=2503)



[false+] fails to start on wayland - yschaeff - 04-19-2017

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}]}]}


RE: fails to start on wayland - dgud - 04-24-2017

Have you built everything yourself?
I would not expect the released (linux) binary to work out of the box.


RE: fails to start on wayland - yschaeff - 04-24-2017

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.


RE: fails to start on wayland - dgud - 04-25-2017

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


RE: fails to start on wayland - yschaeff - 04-25-2017

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.