source-engine icon indicating copy to clipboard operation
source-engine copied to clipboard

[Windows] Screenshot crashes the game

Open steadyfield opened this issue 2 years ago • 1 comments
trafficstars

The game crashes when using the in-game screenshot command (F5). I'm using the last commit b7bd94c for build. This screenshot crash problem did not occur before 0235b1e, including 0235b1e.

in engine.log, there is only one line related: Setting state from prevent no to prevent no: Cleanup

The full log:

Engine(arch:amd64 commit:4c83060) started at Mon Aug 28 08:19:01 2023

Compiler CFLAGS: ['/nologo', '/nologo', '/D_USING_V110_SDK71_', '/Zi', '/FS', '/Zc:threadSafeInit-', '/O2', '/MT', '/ID:\a\source-engine-mod\source-engine-mod/thirdparty/SDL', '/arch:AVX', '/GF', '/Gy', '/fp:fast', '/Zc:forScope', '/Zc:wchar_t', '/GR', '/TP', '/EHsc'] Compiler LDFLAGS: ['/nologo', '/MANIFEST', '/nologo', '/MANIFEST', '/DEBUG', '/INCREMENTAL', '/NODEFAULTLIB:libc', '/NODEFAULTLIB:libcd', '/NODEFAULTLIB:libcmtd', '/LARGEADDRESSAWARE', '/LIBPATH:D:\a\source-engine-mod\source-engine-mod/lib/win32/amd64/', '/LIBPATH:D:\a\source-engine-mod\source-engine-mod/dx9sdk/lib/amd64/'] [0.0881] LoadLibrary: pModule: sourcevr.dll, path: D:\source_engine/bin/sourcevr.dll [0.0882] AppFramework : Unable to load module sourcevr.dll! [0.0882] LoadLibrary: pModule: shaderapidx9.dll, path: D:\source_engine/bin/shaderapidx9.dll [0.0882] LoadLibrary: pModule: video_quicktime, path: D:\source_engine/bin/video_quicktime [0.0883] LoadLibrary: pModule: video_bink, path: D:\source_engine/bin/video_bink [0.0903] Using Breakpad minidump system. Version: 6630498 AppID: 240 [0.0920] filesystem BaseDir: D:\source_engine [0.2026] Did not detect any valid joysticks. [0.2047] LoadLibrary: pModule: USER32.dll, path: D:\source_engine/bin/USER32.dll [0.2064] LoadLibrary: pModule: stdshader_dbg.dll, path: D:\source_engine/bin/stdshader_dbg.dll [0.2088] LoadLibrary: pModule: stdshader_dx6.dll, path: D:\source_engine/bin/stdshader_dx6.dll [0.2110] LoadLibrary: pModule: stdshader_dx7.dll, path: D:\source_engine/bin/stdshader_dx7.dll [0.2132] LoadLibrary: pModule: stdshader_dx8.dll, path: D:\source_engine/bin/stdshader_dx8.dll [0.2184] Convar mat_specular has conflicting FCVAR_CHEAT flags (child: FCVAR_CHEAT, parent: no FCVAR_CHEAT, parent wins) [0.2461] LoadLibrary: pModule: unicode, path: D:\source_engine/bin/unicode [0.5562] Loading unsigned module client.dll Access to secure servers is disabled. [0.5760] Loading unsigned module server.dll Access to secure servers is disabled. [0.5922] server.dll loaded for "Counter-Strike: Source" [0.5924] LoadLibrary: pModule: soundemittersystem.dll, path: D:\source_engine/bin/soundemittersystem.dll [0.5948] LoadLibrary: pModule: scenefilecache.dll, path: D:\source_engine/bin/scenefilecache.dll [0.5976] LoadLibrary: pModule: engine.dll, path: D:\source_engine/bin/engine.dll [0.6375] Convar developer has multiple help strings: parent (wins): "Set developer message level" child: "Set developer message level." [0.6930] CSoundEmitterSystem: Registered 840 sounds [0.6974] CResponseSystem: scripts\talker\response_rules.txt (15 rules, 76 criteria, and 16 responses) [0.9219] maxplayers set to 32 [0.9220] Heap: 256.00 Mb [0.9222] CL_InitLanguageCvar [0.9324] Error: Material "debug/debugluxels" uses unknown shader "DebugLuxels" [1.0386] Error: Material "___fillrate_0" uses unknown shader "FillRate" [1.0387] Error: Material "___debugnormalmap_1" uses unknown shader "DebugNormalMap" [1.0387] Error: Material "___debugdrawenvmapmask_2" uses unknown shader "DebugDrawEnvmapMask" [1.0387] Error: Material "___debugdepth_3" uses unknown shader "DebugDepth" [1.0388] Error: Material "___debugdepth_4" uses unknown shader "DebugDepth" [1.0886] Binding uncached material "engine/preloadtexture", artificially incrementing refcount [1.1166] Failed to load Resource/GameLogo.res [1.1192] Failed to load Resource/GameLogo.res [1.1205] Steam config directory: D:\source_engine\platform\config [1.1482] Parsed 362 text messages [1.1499] CClientSteamContext logged on = 0 [1.1573] Parent cvar in server.dll not allowed (steamworks_sessionid_client) [1.1930] Convar developer has multiple help strings: parent (wins): "Set developer message level" child: "Set developer message level." [1.1941] Parent cvar in server.dll not allowed (props_break_max_pieces) [1.5527] Unable to access SteamHTMLSurface [1.6292] CGameEventManager::AddListener: event 'player_connect_client' unknown. [1.6464] Hud element 'CHudVote' doesn't have an entry 'CHudVote' in scripts/HudLayout.res [1.8492] execing touch.cfg [1.8516] material "vgui/touch/use" not found. [1.8517] --- Missing Vgui material vgui/touch/use [1.8529] material "vgui/touch/jump" not found. [1.8530] --- Missing Vgui material vgui/touch/jump [1.8555] material "vgui/touch/shoot" not found. [1.8556] --- Missing Vgui material vgui/touch/shoot [1.8564] material "vgui/touch/shoot_alt" not found. [1.8565] --- Missing Vgui material vgui/touch/shoot_alt [1.8574] material "vgui/touch/crouch" not found. [1.8575] --- Missing Vgui material vgui/touch/crouch [1.8584] material "vgui/touch/tduck" not found. [1.8585] --- Missing Vgui material vgui/touch/tduck [1.8595] material "vgui/touch/zoom" not found. [1.8595] --- Missing Vgui material vgui/touch/zoom [1.8604] material "vgui/touch/speed" not found. [1.8605] --- Missing Vgui material vgui/touch/speed [1.8613] material "vgui/touch/load" not found. [1.8614] --- Missing Vgui material vgui/touch/load [1.8622] material "vgui/touch/save" not found. [1.8622] --- Missing Vgui material vgui/touch/save [1.8631] material "vgui/touch/reload" not found. [1.8631] --- Missing Vgui material vgui/touch/reload [1.8640] material "vgui/touch/flash_light_filled" not found. [1.8640] --- Missing Vgui material vgui/touch/flash_light_filled [1.8653] material "vgui/touch/next_weap" not found. [1.8654] --- Missing Vgui material vgui/touch/next_weap [1.8663] material "vgui/touch/prev_weap" not found. [1.8663] --- Missing Vgui material vgui/touch/prev_weap [1.8682] material "vgui/touch/settings" not found. [1.8682] --- Missing Vgui material vgui/touch/settings [1.8697] material "vgui/touch/menu" not found. [1.8698] --- Missing Vgui material vgui/touch/menu [1.8707] material "vgui/touch/back" not found. [1.8707] --- Missing Vgui material vgui/touch/back [1.9912] LoadLibrary: pModule: haptics, path: D:\source_engine/bin/haptics [1.9944] execing config.cfg [1.9983] Sound Initialization: Start [2.0406] DS:stereo speaker configuration detected [2.0430] Set primary sound buffer format: yes [2.0454] Using secondary sound buffer [2.0455] 2 channel(s) 16 bits/sample 44100 samples/sec [2.0650] DirectSound initialized [2.1454] Sound Initialization: Finish, Sampling Rate: 44100 [2.1464] 4 CPUs, Frequency: 2.9 Ghz, Features: GenuineIntel SSE SSE2 MMX RDTSC CMOV FCMOV [2.1465] Steamworks Stats: No stats collection because steamworks_stats_disable is set to 1. [2.1500] execing valve.rc [2.1502] Unknown command "r_decal_cullsize" [17.9069] Setting state from prevent no to prevent no: Cleanup

steadyfield avatar Aug 28 '23 00:08 steadyfield

I found out the reason. You should add --32bits in ./waf.bat configure. So there is another problem, in the win64 version screenshot crashes the game.

steadyfield avatar Sep 09 '24 13:09 steadyfield