ValveSoftware / csgo-osx-linux

Counter-Strike: Global Offensive
http://counter-strike.net
787 stars 69 forks source link

Crash on game start due to libMiles.so being blocked by SELinux #395

Open mikefaille opened 9 years ago

mikefaille commented 9 years ago

I can't play CO:GO.

Note : My screen become black, and after s sec my game crash.

My error :

ERROR: ld.so: object '/home/michael/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
assert_20150702203810_1.dmp[18782]: Uploading dump (out-of-process)
/tmp/dumps/assert_20150702203810_1.dmp
/home/michael/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo.sh : ligne 52 : 18745 Erreur de segmentation  (core dumped)${DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"
assert_20150702203810_1.dmp[18782]: Finished uploading minidump (out-of-process): success = no
assert_20150702203810_1.dmp[18782]: error: HTTP response code said error
assert_20150702203810_1.dmp[18782]: file ''/tmp/dumps/assert_20150702203810_1.dmp'', upload no: ''HTTP response code said error''
pid 18782 != 18780, skipping destruction (fork without exec?)
Game removed: AppID 730 "Counter-Strike: Global Offensive", ProcID 18745 

sysinfo :

Processor Information:
    Vendor:  GenuineIntel
    CPU Family:  0x6
    CPU Model:  0x3c
    CPU Stepping:  0x3
    CPU Type:  0x0
    Speed:  3400 Mhz
    8 logical processors
    4 physical processors
    HyperThreading:  Supported
    FCMOV:  Supported
    SSE2:  Supported
    SSE3:  Supported
    SSSE3:  Supported
    SSE4a:  Unsupported
    SSE41:  Supported
    SSE42:  Supported

Network Information:
    Network Speed:  

Operating System Version:
    "Fedora release 22 (Twenty Two)" (64 bit)
    Kernel Name:  Linux
    Kernel Version:  4.0.6-300.fc22.x86_64
    X Server Vendor:  Fedora Project
    X Server Release:  11702000
    X Window Manager:  GNOME Shell
    Steam Runtime Version:  steam-runtime-release_2015-01-06

Video Card:
    Driver:  NVIDIA Corporation GeForce GTX 765M/PCIe/SSE2

    Driver Version:  4.5.0 NVIDIA 352.21
    OpenGL Version: 4.5
    Desktop Color Depth: 24 bits per pixel
    Monitor Refresh Rate: 60 Hz
    VendorID:  0x10de
    DeviceID:  0x11e2
    Number of Monitors:  1
    Number of Logical Video Cards:  1
    Primary Display Resolution:  1920 x 1080
    Desktop Resolution: 1920 x 1080
    Primary Display Size: 20,91" x 11,77"  (23,98" diag)
                                            53,1cm x 29,9cm  (60,9cm diag)
    Primary Bus: PCI Express 16x
    Primary VRAM: 2048 MB
    Supported MSAA Modes:  2x 4x 8x 16x 

Sound card:
    Audio device: Realtek ALC3229

Memory:
    RAM:  15965 Mb

Miscellaneous:
    UI Language:  English
    LANG:  fr_CA.UTF-8
    Microphone:  Not set
    Total Hard Disk Space Available:  468239 Mb
    Largest Free Hard Disk Block:  63089 Mb
davidw-valve commented 9 years ago

Has CS:GO ever worked for you? If you disable the "Enable the Steam Overlay while in-game" option in CS:GO's steam properties does it work?

mikefaille commented 9 years ago

I disable Steam Overlay (I never played with it)

And, It worked in the past. But, I think I used Fedora 21 with same hardware. But, I'm not sure if it was Fedora 21 or Fedora 22.

Note : Dota 2 + Dota 2 Reborn work perfecly.

mikefaille commented 9 years ago

Oh.... "Enable the Steam Overlay while in-game" I'm not be able to enter in the game. Here an example : https://www.youtube.com/watch?v=wVxePyoiN6A&feature=youtu.be

spychodelics commented 9 years ago

A longshot here: 32 bit libarys installed? sudo apt-get install ia32-libs

spychodelics commented 9 years ago

Sorry, just saw the "Fedora", but maybe installing the 32 bit libarys will help (if not already installed).

davidw-valve commented 9 years ago

Does it work if you set your locale to English?

mikefaille commented 9 years ago

1st of all, here is my crash dump (hosted at Megaupload) : https://mega.nz/#!zBckDa4S!RLBtcuRVFsB_kfWUE4xKS0sp82EF_sKrYKEGqMS1Ufk

Normally, when I have missing 32 bits drivers / libs, I see them in Steam log (when I start steam from terminal). And, as I said, Dota 2 (32 bits) work perfecly

My steam package depedency from RPM-Forge Non-Free (most popular source for proprietary software) :

rpm -q --requires steam
/bin/sh
/bin/sh
/bin/sh
/usr/bin/env
alsa-lib(x86-32)
firewalld-filesystem
firewalld-filesystem
gtk2(x86-32)
libXScrnSaver(x86-32)
libXext(x86-32)
libXinerama(x86-32)
libcurl(x86-32)
libpng12(x86-32)
libtxc_dxtn(x86-32)
mesa-dri-drivers(x86-32)
mesa-libGL(x86-32)
nss(x86-32)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1
systemd-libs(x86-32)
tar
zenity

My nvidia 32 bit driver is here :

sudo rpm -ql nvidia-driver-libs.i686
/etc/ld.so.conf.d/nvidia-lib.conf
/usr/lib/nvidia
/usr/lib/nvidia/libEGL.so.1
/usr/lib/nvidia/libEGL.so.352.21
/usr/lib/nvidia/libGL.so.1
/usr/lib/nvidia/libGL.so.352.21
/usr/lib/nvidia/libGLESv1_CM.so.1
/usr/lib/nvidia/libGLESv1_CM.so.352.21
/usr/lib/nvidia/libGLESv2.so.1
/usr/lib/nvidia/libGLESv2.so.352.21
/usr/lib/nvidia/libnvidia-cfg.so.1
/usr/lib/nvidia/libnvidia-cfg.so.352.21
/usr/lib/nvidia/libnvidia-eglcore.so.1
/usr/lib/nvidia/libnvidia-eglcore.so.352.21
/usr/lib/nvidia/libnvidia-glcore.so.1
/usr/lib/nvidia/libnvidia-glcore.so.352.21
/usr/lib/nvidia/libnvidia-glsi.so.1
/usr/lib/nvidia/libnvidia-glsi.so.352.21
/usr/lib/nvidia/libnvidia-tls.so.1
/usr/lib/nvidia/libnvidia-tls.so.352.21
/usr/lib/vdpau/libvdpau_nvidia.so
/usr/lib/vdpau/libvdpau_nvidia.so.1
/usr/lib/vdpau/libvdpau_nvidia.so.352.21

My registred nvidia libs for opengl in ldconfig :

sudo ldconfig -v | grep '/usr/lib/nvidia' -A 9
/usr/lib/nvidia:
    libnvidia-tls.so.352.21 -> libnvidia-tls.so.352.21
    libnvidia-glsi.so.352.21 -> libnvidia-glsi.so.352.21
    libnvidia-glcore.so.352.21 -> libnvidia-glcore.so.352.21
    libnvidia-eglcore.so.352.21 -> libnvidia-eglcore.so.352.21
    libnvidia-cfg.so.1 -> libnvidia-cfg.so.352.21
    libGLESv2.so.2 -> libGLESv2.so.352.21
    libGLESv1_CM.so.1 -> libGLESv1_CM.so.352.21
    libGL.so.1 -> libGL.so.352.21
    libEGL.so.1 -> libEGL.so.352.2
mikefaille commented 9 years ago

@davidw-valve

I start steam from command Line :

 export LANG=en_US LANGUAGE=en_US; steam

Start CS:GO

And, I see the same error message but in english :

(...)
CustomMaterialManager: Cached KeyValues materials/models/weapons/v_models/smg_p90/smg_p90.vmt.
CustomMaterialManager: Cached KeyValues materials/models/weapons/v_models/smg_ump45/smg_ump45.vmt.
CustomMaterialManager: Cached KeyValues materials/models/weapons/v_models/snip_awp/awp.vmt.
CustomMaterialManager: Cached KeyValues materials/models/weapons/v_models/snip_g3sg1/snip_g3sg1.vmt.
CustomMaterialManager: Cached KeyValues materials/models/weapons/v_models/snip_scar20/snip_scar20.vmt.
CustomMaterialManager: Cached KeyValues materials/models/weapons/v_models/snip_ssg08/snip_ssg08.vmt.
CustomMaterialManager: Cached KeyValues materials/models/weapons/v_models/snip_ssg08/snip_ssg08_scope.vmt.
CustomMaterialManager: Cached KeyValues materials/models/weapons/v_models/knife_falchion_advanced/knife_falchion_advanced.vmt.
Failed to read the default inventory image file (materials/vgui/inventory_default.vtf)

 ##### swap interval = 0     swap limit = 1 #####
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 80: saw unknown, expected number
Fontconfig warning: "/etc/fonts/conf.d/65-0-lohit-bengali.conf", line 32: unknown element "langset"
Fontconfig warning: "/etc/fonts/conf.d/69-gnu-free-sans.conf", line 24: unknown element "langset"
Fontconfig warning: "/etc/fonts/conf.d/69-gnu-free-serif.conf", line 24: unknown element "langset"
ERROR: ld.so: object '/home/michael/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
assert_20150710131941_1.dmp[15158]: Uploading dump (out-of-process)
/tmp/dumps/assert_20150710131941_1.dmp
assert_20150710131941_1.dmp[15158]: Finished uploading minidump (out-of-process): success = no
assert_20150710131941_1.dmp[15158]: error: HTTP response code said error
assert_20150710131941_1.dmp[15158]: file ''/tmp/dumps/assert_20150710131941_1.dmp'', upload no: ''HTTP response code said error''
pid 15158 != 15156, skipping destruction (fork without exec?)
/home/michael/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo.sh: line 52: 15129 Segmentation fault      (core dumped) ${DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"
Game removed: AppID 730 "Counter-Strike: Global Offensive", ProcID 15129 
mikefaille commented 9 years ago

I use Linux since ~10 years for work, gaming, etc. And, the only time I see local error (cause I use French/Canada one) it's with StarDrive 2 (their problems....). But, I never encourter any 'locale' problems with Chrome, Flash, Spotify, Slack, Steam Games, etc.

davidw-valve commented 9 years ago

Have you ever managed to run it where the HTTP upload of the minidump succeeds? If so please give me your minidump ID and I can look into it.

mikefaille commented 9 years ago

@davidw-valve According Steam's system information, each time, the minidump upload dont succeeds.

    Fri Jul 10 17:04:12 2015 GMT: file ''/tmp/dumps/assert_20150710130343_1.dmp'', upload no: ''HTTP response code said error''
    Fri Jul 10 17:19:46 2015 GMT: file ''/tmp/dumps/assert_20150710131941_1.dmp'', upload no: ''HTTP response code said error''

But you can retreive it here : https://mega.nz/#!zBckDa4S!RLBtcuRVFsB_kfWUE4xKS0sp82EF_sKrYKEGqMS1Ufk

Question : Which opensource tool can I use to open this minidump myself ?

Tele42 commented 9 years ago

@mikefaille if you can find/compile minidump_stackwalk on your system, that is one option.

mikefaille commented 9 years ago

Can I have access to Steam Debug Symbols ?

svenwltr commented 9 years ago

I have the same problem. I am using Fedora 22, too. Everything worked with Fedora 21.

log tail

CustomMaterialManager: Cached KeyValues materials/models/weapons/v_models/knife_falchion_advanced/knife_falchion_advanced.vmt.
Failed to read the default inventory image file (materials/vgui/inventory_default.vtf)

 ##### swap interval = 0     swap limit = 1 #####
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 80: saw unknown, expected number
Fontconfig warning: "/etc/fonts/conf.d/65-0-lohit-bengali.conf", line 32: unknown element "langset"
Fontconfig warning: "/etc/fonts/conf.d/69-gnu-free-sans.conf", line 24: unknown element "langset"
Fontconfig warning: "/etc/fonts/conf.d/69-gnu-free-serif.conf", line 24: unknown element "langset"
ERROR: ld.so: object '/home/sven/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
crash_20150713194507_1.dmp[5370]: Uploading dump (out-of-process)
/tmp/dumps/crash_20150713194507_1.dmp
/home/sven/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo.sh: line 52:  5349 Segmentation fault      (core dumped) ${DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"
Game removed: AppID 730 "Counter-Strike: Global Offensive", ProcID 5349 
crash_20150713194507_1.dmp[5370]: Finished uploading minidump (out-of-process): success = yes
crash_20150713194507_1.dmp[5370]: response: CrashID=bp-a3a0a5c4-90a8-466b-8239-7339c2150713
crash_20150713194507_1.dmp[5370]: file ''/tmp/dumps/crash_20150713194507_1.dmp'', upload yes: ''CrashID=bp-a3a0a5c4-90a8-466b-8239-7339c2150713''
pid 5370 != 5368, skipping destruction (fork without exec?)
[2015-07-13 19:43:51] Startup - updater built Jun  4 2015 10:35:42
[2015-07-13 19:43:51] Installation wird überprüft...
[2015-07-13 19:43:51] Verification complete
[2015-07-13 19:45:26] Shutdown

system information

Processor Information:
    Vendor:  GenuineIntel
    CPU Family:  0x6
    CPU Model:  0x17
    CPU Stepping:  0xa
    CPU Type:  0x0
    Speed:  2834 Mhz
    4 logical processors
    4 physical processors
    HyperThreading:  Unsupported
    FCMOV:  Supported
    SSE2:  Supported
    SSE3:  Supported
    SSSE3:  Supported
    SSE4a:  Unsupported
    SSE41:  Supported
    SSE42:  Unsupported

Network Information:
    Network Speed:  

Operating System Version:
    "Fedora release 22 (Twenty Two)" (64 bit)
    Kernel Name:  Linux
    Kernel Version:  4.0.7-300.fc22.x86_64
    X Server Vendor:  Fedora Project
    X Server Release:  11702000
    X Window Manager:  i3
    Steam Runtime Version:  steam-runtime-release_2015-01-06

Video Card:
    Driver:  NVIDIA Corporation GeForce GTX 560/PCIe/SSE2

    Driver Version:  4.5.0 NVIDIA 346.72
    OpenGL Version: 4.5
    Desktop Color Depth: 24 bits per pixel
    Monitor Refresh Rate: 59 Hz
    VendorID:  0x10de
    DeviceID:  0x1201
    Number of Monitors:  2
    Number of Logical Video Cards:  1
    Primary Display Resolution:  1680 x 1050
    Desktop Resolution: 3600 x 1080
    Primary Display Size: 18.66" x 11.65"  (21.97" diag)
                                            47.4cm x 29.6cm  (55.8cm diag)
    Primary Bus: PCI Express 16x
    Primary VRAM: 1024 MB
    Supported MSAA Modes:  2x 4x 8x 16x 

Sound card:
    Audio device: Realtek ALC888

Memory:
    RAM:  3951 Mb

Miscellaneous:
    UI Language:  English
    LANG:  en_US
    Microphone:  Not set
    Total Hard Disk Space Available:  179798 Mb
    Largest Free Hard Disk Block:  107095 Mb

Installed software:

Recent Failure Reports:
    Mon Jul 13 15:50:47 2015 GMT: file ''/tmp/dumps/assert_20150713174940_6.dmp'', upload no: ''HTTP response code said error''
    Mon Jul 13 17:31:09 2015 GMT: file ''/tmp/dumps/crash_20150713193104_5.dmp'', upload no: ''HTTP response code said error''
    Mon Jul 13 17:45:18 2015 GMT: file ''/tmp/dumps/crash_20150713194507_1.dmp'', upload yes: ''CrashID=bp-a3a0a5c4-90a8-466b-8239-7339c2150713''
meekreau commented 9 years ago

The same problem here on Ubuntu 14.04.2 LTS (64 bit).

Steam output: https://gist.github.com/meekreau/74ec3aa6793e55fa8d08 System information: https://gist.github.com/meekreau/2d1a420c52f11a89c0f9 Line in syslog: kernel: [47685.530076] csgo_linux[9289]: segfault at 0 ip 00000000f75dee86 sp 00000000ffcd1d94 error 4 in libc-2.19.so[f755c000+1a8000]

CrashID=bp-4c4f135e-a592-42d9-9279-8cb242150718

meekreau commented 9 years ago

After some testing, I've been able to run the game on vanilla Ubuntu 14.04.2 and 15.04 64-bit on the integrated graphics of i5-4200M CPU. Purging oibaf graphics drivers PPA from the productive system and reverting to old native free drivers helped too.

I will also test if this might have any effect on my NVIDIA Optimus card.

mikefaille commented 9 years ago

@meekreau Actually, I use a gaming laptop with Intel GPU unplugged. You can check my specs here : https://www.asus.com/ROG-Republic-Of-Gamers/ASUS_ROG_G750JW/

So, for now, GS:GO is critically broken in my case with no workaround (if I want keep Fedora 22. 21 work. So, my bug is fixable.). But, thank you for sharing your experience !

Listing all my GPU (only one apear) :

lspci  -v -s  $(lspci | grep VGA | cut -d" " -f 1)
01:00.0 VGA compatible controller: NVIDIA Corporation GK106M [GeForce GTX 765M] (rev a1) (prog-if 00 [VGA controller])
    Subsystem: ASUSTeK Computer Inc. Device 119d
    Flags: bus master, fast devsel, latency 0, IRQ 31
    Memory at dc000000 (32-bit, non-prefetchable) [size=16M]
    Memory at b0000000 (64-bit, prefetchable) [size=256M]
    Memory at c0000000 (64-bit, prefetchable) [size=32M]
    I/O ports at e000 [size=128]
    [virtual] Expansion ROM at dd000000 [disabled] [size=512K]
    Capabilities: [60] Power Management version 3
    Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Capabilities: [78] Express Endpoint, MSI 00
    Capabilities: [b4] Vendor Specific Information: Len=14 <?>
    Capabilities: [100] Virtual Channel
    Capabilities: [128] Power Budgeting <?>
    Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
    Capabilities: [900] #19
    Kernel driver in use: nvidia
    Kernel modules: nouveau, nvidia
ToTeX71 commented 9 years ago

Selinux is the issue. Disabling it in /etc/selinux/config then reboot and Cs go works again.

svenwltr commented 9 years ago

I can confirm this. It is working on my machine with disabled selinux.

davidw-valve commented 9 years ago

@ToTeX71: Thank you for the suggestion that it is SELinux related.

Hopefully we can fix this. Can someone who has this problem, and owns Portal 2, please copy the game/bin/libMiles.so from Portal 2 over the CS:GO libMiles.so and tell me if it works for them after doing this?

svenwltr commented 9 years ago
  1. Downloaded Portal
  2. enabled selinux again
  3. started CS:GO: died as expected
  4. backed up $HOME/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/libMiles.so
  5. copied $HOME/.local/share/Steam/steamapps/common/Portal 2/bin/libMiles.so to `$HOME/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/libMiles.so
  6. restarted Steam
  7. started CS:GO: it works!
davidw-valve commented 9 years ago

@svenwltr: Thank you for confirming that fixes things! We will ship the fix in the next update.

mikefaille commented 9 years ago

The next operation work for me too on Fedora 22. With selinux using default settings.

cp "$HOME/.local/share/Steam/steamapps/common/Portal 2/bin/libMiles.so" "$HOME/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/libMiles.so"

On Fri, Aug 14, 2015 at 5:22 PM, davidw-valve notifications@github.com wrote:

@svenwltr https://github.com/svenwltr: Thank you for confirming that fixes things! We will ship the fix in the next update.

— Reply to this email directly or view it on GitHub https://github.com/ValveSoftware/Counter-Strike-Global-Offensive/issues/395#issuecomment-131241710 .

Tiffman commented 8 years ago

I have the same problem using Ubuntu 14.04 LTS. I tried using the libMiles.so from Portal 2 but CS:GO still doesn't work. Why doesn't it work at me? When will the next update for CS:GO get released?

ghost commented 8 years ago

This still seems to be broken on Fedora. Disabling SELinux fixes it, but obviously I'm not very happy doing that. Will it be patched soon?

eliadevito commented 8 years ago

@davidw-valve confirm that libMiles.so from Portal 2 fix this. When the upgrade?

mohamedation commented 8 years ago

I have kinda the same problem...I can start and play for a while, but it crashes after a while. sometimes it doesn't crash. i can't figure out this. I am running ubuntu 15.10 with nvidia gfx. here is the end portion from running steam in terminal.

No cached sticky mapping in GetActionSetHandle. Native Steam Controller support won't work. No cached sticky mapping in GetActionSetHandle. Native Steam Controller support won't work. No cached sticky mapping in GetActionSetHandle. Native Steam Controller support won't work. No cached sticky mapping in GetActionSetHandle. Native Steam Controller support won't work. No cached sticky mapping in GetActionSetHandle. Native Steam Controller support won't work. ERROR: ld.so: object '/home/m0hamed/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored. assert_20160223052141_1.dmp[4906]: Uploading dump (out-of-process) /tmp/dumps/assert_20160223052141_1.dmp Game removed: AppID 730 "Counter-Strike: Global Offensive", ProcID 4820 /media/m0hamed/Vault/SteamLibrary/SteamLibrary/steamapps/common/Counter-Strike Global Offensive/csgo.sh: line 57: 4820 Segmentation fault (core dumped) ${DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@" Generating new string page texture 151: 24x256, total string texture memory is 5.55 MB assert_20160223052141_1.dmp[4906]: Finished uploading minidump (out-of-process): success = yes assert_20160223052141_1.dmp[4906]: response: Discarded=1 assert_20160223052141_1.dmp[4906]: file ''/tmp/dumps/assert_20160223052141_1.dmp'', upload yes: ''Discarded=1'' pid 4906 != 4904, skipping destruction (fork without exec?) Refresh rate: 60 Refresh rate: 60 Refresh rate: 60 Refresh rate: 60

any workaround or fix or anything?? please inform.

Tele42 commented 8 years ago

Hello, did a SELinux-friendly libMiles.so get pushed?