I ran xscope on the rendering server using "xscope -i13 -o0 -d:0.0" and then 
connected from my PC to the server (using vglconnect) and then ran the app 
using "vglrun -c rgb -d :13.0 wine <program>" 

If it would be helpful for me to do this differently let me know. I wasn't sure 
where to place xscope in the mix (my PC or rendering server) as I wasn't sure 
if placing xscope on my PC would actually allow it to see all the GLX ops. 

----- Original Message ----- 
From: "Nathan Kidd" <nathan...@spicycrypto.ca> 
To: "VirtualGL Users" <virtualgl-users@lists.sourceforge.net> 
Sent: Thursday, February 24, 2011 11:24:36 AM 
Subject: Re: [VirtualGL-Users] VirtualGL Linux wine crash in versions newer 
than 1.3.10 

On 11-02-24 12:15 PM, calvin.mor...@comcast.net wrote: 
> xscope 1.3 reports to have beginning support for GLX, so I've attempted 
> to use that. This is my first time using xscope, so hopefully it is correct. 
> 
> I've attached both the VGL Trace output as well as the xscope output in 
> GZip format. 

[VGL] glXCreatePbuffer (dpy=0x7ddf7d38(:13.0) config=0x00000075(0x75) 
attrib_list=[0x8041=0x0800 0x8040=0x0480 0x801b=0x0001 ] pb=0x01e00007 ) 
2.960920 ms 
config=0x00000075(0x75) drawable=0x01e00007 ) 39.219856 ms 
X Error of failed request: BadWindow (invalid Window parameter) 
Major opcode of failed request: 136 (GLX) 
Minor opcode of failed request: 16 (X_GLXVendorPrivate) 
Resource id in failed request: 0x1e00007 
Serial number of failed request: 0 
Current serial number in output stream: 99 

Wine creates a pbuffer, which VGL redirects to the local display. Then 
Wine uses a vendorprivate call using that pbuffer id, VGL doesn't hook 
any vendor private calls, so the call goes to the regular x display of 
course the id doesn't exist so the error. (Tangental trivia: I bet if 
you use the same X server for DISPLAY and VGL_DISPLAY it will work, 
since the id then exists.) 

How did you set up your xscope trace? the log seems to only have between 
VGL and the 3D rendering display? It doesn't have any record of the 
VendorPrivate call (or other X traffic you would expect from the 
client). If putting xscope between your app and the normal x server 
doesn't help then probably it is easiest to just check the Wine source. 
(My quick perusal only turns up Wine using SWapIntervalSGI, but that 
wouldn't return a BadWindow.) 

Either way, the solution is figure out which function call it is and 
then for VGL to hook it. 

-Nathan 

> ----- Original Message ----- 
> From: "Nathan Kidd" <nathan...@spicycrypto.ca> 
> To: "VirtualGL Users" <virtualgl-users@lists.sourceforge.net> 
> Sent: Thursday, February 24, 2011 8:50:48 AM 
> Subject: Re: [VirtualGL-Users] VirtualGL Linux wine crash in versions 
> newer than 1.3.10 
> 
> On 11-02-24 10:32 AM, calvin.mor...@comcast.net wrote: 
> > Hello List, 
> > 
> > I'm finding that VirtualGL has been working well with most graphics 
> > applications I've tried under Linux, and even with pretty decent 
> > performance. 
> > 
> > I have been running several Windows applications using wine and 
> > VirtualGL (Games and other graphic applications) with decent success 
> > (usually the same as running on a native workstation). However, all 
> > versions of Wine newer than 1.3.10 (which includes 1.3.11 - 1.3.14) have 
> > started crashing with the following error: 
> > 
> > X Error of failed request: BadWindow (invalid Window parameter) 
> > Major opcode of failed request: 136 (GLX) 
> > Minor opcode of failed request: 16 (X_GLXVendorPrivate) 
> > Resource id in failed request: 0x1c00007 
> > Serial number of failed request: 0 
> > Current serial number in output stream: 99 
> 
> To figure this out we'd need to know which VendorPrivate call it is, and 
> which window ID it's using. To figure that out you can try Xscope[1], 
> but I'm not sure it decodes GLX. Otherwise a new WireShark trace will 
> decode GLX for you. When you take your trace run VirtualGL with 
> VGL_TRACE=1 so we can easily match up the window IDs in the trace with 
> what VGL thought was going on. 
> 
> -Nathan 
> 
> [1] 
> http://lists.freedesktop.org/archives/xorg-announce/2009-October/001072.html 
> 
> ------------------------------------------------------------------------------
>  
> Free Software Download: Index, Search & Analyze Logs and other IT data in 
> Real-Time with Splunk. Collect, index and harness all the fast moving IT 
> data 
> generated by your applications, servers and devices whether physical, 
> virtual 
> or in the cloud. Deliver compliance at lower cost and gain new business 
> insights. http://p.sf.net/sfu/splunk-dev2dev 
> _______________________________________________ 
> VirtualGL-Users mailing list 
> VirtualGL-Users@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/virtualgl-users 
> 
> 
> 
> ------------------------------------------------------------------------------
>  
> Free Software Download: Index, Search& Analyze Logs and other IT data in 
> Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
> generated by your applications, servers and devices whether physical, virtual 
> or in the cloud. Deliver compliance at lower cost and gain new business 
> insights. http://p.sf.net/sfu/splunk-dev2dev 
> 
> 
> 
> _______________________________________________ 
> VirtualGL-Users mailing list 
> VirtualGL-Users@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/virtualgl-users 


------------------------------------------------------------------------------ 
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual 
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________ 
VirtualGL-Users mailing list 
VirtualGL-Users@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/virtualgl-users 
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
VirtualGL-Users mailing list
VirtualGL-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtualgl-users

Reply via email to