60

After installing and updating, whenever I start Steam, it gives me the following error:

Running Steam on ubuntu 15.04 64-bit
STEAM_RUNTIME is enabled automatically
[2015-05-02 16:48:39] Startup - updater built Apr 13 2015 15:17:10
SteamUpdateUI: An X Error occurred
X Error of failed request:  BadValue (integer parameter out of range for operation)

I tried to find a solution to a similar error, but I was not able to find. Can anyone please help?

6 Answers6

90
cd $HOME/.steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu
mv libstdc++.so.6 libstdc++.so.6.bak
cd $HOME/.steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu
mv libstdc++.so.6 libstdc++.so.6.bak

Type these into the terminal; it worked for me. Copied from this thread, posted by sejvenables, who copied it from someplace else.

cat
  • 1,712
WPOH
  • 901
7

I had the same problem on Ubuntu 15.10, with an nvidia board. WPOH's solution made Steam work, but caused noticeable performance and mouse lag issues on some games.

Using the proprietary nvidia drivers fixed the problem without impacting the performance.

To revert those changes:

mv $HOME/.steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6{.bak,}
mv $HOME/.steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/libstdc++.so.6{.bak,}

And to install the updated proprietary nvidia drivers: open "Software & Updates", go to "Additional Drivers", select the latest binary nvidia driver (352.41 as of now) and then reboot the system. That did the trick for me :)

epidemian
  • 171
6

Based on Urgazhi's answer, you can do the following:

  • Open the file $HOME/.steam/steam.sh in a text editor
  • Add these as the first two lines of the file:

    export LD_PRELOAD='/usr/$LIB/libstdc++.so.6'
    export DISPLAY=:0
    
  • Save and launch steam normally.

muru
  • 207,228
3

I was getting this problem because I had just installed the proprietary drivers but had not yet restarted my system. Silly I know, but hopefully this might help someone else.

Once I rebooted steam no longer had this problem for me.

3
#!/bin/bash
export LD_PRELOAD='/usr/$LIB/libstdc++.so.6' #Export so all child    processes are affected as well
export DISPLAY=:0
steam -tcp

Easiest way to start steam would be to set the above shell script as an alias so when you call 'steam' in your cmd it will execute it.

Urgazhi
  • 31
0

i did have the same problem with the libgl errors the fix in the steam.sh worked great until steam updated. after 2 days i discovered that my pc wasn't booting in UEFI mode. so i booted up in UEFI mode and steam started up with no struggle at all. i hope that this story helped some of you :)