X Error of failed request: BadWindow (invalid Window parame

Questions about Wine on Linux
Locked
evolves
Level 2
Level 2
Posts: 10
Joined: Fri May 12, 2017 4:30 am

X Error of failed request: BadWindow (invalid Window parame

Post by evolves »

Hi,
after an system update I can not start my starcraft 2 anymore, worked problemless before.

I can start the Battlenet Client, but it doesnt continue, sometimes it tears the screen, sometimes nothing happen, but just the error below.

Code: Select all

$ wine --version
wine-3.0-rc6

Code: Select all

$ X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  40 (X_TranslateCoords)
  Resource id in failed request:  0x400266
  Serial number of failed request:  456
  Current serial number in output stream:  456
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  10 (X_UnmapWindow)
  Resource id in failed request:  0x1a00001
  Serial number of failed request:  204
  Current serial number in output stream:  207
I have no idea, need your help. I tried wine staging with version 2.x too
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: X Error of failed request: BadWindow (invalid Window pa

Post by jkfloris »

It looks like there is a problem with your Xserver installation. Try to update/ reinstall your graphics driver and test everything is working as expected with glxinfo and/ or glxgears.
evolves
Level 2
Level 2
Posts: 10
Joined: Fri May 12, 2017 4:30 am

Re: X Error of failed request: BadWindow (invalid Window pa

Post by evolves »

i have reinstalled everything already,
what can I test exactly?
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: X Error of failed request: BadWindow (invalid Window pa

Post by Bob Wya »

evolves wrote:i have reinstalled everything already,
what can I test exactly?
@evolves

You could test with:

Code: Select all

export WINEDEBUG=+x11drv
wine 'Battle.net Launcher.exe'
and post the terminal output here.

You would want to test with Wine Staging 2.21 - since Wine 3.0 doesn't currently support the Battle.net client fully.

Bob
evolves
Level 2
Level 2
Posts: 10
Joined: Fri May 12, 2017 4:30 am

Re: X Error of failed request: BadWindow (invalid Window pa

Post by evolves »

Hi Bob Wya,
this a statement that helps.

I downgraded to wine staging, at least I can start my batnet client now and login. The problem remains. Here is the log: https://ptpb.pw/q2G2 Hope you can help me out.

Edit:
New try to start the game and the log for it: https://ptpb.pw/fLHM

Edit2:
https://ptpb.pw/L_xG
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: X Error of failed request: BadWindow (invalid Window pa

Post by Bob Wya »

@evolves,

Nothing is leaping out at me in that log file...

Have you tested using a Wine Virtual Desktop?

Have you tested launching Starcraft II directly with (32-bit WINEPREFIX):

Code: Select all

cd "${WINEPREFIX}/drive_c/Program Files/StarCraft II"
wine start 'Support\SC2Switcher.exe'
? Without starting the problematic Battle.net client at all...

Bob
evolves
Level 2
Level 2
Posts: 10
Joined: Fri May 12, 2017 4:30 am

Re: X Error of failed request: BadWindow (invalid Window pa

Post by evolves »

Bob Wya wrote:@evolves,

Nothing is leaping out at me in that log file...

Have you tested using a Wine Virtual Desktop?

Have you tested launching Starcraft II directly with (32-bit WINEPREFIX):

Code: Select all

cd "${WINEPREFIX}/drive_c/Program Files/StarCraft II"
wine start 'Support\SC2Switcher.exe'
? Without starting the problematic Battle.net client at all...

Bob
U are a genius, it works now!

Thanks a lot. This damn bclient, it sucks alot. The error message was even strange that I couldnt start the game, didnt expect it could be coming from the client.
evolves
Level 2
Level 2
Posts: 10
Joined: Fri May 12, 2017 4:30 am

Re: X Error of failed request: BadWindow (invalid Window pa

Post by evolves »

After a recent update in my nvidia driver I cannot start the game anymore at all:

Code: Select all

fixme:wevtapi:EvtSubscribe ((nil) (nil) L"System" L"*[System[(EventID=4101)]]" (nil) (nil) 0x11b9e40 1) stub
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  154 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  167
  Current serial number in output stream:  168
fixme:ver:GetCurrentPackageId (0x33fd9c (nil)): stub
do you have a way to avoid that? I am still starting the game directly that worked before.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: X Error of failed request: BadWindow (invalid Window pa

Post by Bob Wya »

@evolves

Please can you post the output from:

Code: Select all

cat /var/log/Xorg.0.log
glxinfo | egrep '^[[:alpha:]]'
lsmod | egrep '(drm|nvidia)'
  • What Linux distribution are you using?
  • Have you rebuilt your initramfs file - if you are using one?
Ta
Bob
Locked