ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
635 stars 74 forks source link

Portal crash when launch #2284

Open YangtseSu opened 7 years ago

YangtseSu commented 7 years ago

Archlinux x86_64 nvidia,had s3tc installed.

GameAction [AppID 400, ActionID 2] : LaunchApp changed task to Starting with "" GameAction [AppID 400, ActionID 2] : LaunchApp changed task to SynchronizingCloud with "" GameAction [AppID 400, ActionID 2] : LaunchApp changed task to CreatingProcess with "" GameAction [AppID 400, ActionID 2] : LaunchApp waiting for user response to CreatingProcess "" GameAction[AppID 400, ActionID 2] : LaunchApp continues with user response "CreatingProcess" Game update: AppID 400 "Portal", ProcID 6067, IP 0.0.0.0:0

Adding process 6067 for game ID 400 GameAction [AppID 400, ActionID 2] : LaunchApp changed task to WaitingGameWindow with "" ERROR: ld.so: object '/home/yangtse/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. GameAction [AppID 400, ActionID 2] : LaunchApp changed task to Completed with "" ERROR: ld.so: object '/home/yangtse/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. Adding process 6068 for game ID 400 ERROR: ld.so: object '/home/yangtse/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. pid 6094 != 6087, skipping destruction (fork without exec?) ERROR: ld.so: object '/home/yangtse/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. ERROR: ld.so: object '/home/yangtse/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored. Adding process 6087 for game ID 400 Adding process 6095 for game ID 400 Adding process 6100 for game ID 400 SDL video target is 'x11' SDL video target is 'x11' Using breakpad crash handler Setting breakpad minidump AppID = 400 Forcing breakpad minidump interfaces to load Looking up breakpad interfaces from steamclient Calling BreakpadMiniDumpSystemInit Game update: AppID 400 "Portal", ProcID 6100, IP 0.0.0.0:0 Looking up breakpad interfaces from steamclient Calling BreakpadMiniDumpSystemInit Steam_SetMinidumpSteamID: Caching Steam ID: 76561198048642417 [API loaded yes] Steam_SetMinidumpSteamID: Setting Steam ID: 76561198048642417 Did not detect any valid joysticks.

(hl2_linux:6100): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",

(hl2_linux:6100): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita", [0526/084914:ERROR:resource_bundle.cc(411)] Failed to load /home/yangtse/.local/share/Steam/SteamApps/common/Portal/cef_gtk.pak Some features may not be available. [0526/084914:WARNING:proxy_service.cc(646)] PAC support disabled because there is no system implementation 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 DOES NOT support 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 supports the OpenGL extension GL_ARB_debug_output. This system DOES NOT support the OpenGL extension GL_EXT_direct_state_access. This system DOES NOT support the OpenGL extension GL_NV_bindless_texture. This system DOES NOT support the OpenGL extension GL_AMD_pinned_memory. This system supports 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 DOES NOT support the OpenGL extension GL_ATI_meminfo. This system supports the OpenGL extension GL_EXT_texture_compression_s3tc. This system supports the OpenGL extension GL_EXT_texture_compression_dxt1. This system supports the OpenGL extension GL_ANGLE_texture_compression_dxt3. This system supports 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 GL_NVX_gpu_memory_info: UNAVAILABLE GL_ATI_meminfo: UNAVAILABLE GL_MAX_SAMPLES_EXT: 8 CShaderDeviceMgrBase::GetRecommendedConfigurationInfo: CPU speed: 3100 MHz, Processor: GenuineIntel GlobalMemoryStatus: 4294967295 CShaderDeviceMgrBase::GetRecommendedConfigurationInfo: CPU speed: 3100 MHz, Processor: GenuineIntel GlobalMemoryStatus: 4294967295 IDirect3DDevice9::Create: BackBufWidth: 1920, BackBufHeight: 1080, D3DFMT: 3, BackBufCount: 1, MultisampleType: 0, MultisampleQuality: 0 GL sampler object usage: ENABLED GL prefer MapBufferRange: YES

swap interval = 0 swap limit = 1

