ValveSoftware / Source-1-Games

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

[TF2] Game crashes (almost) every map change on 64bit update #5885

Open cola-tf opened 4 months ago

cola-tf commented 4 months ago

I have done a little research into this and it has apparently been an issue since at least 2010; however, I have never experienced this before now. These are my PC specifications: Processor Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz 3.00 GHz Installed RAM 16.0 GB (15.9 GB usable) System type 64-bit operating system, x64-based processor I am using Windows 11 I use these launch options: -dxlevel 90 -windowed -noborder -w 1920 -h 1080 -novid I also use a performance config: Cowmanglia's "Max FPS for High Quality PCs" config. I have used all these settings for well over 3 years now with no issues whatsoever. Now to the actual issue: my game crashed about 12/15 of the last map changes since the update and about 4 map changes since the patch that I downloaded today. I played on casual and community servers (uncletopia) to see if that made a difference and it did not. Each map loaded up just fine, but after the match ended and a new map was loaded in, my game would unceremoniously crash. A few times it would crash immediately as the loading screen appeared, a few times it crashed after it reached the "sending client info" stage, and once it even loaded me into the server before crashing. I thought it had something to do with alt tabbing because when I did not, it seemed less likely to crash, but it still did crash a few times. I personally know other people who are crashing on map change and there was a reddit post made today complaining of this. I dont know if I did something different when the map loaded in and I established connection to the server without issue, but I could not replicate it consistently. Sorry if this was unhelpful, this is my first time doing this and I am not much a tech-oriented person, but I thought I would give it a shot anyway.

CaptainCronch commented 4 months ago

Same thing also happening on Linux, though the most recent time it happened there was an error message saying "cutllinkedlist overflow (exhausted memory allocator)"

Specs: OS: EndeavourOS Linux KERNEL: 6.4.12-zen1-1-zen CPU: Intel Core i7-10750H @ 2.60GHz GPU: Intel Mesa Intel UHD (CML GT2) GPU DRIVER: 4.6 Mesa 23.1.6 RAM: 16 GB

danielpinoy commented 4 months ago

These are some solutions you can try one by one. -remove all launch options -try typing this in the launch option

"-dxlevel 95"

-try typing this in the launch option (dont remove quotations here)

"A:\SteamLibrary\steamapps\common\Team Fortress 2\tf.exe" %command% -steam

danielpinoy commented 4 months ago

Same thing also happening on Linux, though the most recent time it happened there was an error message saying "cutllinkedlist overflow (exhausted memory allocator)"

Specs: OS: EndeavourOS Linux KERNEL: 6.4.12-zen1-1-zen CPU: Intel Core i7-10750H @ 2.60GHz GPU: Intel Mesa Intel UHD (CML GT2) GPU DRIVER: 4.6 Mesa 23.1.6 RAM: 16 GB

Your the first one to report on this error message that I can find. This sometimes happens in L4D2 where certain props don't show up. Try to get more information and make a new issue and include your findings.

JoriKos commented 4 months ago

Try to get more information and make a new issue and include your findings.

More information should probably be posted here, as it would be a duplicate issue. Though this issue may also be a duplicate of an existing one, but there are a lot of game crashing bugs reported right now.

cola-tf commented 4 months ago

These are some solutions you can try one by one. -remove all launch options -try typing this in the launch option

"-dxlevel 95"

-try typing this in the launch option (dont remove quotations here)

"A:\SteamLibrary\steamapps\common\Team Fortress 2\tf.exe" %command% -steam

This second command worked a little better for me. I still crashed 3 times after maybe 10 map changes today. Definitely better and I got my friends who crashed to use this command and it was somewhat effective for them as well. We all use various configs, that must be a factor here. I'm going to try uninstalling my custom files to see if they are what is making me crash. Maybe I can reinstall piece by piece but that will take a while. Please let me know what more information I can post.

cola-tf commented 4 months ago

One odd issue is that after implementing this command into launch options, the half-life sound effect that plays when picking up a healthpack is no longer playing. Now that I am on 32 bit tf2 and still crashing occasionally, what could that mean?

dollardumb commented 4 months ago

same issue, one thing I know in my case it triggers every time I load into a custom map for the first time, in trade or idle servers and the like. I haven't experienced crashes in casual/comp. Try putting -condebug in launch options and when it crashes check /tf/console.log/

image

I always get these random file crashes but there's no consistency and it's different every time so I have no idea.

cola-tf commented 4 months ago

It appears that the crashing is from Cowmanglia's config. Something in there is broken on 64 bit tf2 causing the crashes. Probably for the best that I get a different config. RIP :(

cola-tf commented 4 months ago

