This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with OpenGL on new X serverl


Florent Fievez wrote:
Debugger is not very useful because the binaries are stripped. Is
there a debug version somewhere or should i recompile it myself to
have it ?

Hi Florent,


Thanks for the bug report.

Ignore the "GetWindowProp - pWin or name was NULL", this is just log spam and a red herring.

As you have surmised, the problem is GLX related. There are some reports of remote GLX clients working (Ubuntu 8.10), so perhaps it is related to the client being built for an older version of the GLX extension...

If you are able to rebuild the X server yourself, could you confirm that the attached patch fixes the crash (GL is still broken, though, it looks like the something isn't initialized correctly...)

Rebuilding the source *should* be as simple as:

1) Run cygwin setup, select cygport,the xorg-server source package, and the packages for the build-time dependencies and devel packages corresponding to run-time dependencies listed in /usr/share/doc/Cygwin/usr/share/doc/Cygwin
2) cd /usr/src/
3) cygport xorg-server-1.5.3-3.cygport prep compile


I have made a start at updating http://x.cygwin.com/docs/cg/cygwin-x-cg.html, so you may find that helpful, but it still needs more work so don't take it as gospel.

2008/11/21 Florent Fievez <florent.fievez@fievel.be>:
After a grep in the sources, I see the error is from file
cygwin-net_wm_icon-support.patch. But i'm not sure that the error is
in relation with the crash. I will try to run the program under a
debugger.

2008/11/21 Florent Fievez <florent.fievez@fievel.be>:
Hello,

I have a crash when opening OpenGL. I have the same configuration than you :
ssh -X <host> ; XWin with glx extension activated.

Some of my investigations :

1. It's not caused by the X client OS (SunOS and Linux give the same crash)
2. It's not a problem with our application, glxinfo produce the same problem
3. It seems that the message "GetWindowProp - pWin or name was NULL"
is displayed before the crash, see my log in attachement.

I will download and check the XWin sources but I have not a lot of
time for debugging it so if someone have the same problem or want to
help me ...

Best regards,



2008/11/20 Yaakov (Cygwin Ports) <yselkowitz@users.sourceforge.net>:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Florent Fievez wrote:
I have a problem running new X server 1.5.3 with openGL. Since this
update, X crash when launching an OpenGL client from SunOS server.
Since the application we are developing use OpenGL, it's a big problem
for me (I have to use an exceed commercial xserver for testing our
application).

So is there a known solution, patch or other to this issue ?
I see that you do have the libGL1 package installed.  Could you please
review my results with GLX:

http://cygwin.com/ml/cygwin-xfree/2008-11/msg00100.html
http://cygwin.com/ml/cygwin-xfree/2008-11/msg00160.html

If you are still having issues, please attach your /var/log/XWin.log as
well.


Cygwin/X: GLX crash workaround

Paper over the cracks. Avoid a crash when we have a broken context.

Appears to be related to remote clients built for earlier GLX versions

---
 xserver/glx/single2.c |    1 +
 1 file changed, 1 insertion(+)

Index: xorg-server-1.5.3/xserver/glx/single2.c
===================================================================
--- xorg-server-1.5.3.orig/xserver/glx/single2.c
+++ xorg-server-1.5.3/xserver/glx/single2.c
@@ -357,6 +357,7 @@ int DoGetString(__GLXclientState *cl, GL
 	string = buf;
     }
     else if ( name == GL_VERSION ) {
+        if (string == NULL) { string = "unknown"; }
 	if ( atof( string ) > atof( GLServerVersion ) ) {
 	    buf = xalloc( strlen( string ) + strlen( GLServerVersion ) + 4 );
 	    if ( buf == NULL ) {

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]