[Pkg-erlang-devel] Bug#861086: Bug#861086: wings3d: Does not start under Wayland

Sergei Golovan sgolovan at gmail.com
Sun Nov 26 18:11:39 UTC 2017


Hi Yuri,

On Mon, Apr 24, 2017 at 5:51 PM, Yuri Schaeffer <yuri at schaeffer.tk> wrote:
> Package: wings3d
> Version: 2.1.5-1
> Severity: important
>
> Wings3D 2.1.5 works when logging in using Xorg but NOT when using Wayland. The
> previous version (1.5.3) works in both cases.
>
> Error message:
>
> 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}]}]}

I dug a little bit into this bug. I still have no computer with
Wayland installed, but recently
there was the same symptom with my new workstation on Intel hardware and Xorg.
Appeared that Wings3d uses wxGLCanvas with some attributes which
aren't supported
by my hardware (FSAA to be precise).

Could you try to compile and run the attached example (it's a
minimally modified example
from [1]) which just creates a GL canvas
and shows it? To compile it install  libwxgtk3.0-dev, libgl1-mesa-dev,
libglu1-mesa-dev
(or some other GL and GLU development libs) and run

g++ main.cpp -o gl `wx-config --libs --cxxflags --gl-libs` -lGL -lGLU

I expect this to fail with some dialog window with message about some
assertion failure.

Then edit the main.cpp file, commenting out line 35 and uncommenting
line 34, compile
and run it again.

If the first run fails and the second one works fine, then it'll mean
that the problem is the same,
where Wings3d tries to create wxGLCanvas with unsupported attributes.
If it's the case,
tell me and I'll forward this report to the Wings3d author. Probably,
I'll also disable
antialiasing at the moment.

[1] https://wiki.wxwidgets.org/WxGLCanvas

Cheers!
-- 
Sergei Golovan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example.tar.gz
Type: application/x-gzip
Size: 2457 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-erlang-devel/attachments/20171126/6a95b3ed/attachment.bin>


More information about the Pkg-erlang-devel mailing list