same issue, one thing I know in my case it triggers every time I load into a custom map for the first time, in trade or idle servers and the like. I haven't experienced crashes in casual/comp. Try putting -condebug in launch options and when it crashes check /tf/console.log/

I always get these random file crashes but there's no consistency and it's different every time so I have no idea.

I would have screenshotted this but the log was too long so I just copypasted it. I had some similar error messages to yours and a few different ones. I looked through this and there doesnt seem to be anything too interesting but maybe I am wrong about that. This is the last message block in console before it crashed (loading into mercenary park evidently): ``` Client reached server_spawn. Recognizing MM server id [A:1:2254511132:29219] Attemped to precache unknown particle system "blood_impact_red"! The server is using sv_pure 1. (Custom pure server rules.) Cannot figure out which search path sound\physics\metal\metal_grenade_roll_loop1.wav came from. Not playing. Cannot figure out which search path sound\weapons\timer.wav came from. Not playing. Cannot figure out which search path sound\items\pyro_guitar_solo_with_verb.wav came from. Not playing. Cannot figure out which search path sound\player\sniper_taunt_hawk.wav came from. Not playing. Cannot figure out which search path sound\player\taunt_pyro_twirl.wav came from. Not playing. Cannot figure out which search path sound\player\taunt_yeti_standee_spy_swing1.wav came from. Not playing. Cannot figure out which search path sound\player\taunt_yeti_standee_spy_swing2.wav came from. Not playing. Cannot figure out which search path sound\player\cyoa_pda_dial1.wav came from. Not playing. Cannot figure out which search path sound\player\cyoa_pda_dial2.wav came from. Not playing. Cannot figure out which search path sound\player\cyoa_pda_dial3.wav came from. Not playing. Cannot figure out which search path sound\player\cyoa_pda_dial4.wav came from. Not playing. Cannot figure out which search path sound\player\cyoa_pda_dial5.wav came from. Not playing. Cannot figure out which search path sound\ui\quest_status_complete.wav came from. Not playing. Cannot figure out which search path sound\physics\body\body_medium_strain1.wav came from. Not playing. Cannot figure out which search path sound\physics\body\body_medium_strain2.wav came from. Not playing. Cannot figure out which search path sound\physics\body\body_medium_strain3.wav came from. Not playing. Cannot figure out which search path sound\items\r_item1.wav came from. Not playing. Cannot figure out which search path sound\ui\mm_comp_banner.wav came from. Not playing. Cannot figure out which search path sound\physics\metal\chain_impact_hard1.wav came from. Not playing. Cannot figure out which search path sound\physics\metal\chain_impact_hard2.wav came from. Not playing. Cannot figure out which search path sound\physics\metal\chain_impact_soft1.wav came from. Not playing. Cannot figure out which search path sound\physics\metal\chain_impact_soft2.wav came from. Not playing. Cannot figure out which search path sound\physics\metal\chain_impact_soft3.wav came from. Not playing. Cannot figure out which search path sound\physics\metal\metal_popcan_impact_hard1.wav came from. Not playing. Cannot figure out which search path sound\physics\metal\metal_popcan_impact_hard2.wav came from. Not playing. Cannot figure out which search path sound\physics\metal\metal_popcan_impact_hard3.wav came from. Not playing. Cannot figure out which search path sound\items\powerup_pickup_warlock.wav came from. Not playing. Cannot figure out which search path sound\weapons\shotgun_cock.wav came from. Not playing. Cannot figure out which search path sound\weapons\airstrike_fail.wav came from. Not playing. SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/stalagtites_med.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_moonbase/moon_interior_computer06.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_moonbase/moon_interior_computer06.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_moonbase/moon_interior_computer06.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/yeti_cell_light01.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/stalagtites_med.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/yeti_cell_light01.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/yeti_cell_light01.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/gantry_fuse_box.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/island_cell_grid01.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/island_cell_grid02.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/island_cell_grid01.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/island_cell_grid02.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/island_cell_grid03.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/island_cell_grid02.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/island_cell_grid02.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/island_cell_grid01.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/island_cell_grid01.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/island_cell_grid01.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/island_cell_grid03.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_moonbase/moon_interior_computer06.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_moonbase/moon_interior_computer06.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_moonbase/moon_interior_computer06.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_moonbase/moon_interior_computer06.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/elevator_panel.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/parts/tram_sign01.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/parts/tram_sign01.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/parts/tram_sign01.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/gantry_fuse_box.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/parts/gift_shop.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/stalagtites_med.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/stalagtites_med.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/yeti_cell_light01.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/yeti_cell_light01.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/yeti_cell_light01.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/yeti_cell_light01.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/yeti_cell_light01.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/yeti_cell_light01.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/yeti_cell_light01.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/yeti_cell_light01.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/yeti_cell_light01.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/yeti_cell_light01.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/yeti_cell_light02.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/yeti_cell_light02.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/yeti_cell_light02.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/yeti_cell_light02.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/yeti_cell_light02.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/yeti_cell_light02.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/yeti_cell_light02.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/yeti_cell_light02.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/yeti_cell_light02.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/yeti_cell_light02.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/stalagtites_small.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/island_exhibit_railing02.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/island_exhibit_railing01.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/island_exhibit_railing03.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/island_atrium_posed_yeti.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/island_crane_mechanism.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/island_parasol_table.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/island_parasol_table.mdl) SOLID_VPHYSICS static prop with no vphysics model! (models/props_island/elevator_panel.mdl) Requesting texture value from var "$basetexture" which is not a texture value (material: skybox/sky_island_01rt) Requesting texture value from var "$basetexture" which is not a texture value (material: skybox/sky_island_01bk) Requesting texture value from var "$basetexture" which is not a texture value (material: skybox/sky_island_01lf) Requesting texture value from var "$basetexture" which is not a texture value (material: skybox/sky_island_01ft) ```
indirectmondor commented 4 months ago