Could not load program cache file glbaseshaders.cfg Could not find base GL shader cache file Could not load program cache file glshaders.cfg Could not find user GL shader cache file Precache: Took 0 ms, Vertex 0, Pixel 0 ConVarRef mat_dxlevel doesn't point to an existing ConVar Game.so loaded for "Half-Life 2" ERROR: ld.so: object '/home/yangtse/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored. crash_20170526084911_1.dmp[6164]: Uploading dump (out-of-process) /tmp/dumps/crash_20170526084911_1.dmp

Adding process 6163 for game ID 400 /home/yangtse/.local/share/Steam/SteamApps/common/Portal/hl2.sh: 行 67: 6100 段错误 (核心已转储)${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@" Game removed: AppID 400 "Portal", ProcID 6100 No cached sticky mapping in ActivateActionSet.crash_20170526084911_1.dmp[6164]: Finished uploading minidump (out-of-process): success = yes crash_20170526084911_1.dmp[6164]: response: CrashID=bp-a4c61186-2f30-4210-9376-875fd2170525 crash_20170526084911_1.dmp[6164]: file ''/tmp/dumps/crash_20170526084911_1.dmp'', upload yes: ''CrashID=bp-a4c61186-2f30-4210-9376-875fd2170525'' pid 6164 != 6163, skipping destruction (fork without exec?)

kisak-valve commented 7 years ago

System info from https://github.com/ValveSoftware/Dota-2/issues/1240#issuecomment-304163090.

kisak-valve commented 7 years ago

Hello @YangtseSu, the mismatch between your system information and the start of this issue report hints that you are using an Optimus laptop. How are you telling the game to run on the nvidia gpu, and can you check that you have the 32 bit nvidia libraries?

If possible, it would be nice if you confirmed that a 32 bit opengl application works on the nvidia gpu outside of steam.

eriktorbjorn commented 6 years ago

I'm also having problems with Portal crashing on startup, but I don't know if it's the same crash. (What is the proper way of starting the game from a command prompt to get useful debug info anyway?)

Now, since I'm running Debian sid I probably don't fulfil the system requirements for the game. I say "probably" because at the moment the system requirements for Linux aren't listed on the store page. However, it used to work flawlessly, so perhaps it's something that eventually will happen even on supperted Linux distributions.

The best description I've found for my problem is https://steamcommunity.com/app/400/discussions/0/1471967615846108549/

It gets as far as showing a blurry background during loading, but as soon as it's supposed to show the sharp version and main menu it crashes. Unless it's the "cake" background, or I use the -nosound command-line option. In both these cases it seems to work.

Is this the same problem as described in this bug report, or should I file a separate one?

system-info.txt

kisak-valve commented 6 years ago

Hello @eriktorbjorn, probably best to investigate separately in a new issue report.

You should be able run <steam folder>/ubuntu12_32/steam-runtime/run.sh ./hl2.sh in a terminal while steam is running to run the game in a similar environment as running from Steam. If you happen to find any CrashIDs or minidumps related to your issue, please include them.

eriktorbjorn commented 6 years ago

Thanks! I had to add "-game portal" to that command-line for it to work, but I assume that's what you meant. I've attached the output from that command (portal-crash.txt), the output from also adding "-nosound" just for comparison, and the crash dump that the first output referred to.

Interestingly, it crashed in both runs but with -nosound it didn't crash until I quit the game, so it wasn't very noticeable.

Is there a way to force the "cake" background? The one time I got that intead of the normal one, it didn't crash. At least not on the main menu.

portal-crash.txt portal-nosound.txt crash_20180123195926_1.dmp.gz

kisak-valve commented 6 years ago

@eriktorbjorn, I have a hunch that you're seeing a variant of https://github.com/ValveSoftware/steam-for-linux/issues/5330#issuecomment-359758928. Might as well do a test with GLIBC_TUNABLES=glibc.tune.hwcaps=-SSE4_2 steam and see if it makes a difference.

For reference, the attached minidump is a SIGSEGV in libc-2.26.so coming from filesystem_stdio.so (part of Portal).

eriktorbjorn commented 6 years ago

Thanks, that did work! Even better, from that page you referred to I got to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=887327 where they say that "it looks like fixing PR81481 [1] on the GCC 7 side, and then rebuilding glibc is the way to go".

Well, after I tried your solution I checked for updates, and it turns out that there were updates for both GCC and glibc. And now - probably because of that - Portal works again without the workaround.

Of course, I still have no idea if this is relevant to the actual bug report here, since it could be an entirely different "Portal crash when launch" issue.