ValveSoftware / source-sdk-2013

The 2013 edition of the Source SDK
https://developer.valvesoftware.com/wiki/SDK2013_GettingStarted
Other
3.8k stars 2k forks source link

Unable to run game on Linux x64 #224

Open lopsided98 opened 10 years ago

lopsided98 commented 10 years ago

I downloaded a fresh install of the engine from the the repo and I was able to build it successfully. The problem is that when I try to run "client.so" (or the server) using "run.sh" to test the build, it crashes with a seg fault. Using gdb, I get this error: gdb: symbol lookup error: /lib/x86_64-linux-gnu/libncurses.so.5: undefined symbol: \_nc\_putchar

This seems weird because I do not see that Source is referencing ncurses anywhere and "libncurses.so.5" contains a definition for _nc_putchar. This problem has also happened to users of Rust and other Source games: http://steamcommunity.com/app/252490/discussions/0/630800443655052629/ http://steamcommunity.com/app/237470/discussions/0/666826166338593320/

I am running Ubuntu 13.10 x64.

bmk10 commented 10 years ago

I run command to see some errors: ./hl2.sh -game ~/.local/share/Steam/SteamApps/sourcemods/CrimeWars2013/ in pwd ~/.local/share/Steam/SteamApps/common/Source SDK Base 2013 Multiplayer$

and get: SDL video target is 'x11' SDL video target is 'x11' This system supports the OpenGL extension GL_EXT_framebuffer_object. This system supports the OpenGL extension GL_EXT_framebuffer_blit. This system supports the OpenGL extension GL_EXT_framebuffer_multisample. This system DOES NOT support the OpenGL extension GL_APPLE_fence. This system DOES NOT support the OpenGL extension GL_NV_fence. This system supports the OpenGL extension GL_ARB_sync. This system supports the OpenGL extension GL_EXT_draw_buffers2. This system supports the OpenGL extension GL_EXT_bindable_uniform. This system DOES NOT support the OpenGL extension GL_APPLE_flush_buffer_range. This system supports the OpenGL extension GL_ARB_map_buffer_range. This system supports the OpenGL extension GL_ARB_vertex_buffer_object. This system supports the OpenGL extension GL_ARB_occlusion_query. This system DOES NOT support the OpenGL extension GL_APPLE_texture_range. This system DOES NOT support the OpenGL extension GL_APPLE_client_storage. This system DOES NOT support the OpenGL extension GL_ARB_uniform_buffer. This system supports the OpenGL extension GL_ARB_vertex_array_bgra. This system supports the OpenGL extension GL_EXT_vertex_array_bgra. This system supports the OpenGL extension GL_ARB_framebuffer_object. This system DOES NOT support the OpenGL extension GL_GREMEDY_string_marker. This system DOES NOT support the OpenGL extension GL_ARB_debug_output. This system supports the OpenGL extension GL_EXT_direct_state_access. This system DOES NOT support the OpenGL extension GL_NV_bindless_texture. This system supports the OpenGL extension GL_AMD_pinned_memory. This system DOES NOT support the OpenGL extension GL_EXT_framebuffer_multisample_blit_scaled. This system supports the OpenGL extension GL_EXT_texture_sRGB_decode. This system DOES NOT support the OpenGL extension GL_NVX_gpu_memory_info. This system supports the OpenGL extension GL_ATI_meminfo. This system supports the OpenGL extension GL_EXT_texture_compression_s3tc. This system DOES NOT support the OpenGL extension GL_EXT_texture_compression_dxt1. This system DOES NOT support the OpenGL extension GL_ANGLE_texture_compression_dxt3. This system DOES NOT support the OpenGL extension GL_ANGLE_texture_compression_dxt5. This system DOES NOT support the OpenGL extension GLX_EXT_swap_control_tear. GL_NV_bindless_texture: DISABLED GL_AMD_pinned_memory: DISABLED GL_EXT_texture_sRGB_decode: AVAILABLE Using breakpad crash handler Setting breakpad minidump AppID = 243750 Forcing breakpad minidump interfaces to load Looking up breakpad interfaces from steamclient Calling BreakpadMiniDumpSystemInit Looking up breakpad interfaces from steamclient Calling BreakpadMiniDumpSystemInit Steam_SetMinidumpSteamID: Caching Steam ID: 76561198086727045 [API loaded yes] Steam_SetMinidumpSteamID: Setting Steam ID: 76561198086727045 Did not detect any valid joysticks. GL_NVX_gpu_memory_info: UNAVAILABLE GL_ATI_meminfo: AVAILABLE GL_ATI_meminfo: GL_TEXTURE_FREE_MEMORY_ATI: Total Free: 2822403, Largest Avail: 2732352, Total Aux: 1969887, Largest Aux Avail: 5120 GL_MAX_SAMPLES_EXT: 8 [1226/102743:ERROR:resource_bundle.cc(411)] Failed to load /home/hax/.local/share/Steam/SteamApps/common/Source SDK Base 2013 Multiplayer/cef_gtk.pak Some features may not be available. CShaderDeviceMgrBase::GetRecommendedConfigurationInfo: CPU speed: 3500 MHz, Processor: GenuineIntel GlobalMemoryStatus: 4294967295 CShaderDeviceMgrBase::GetRecommendedConfigurationInfo: CPU speed: 3500 MHz, Processor: GenuineIntel GlobalMemoryStatus: 4294967295 [1226/102743:WARNING:proxy_service.cc(646)] PAC support disabled because there is no system implementation IDirect3DDevice9::Create: BackBufWidth: 1600, BackBufHeight: 900, D3DFMT: 3, BackBufCount: 1, MultisampleType: 0, MultisampleQuality: 0 GL sampler object usage: ENABLED GL prefer MapBufferRange: NO