still having issues after adding the launch codes, will try and change my config, fingercrossed, if some could tell what info is need I could try and give it

dollardumb commented 4 months ago

It appears that the crashing is from Cowmanglia's config. Something in there is broken on 64 bit tf2 causing the crashes. Probably for the best that I get a different config. RIP :(

Yeah you got it, I use Comanglia's toaster config so it's most likely one of those commands, which is a lot, only thing left would be to test each of them which I tried to do this morning for about 2 hours before realizing that my game wasn't crashing anymore, and all I did was just take out the "A:\SteamLibrary\steamapps\common\Team Fortress 2\tf.exe" %command% -steam and put it back at normal with -dxlevel 90, it'll probably crash again eventually though, I'll keep testing once the crashes are back.

dollardumb commented 4 months ago

Started crashing again, it likes to crash way more when there's people in the server, it won't crash on empty servers, so out of the custom config it might be a command that messes with player models somehow.

Skipbwai commented 4 months ago

I am having a similar issue, the game systematically crashes when the server I'm playing on switches maps or I join another server.

OS: Arch Linux (6.8.5-arch1-1) CPU: AMD Ryzen 7 7800X3D GPU: GIGABYTE AMD Radeon RX 7900 XTX GPU driver: Mesa 24.0.5-arch1.1 RAM: 32 GB

The following error is generated upon game crash:

crash_20240427213831_3.dmp[157789]: Uploading dump (out-of-process)
/tmp/dumps/crash_20240427213831_3.dmp
/home/skip/.local/share/Steam/steamapps/common/Team Fortress 2/tf.sh: line 83: 153964 Segmentation fault      (core dumped) ${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"

So apparently, TF2 segfaults when playing another match. I can play one match just fine, but for some reason this happens when the game attempts to load any other map...

konkey commented 4 months ago

For people using custom configs, I found the culprit of this to be mod_load_mesh_async 1. Possibly mod_load_anims_async 1 and mod_load_vcollide_async 1 as well, although those commands did not introduce crashes in my limited testing. For consistency's sake I set all the asynchronous loading cvars back to their default value of 0 and I've yet to experience any crashes since.

mod_load_anims_async 0
mod_load_mesh_async 0
mod_load_vcollide_async 0
Xavibite commented 4 months ago

^^^^^^^^^^^^^^ THIS FIXED IT FOR ME THANK YOU SO MUCH

Numereal commented 4 months ago

it worked!!! thank you so much man

indirectmondor commented 4 months ago

yoo thank you so much this fixed it

markdwhite commented 3 months ago

Another fix here. Thanks to @konkey for that.

(Would mention that after quite a few rounds, I experience some lag/jerkiness that is solved by quitting and restarting TF2)

meslambda commented 3 months ago

Issue seems to persist even after async commands

Edit: As previously in this thread mentioned segfault, im getting similar "ExceptionCode: c0000005 (Access violation)" when viewing steam dumps

Intel(R) Core(TM) i5-8300H CPU @ 2.30GHz 2.30 GHz 8 gb ram, 1 stick 1050ti mobile win11

meslambda commented 1 month ago

If anyone still has the problem after the async fixes, the command that crashed tf2 for me (on multiple pcs) was cl_always_flush_models 0.

I have not tested if this command still makes tf2 crash after the summer update but if anyone still keeps crashing try setting cl_always_flush_models 1.

Arfench commented 1 month ago

on Windows, just in case, update Steam

torzod commented 1 month ago

cl_always_flush_models 1 fixed it for me, thank you!