nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   not implemented: MIT-SHM/X_ShmCreatePixmap - do I miss a config option here? (http://www.nvnews.net/vbulletin/showthread.php?t=154436)

uOpt 08-24-10 09:01 PM

not implemented: MIT-SHM/X_ShmCreatePixmap - do I miss a config option here?
 
I have a Windows app that worked in cedega's version of wine for years. Somewhere along the line it broke, now I get:
Code:

X Error of failed request:  BadImplementation (server does not implement operation)
  Major opcode of failed request:  147 (MIT-SHM)
  Minor opcode of failed request:  5 (X_ShmCreatePixmap)
  Serial number of failed request:  3574
  Current serial number in output stream:  3576
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  62 (X_CopyArea)
  Resource id in failed request:  0x500034f
  Serial number of failed request:  3581
  Current serial number in output stream:  3582

I do have SHM:
Code:

xdpyinfo ->
number of extensions:    29
[...]
    MIT-SHM

The "invalid pixmap or window parameter" is more likely to be the fatal one anyway, I think cedega continues after not finding MIT-SHM.

Now, I run an old X11 server here (7.1.1) but I get the same errors (both errors) on Xorg server 1.4.2.

%%

They do share the NVidia driver version (256.35) and the same Xorg.conf configuration. So the question is, could this be rooted in a NVidia driver update and/or did I forget to load a thing or other in Xorg.conf?


Config file and the logfiles for both new and old version are here:
http://www.cons.org/xorg-debug-201008/


Here are a whole bunch of pages with similar problems, but no solutions:
google search

uOpt 08-24-10 09:15 PM

Re: not implemented: MIT-SHM/X_ShmCreatePixmap - do I miss a config option here?
 
I came across this:
http://cgit.freedesktop.org/xorg/xse...734849f6111b1b

which caused similar problems:
https://bugs.freedesktop.org/show_bug.cgi?id=15839

I wonder whether that is related but I don't see how messing up compilation of hw/*/*.c in xorg could have caused problems for me using the same cedega binary.

hl_ 08-24-10 11:22 PM

Re: not implemented: MIT-SHM/X_ShmCreatePixmap - do I miss a config option here?
 
Shared memory pixmaps have been disabled in NVidia's drivers for performance reasons. It's the same for most (all?) X.Org drivers in EXA mode.
It is possible to reenable them, but the right way to fix this is to fix wine.
Check out the "AllowSHMPixmaps" configuration option.

AaronP 08-25-10 10:22 AM

Re: not implemented: MIT-SHM/X_ShmCreatePixmap - do I miss a config option here?
 
Yeah, what hl_ said. SHM pixmaps are an optional part of the extension, so the client (in this case Wine) needs to be able to fall back to something else if they're not available. You can make the driver re-enable them with AllowSHMPixmaps, but doing that may slow down other programs.

AaronP 08-25-10 10:23 AM

Re: not implemented: MIT-SHM/X_ShmCreatePixmap - do I miss a config option here?
 
D'oh, I forgot to mention that you can query for whether SHM pixmaps are enabled by running "xdpyinfo -ext MIT-SHM" and checking the very last line:
Quote:

MIT-SHM version 1.1 opcode: 142, base event: 99, base error: 159
shared pixmaps: no

uOpt 08-25-10 02:45 PM

Re: not implemented: MIT-SHM/X_ShmCreatePixmap - do I miss a config option here?
 
Thank you so much, guys. I'll have to wait to get home to try it but this sounds right on target. Here's what I got.

Code:

MIT-SHM version 1.1 opcode: 148, base event: 99, base error: 172
  shared pixmaps: no

I never experienced any 2D slowness, ever. Maybe the fact that I only use fvwm2, xterm and occasionally emacs has to do with that? :)

Seriously, where could I notice slowness?

uOpt 08-26-10 05:54 PM

Re: not implemented: MIT-SHM/X_ShmCreatePixmap - do I miss a config option here?
 
Stupid old Cedega now fails in a different place. Keyboard focus is broken. Meh. Also, it only works with the new X11 server, not the old one (although when I got this cedega that was long before that old X11 release).

On the bright side, I found a way to buy Cedega without going through worldpay. So I get a new release. Which hopefully doesn't break the game in question.

Again, thanks for your help.

Licaon 08-27-10 02:56 PM

Re: not implemented: MIT-SHM/X_ShmCreatePixmap - do I miss a config option here?
 
Quote:

Originally Posted by uOpt (Post 2308316)
Stupid old Cedega now fails in a different place.

which game/app works better in Cedega for you but not in WINE ?

uOpt 08-27-10 03:12 PM

Re: not implemented: MIT-SHM/X_ShmCreatePixmap - do I miss a config option here?
 
Quote:

Originally Posted by Licaon (Post 2308677)
which game/app works better in Cedega for you but not in WINE ?

Battlefront's CM games, the first installations 2000-2003. Basically DX5 games.

Cedega has some hack in there that makes these game's crazy/stupid video mode detection work. Wine doesn't have it, I test the CVS version on a regular basis.

Hasn't been a problem until recently, I just used the old cedega binary. But I didn't fire them up for a while and by then other changes had disabled them. A new cedega will be tried today, after I *(#*((##( finally found a way to get it without using *&(#(# worldpay.


All times are GMT -5. The time now is 10:56 AM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.