swap interval = 0 swap limit = 1

Could not load program cache file glbaseshaders.cfg Could not find base GL shader cache file IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 96 ps-combo 0 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 96 ps-combo 1 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 96 ps-combo 2 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 96 ps-combo 3 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 0 ps-combo 0 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 0 ps-combo 1 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 0 ps-combo 2 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 0 ps-combo 3 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 100 ps-combo 0 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 100 ps-combo 1 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 100 ps-combo 2 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 100 ps-combo 3 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 8 ps-combo 0 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 8 ps-combo 1 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 8 ps-combo 2 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 8 ps-combo 3 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 104 ps-combo 0 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 104 ps-combo 1 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 104 ps-combo 2 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 104 ps-combo 3 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 4 ps-combo 0 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 4 ps-combo 1 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 4 ps-combo 2 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000000) differs from mask derived from shader name (0x0000000C) for shader ps-file flashlight_ps20b ps-index 4 ps-combo 3 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000004) differs from mask derived from shader name (0x0000000C) for shader ps-file shatteredglass_ps20b ps-index 40 ps-combo 0 IDirect3DDevice9::CreatePixelShader: shaderapi's centroid mask (0x00000004) differs from mask derived from shader name (0x0000000C) for shader ps-file shatteredglass_ps20b ps-index 40 ps-combo 2 Loaded program cache file "glshaders.cfg", total keyvalues: 168, total successfully linked: 168 Precache: Took 19156 ms, Vertex 440, Pixel 1039 ConVarRef mat_dxlevel doesn't point to an existing ConVar Game.so loaded for "CrimeWars" Parent cvar in server.dll not allowed (sv_hl2mp_item_respawn_time) Parent cvar in server.dll not allowed (sv_hl2mp_weapon_respawn_time) For FCVAR_REPLICATED, ConVar must be defined in client and game .dlls (sv_ladder_useonly) For FCVAR_REPLICATED, ConVar must be defined in client and game .dlls (sv_ladderautomountdot) For FCVAR_REPLICATED, ConVar must be defined in client and game .dlls (sv_autoladderdismount) maxplayers set to 42 Error: Material "_fillrate0" uses unknown shader "FillRate" Error: Material "debugnormalmap_1" uses unknown shader "DebugNormalMap" Error: Material "_debugdrawenvmapmask2" uses unknown shader "DebugDrawEnvmapMask" Error: Material "debugdepth_3" uses unknown shader "DebugDepth" Error: Material "___debugdepth_4" uses unknown shader "DebugDepth" Error: Material "debug/debugluxels" uses unknown shader "DebugLuxels" --- Missing Vgui material vgui/../logo/CW_Logo Steam config directory: /home/hax/.local/share/Steam/SteamApps/common/Source SDK Base 2013 Multiplayer/platform/config CLocalizedStringTable::AddFile() failed to load file "resource/_english.txt". CClientSteamContext logged on = 1 Parent cvar in server.dll not allowed (sv_hl2mp_item_respawn_time) Parent cvar in server.dll not allowed (sv_hl2mp_weapon_respawn_time) Parent cvar in server.dll not allowed (cf_fuse_health_save) Parent cvar in server.dll not allowed (mp_gamemode) Parent cvar in server.dll not allowed (sk_stunstick_lead_time) Convar viewmodel_adjust_enabled has multiple different change callbacks Convar viewmodel_adjust_fov has multiple different change callbacks Didn't find particle function Didn't find particle function Type npcinfo of meta class npcinfo undefined! MetaClass missing for npcinfo --- Missing Vgui material vgui/outload/guibutton2 Uploading dump (out-of-process) [proxy ''] /tmp/dumps/crash_20131226102741_1.dmp No minidump written, nothing to upload. ./hl2.sh: line 67: 4184 Segmentation fault (core dumped) ${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@" hax@ubuntu:~/.local/share/Steam/SteamApps/common/Source SDK Base 2013 Multiplayer$ Finished uploading minidump (out-of-process): success = no error: Couldn't connect to server ./hl2.sh -game ~/.local/share/Steam/SteamApps/sourcemods/CrimeWars2013/pwd SDL video target is 'x11' SDL video target is 'x11' This system supports the OpenGL extension GL_EXT_framebuffer_object. This system supports the OpenGL extension GL_EXT_framebuffer_blit. This system supports the OpenGL extension GL_EXT_framebuffer_multisample. This system DOES NOT support the OpenGL extension GL_APPLE_fence. This system DOES NOT support the OpenGL extension GL_NV_fence. This system supports the OpenGL extension GL_ARB_sync. This system supports the OpenGL extension GL_EXT_draw_buffers2. This system supports the OpenGL extension GL_EXT_bindable_uniform. This system DOES NOT support the OpenGL extension GL_APPLE_flush_buffer_range. This system supports the OpenGL extension GL_ARB_map_buffer_range. This system supports the OpenGL extension GL_ARB_vertex_buffer_object. This system supports the OpenGL extension GL_ARB_occlusion_query. This system DOES NOT support the OpenGL extension GL_APPLE_texture_range. This system DOES NOT support the OpenGL extension GL_APPLE_client_storage. This system DOES NOT support the OpenGL extension GL_ARB_uniform_buffer. This system supports the OpenGL extension GL_ARB_vertex_array_bgra. This system supports the OpenGL extension GL_EXT_vertex_array_bgra. This system supports the OpenGL extension GL_ARB_framebuffer_object. This system DOES NOT support the OpenGL extension GL_GREMEDY_string_marker. This system DOES NOT support the OpenGL extension GL_ARB_debug_output. This system supports the OpenGL extension GL_EXT_direct_state_access. This system DOES NOT support the OpenGL extension GL_NV_bindless_texture. This system supports the OpenGL extension GL_AMD_pinned_memory. This system DOES NOT support the OpenGL extension GL_EXT_framebuffer_multisample_blit_scaled. This system supports the OpenGL extension GL_EXT_texture_sRGB_decode. This system DOES NOT support the OpenGL extension GL_NVX_gpu_memory_info. This system supports the OpenGL extension GL_ATI_meminfo. This system supports the OpenGL extension GL_EXT_texture_compression_s3tc. This system DOES NOT support the OpenGL extension GL_EXT_texture_compression_dxt1. This system DOES NOT support the OpenGL extension GL_ANGLE_texture_compression_dxt3. This system DOES NOT support the OpenGL extension GL_ANGLE_texture_compression_dxt5. This system DOES NOT support the OpenGL extension GLX_EXT_swap_control_tear. GL_NV_bindless_texture: DISABLED GL_AMD_pinned_memory: DISABLED GL_EXT_texture_sRGB_decode: AVAILABLE Setup file 'gameinfo.txt' doesn't exist in subdirectory '/home/hax/.local/share/Steam/SteamApps/sourcemods/CrimeWars2013/pwd'. Check your -game parameter or VCONFIG setting. hax@ubuntu:~/.local/share/Steam/SteamApps/common/Source SDK Base 2013 Multiplayer$

wejfkwejfkj server.so and client.so exist in bin

bmk10 commented 10 years ago

in /tmp/dumbs , no log file, but some other username_stdout.txt Running Steam on ubuntu 12.04 64-bit STEAM_RUNTIME is enabled automatically Installing breakpad exception handler for appid(steam)/version(1386799584_client) Installing breakpad exception handler for appid(steam)/version(1386799584_client) unlinked 0 orphaned pipes Installing breakpad exception handler for appid(steam)/version(1386799584_client) [1226/093845:WARNING:proxy_service.cc(958)] PAC support disabled because there is no system implementation Installing breakpad exception handler for appid(steam)/version(1386799584_client) Installing breakpad exception handler for appid(steam)/version(1386799584_client) Installing breakpad exception handler for appid(steam)/version(1386799584_client) Installing breakpad exception handler for appid(steam)/version(1386799584_client) Process 3010 created /hax-ValveIPCSharedObjects5 Installing breakpad exception handler for appid(steam)/version(1386799584_client) Generating new string page texture 7: 128x256, total string texture memory is 131.07 KB Generating new string page texture 8: 48x256, total string texture memory is 180.22 KB Generating new string page texture 9: 256x256, total string texture memory is 442.37 KB Generating new string page texture 10: 64x256, total string texture memory is 507.90 KB Generating new string page texture 11: 16x256, total string texture memory is 524.29 KB Generating new string page texture 12: 24x256, total string texture memory is 548.86 KB Generating new string page texture 13: 32x256, total string texture memory is 581.63 KB Installing breakpad exception handler for appid(steam)/version(1386799584_client) Installing breakpad exception handler for appid(steam)/version(1386799584_client) Generating new string page texture 15: 512x256, total string texture memory is 1.11 MB Generating new string page texture 16: 384x256, total string texture memory is 1.50 MB `menu_proxy_module_load': /home/hax/.local/share/Steam/ubuntu12_32/steam: undefined symbol: menu_proxy_module_load

(steam:3010): Gtk-WARNING **: Failed to load type module: (null)

Installing breakpad exception handler for appid(steam)/version(1386799584_client) Installing breakpad exception handler for appid(steam)/version(1386799584_client) Adding license for package 0 roaming config store loaded successfully - 1560 bytes. migrating temporary roaming config store Installing breakpad exception handler for appid(steam)/version(1386799584_client) ExecCommandLine: "/home/hax/.local/share/Steam/ubuntu12_32/steam" System startup time: 42.09 seconds Generating new string page texture 83: 1024x256, total string texture memory is 2.55 MB Generating new string page texture 84: 128x256, total string texture memory is 131.07 KB Generating new string page texture 85: 128x256, total string texture memory is 2.68 MB Generating new string page texture 89: 256x256, total string texture memory is 2.94 MB CAPIJobRequestUserStats - Server response failed 2 Focused window is now 1, 0 OnFocusWindowChanged to unknown window type: k_EWindowTypeSteamDesktop, 0 Focused window is now 0, 0 OnFocusWindowChanged to unknown window type: k_EWindowTypeNonSteamDesktop, 0 Running Steam on ubuntu 12.04 64-bit STEAM_RUNTIME has been set by the user to: /home/hax/.local/share/Steam/ubuntu12_32/steam-runtime ExecCommandLine: "/home/hax/.steam/root/ubuntu12_32/steam steam://open/driverhelperready" ExecSteamURL: "steam://open/driverhelperready" Focused window is now 1, 0 OnFocusWindowChanged to unknown window type: k_EWindowTypeSteamDesktop, 0 Focused window is now 0, 0 OnFocusWindowChanged to unknown window type: k_EWindowTypeNonSteamDesktop, 0 Game update: AppID 243750 "", ProcID 4132, IP 0.0.0.0:0 Game removed: AppID 243750 "", ProcID 4132 Game update: AppID 243750 "", ProcID 4184, IP 0.0.0.0:0 Game removed: AppID 243750 "", ProcID 4184 Installing breakpad exception handler for appid(steam)/version(1386799584_client) Installing breakpad exception handler for appid(steam)/version(1386799584_client)

bmk10 commented 10 years ago

a source sdk 2013 game window pops up with bg loaded for 10 -1 second, and doesn't load menu and just disapears(crashes). guess have to compile debug mode, probably somethings null, because the mak file had lots of errors

alanedwardes commented 10 years ago

Have you tried running it via Steam? I had some trouble with ./hl2.sh on its own, had to mess with the LD_LIBRARY_PATH environment variable to make it work. Steam ran it fine, so I found it easier to do that.

If you need to then debug it using gdb or strace, there's a script here that'll "wait" for hl2.sh to start running and attach to it: http://stackoverflow.com/questions/4382348/is-there-any-way-to-tell-gdb-to-wait-for-a-process-to-start-and-attach-to-it

bmk10 commented 10 years ago

ok I'll do that, thanks for info,I get started there, the newer .so boot up the main menu, without crash should be a piece of cake.