Skip Menu |

This queue is for tickets about the Prima-OpenGL CPAN distribution.

Report information
The Basics
Id: 123443
Status: open
Priority: 0/
Queue: Prima-OpenGL

People
Owner: Nobody in particular
Requestors: chm [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 0.08
  • 1.00
  • 1.01
Fixed in: (no value)



Subject: Prima::OpenGL crashes cygwin X server
Hi Dmitry-

I wanted to report that the current Prima::OpenGL appears to cause the X11 server in cygwin to crash.
While this is arguably a problem with the server and will be reported to them, I though I would let you
know where the crash happens in case there is a work around or more specific problem report that
can be made to cygwin.

The X11 version is "Package: version 1.19.4-1 built 2017-10-05"
The hang occurs in the 2nd test with the following message appearing in the mintty window:

    glxWinDeferredCreateDrawable: tried to create a GLX_DRAWABLE_PIXMAP drawable with a fbConfig which doesn't have drawableType GLX_PIXMAP_BIT
    glxWinSetPixelFormat: having second thoughts: cColorbits 24, bppOveride 32; config->drawableType 5, drawableTypeOverride 2
    wglChoosePixelFormat error: Unknown error (c0070591)

Hi Chris, I can't reproduce it with the latest cygwin, however, I remember that I experienced Xorg crashes under certain setup when opengl extension connection was "local" (through some direct memory mechanism), and it only worked when I explicitly added GLWidget->new( ..., {gl_config => {render => 'xserver'}}) in the program. It's not that this even counts as a workaround, but just for the curiousity sake, could you hack the guilty program and see if that changes anything? Dmitry
Subject: Re: [rt.cpan.org #123443] Prima::OpenGL crashes cygwin X server
Date: Wed, 1 Nov 2017 20:13:12 -0400
To: bug-Prima-OpenGL [...] rt.cpan.org
From: Chris Marshall <devel.chm.01 [...] gmail.com>
Hi Dmitry- The failure was in Prima::OpenGL t/02_basic.t which doesn't directly call GLWidget.  I had to regress to the previous release so I could continue to use Prima::OpenGL but the next time I have a break in OpenGL and cygwin for a clean test, I'll give it another go. I would definitely be interested in why you weren't able to reproduce the problem on a clean cygwin but there are a lot of possibilities there. Thanks for getting back to me... --Chris On 11/1/2017 04:24, KARASIK via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=123443 > > > Hi Chris, > > I can't reproduce it with the latest cygwin, however, I remember that I experienced Xorg crashes under certain setup when opengl extension connection was "local" (through some direct memory mechanism), and it only worked when I explicitly added GLWidget->new( ..., {gl_config => {render => 'xserver'}}) in the program. It's not that this even counts as a workaround, but just for the curiousity sake, could you hack the guilty program and see if that changes anything? > > Dmitry
Hi Chris, I tried X server both with and without '-multiwindow' option, and also with and without LIBGL_USE_WGL environment variable. Everything just works. Tried that on Windows 7 with 24-bit resolution. Sorry that's not a lot of help... /dk
Subject: Re: [rt.cpan.org #123443] Prima::OpenGL crashes cygwin X server
Date: Wed, 8 Nov 2017 12:30:12 -0500
To: bug-Prima-OpenGL [...] rt.cpan.org
From: Chris Marshall <devel.chm.01 [...] gmail.com>
I just did a completely clean cygwin64 install on a new win10 system and Prima::OpenGL still hangs the cygwin XWin server. Sigh...
Subject: Re: [rt.cpan.org #123443] Prima::OpenGL crashes cygwin X server
Date: Thu, 9 Nov 2017 11:34:13 -0500
To: bug-Prima-OpenGL [...] rt.cpan.org
From: Chris Marshall <devel.chm.01 [...] gmail.com>
The first commit with the hang is d0a7dc51b3a972 and the only change that seems significant is -use Prima::noX11; +use Prima::Test; and the resulting error from the XWin server is: Show quoted text
>  glxWinDeferredCreateDrawable: tried to create a GLX_DRAWABLE_PIXMAP >  drawable with a fbConfig which doesn't have drawableType GLX_PIXMAP_BIT >  glxWinSetPixelFormat: having second thoughts: cColorbits 24,
bppOveride 32; Show quoted text
>    config->drawableType 5, drawableTypeOverride 2 >  wglChoosePixelFormat error: Unknown error (c0070591)
I think I might be getting beyond where I can debug but maybe this gives a clue.  It would be nice to have a small example of the issue for the cygwin X devels (and a work around in the meantime would be pretty wonderful for me too! :-) --Chris On 11/8/2017 12:30, devel.chm.01@gmail.com via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=123443 > > > I just did a completely clean cygwin64 install on a new win10 system > and Prima::OpenGL still hangs the cygwin XWin server. Sigh...
Show quoted text
> > -use Prima::noX11; > +use Prima::Test; >
This looks very interesting. It seems that default 'use Prima' with manual XOpenDisplay hack somehow are different here. I wish I could reproduce the bug ...
Hi Chris, I took a fresh Windows 7 laptop where cygwin was never installed, set up cygwin64 on it, run XWin in both vanilla and -multiwindow mode, run Prima-OpenGL tests and examples, and ... nothing. It just does not crash. So nothing for here so far Dmitry