[Freewx-maint] Bug#575536: [Enthought-Dev] Bug#575536: mayavi2 segfaults under VNC

Olly Betts olly at survex.com
Fri Oct 14 04:27:41 UTC 2011


On Thu, Oct 13, 2011 at 11:37:13PM -0400, Yaroslav Halchenko wrote:
> how lucky I am that I have attached a complete terminal session dump to
> the initial report
> http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=script.yoh.14452.20100326.1546;att=1;bug=575536
> thus avoided myself now a hassle to rebuild it all without optimization
> and stripping ;)

OK, cool - I see what is happening here then.

When the wxGLCanvas is created, its ctor calls wxGLCanvas::Create()
which fails to get a GL visual and returns false before it gets to the
call which actually sets the parent class up:

    wxWindow::Create(parent, id, pos, size, style, name);

The wxGLCanvas ctor ignores the return value of wxGLCanvas::Create() and
it looks to me like there's no API call for the user to detect that the
wxGLCanvas object isn't really valid.

Simplest thing to try to me seems to be moving this call earlier, since
all its arguments are parameters of wxGLCanvas::Create().  Can you try
the attached patch?

Cheers,
    Olly
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wxglcanvas-create-parent-class-before-we-might-fail.patch
Type: text/x-diff
Size: 893 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/freewx-maint/attachments/20111014/86615e4e/attachment.patch>


More information about the Freewx-maint mailing list