ValveSoftware / Dota-2-Vulkan

Tracker for issues specific to the Vulkan version of Dota 2 on Windows, Linux, and macOS
98 stars 17 forks source link

Startup crash with vulkan : src/tcmalloc.cc:390 #414

Open Shaaah opened 1 year ago

Shaaah commented 1 year ago

Your system information

Please describe your issue in as much detail as possible:

Crash at startup In log :


src/tcmalloc.cc:390] Attempt to free invalid pointer: 0x558a46140660
crash_20220923212327_2.dmp[13672]: Uploading dump (out-of-process)
/tmp/dumps/crash_20220923212327_2.dmp
/home/shaah/.local/share/Steam/steamapps/common/dota 2 beta/game/dota.sh: line 109: 13605 Aborted                 (core dumped) ${STEAM_RUNTIME_PREFIX} ${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"
crash_20220923212327_2.dmp[13672]: Finished uploading minidump (out-of-process): success = yes
crash_20220923212327_2.dmp[13672]: response: CrashID=bp-050a1f3e-9d18-4f29-bb3a-c70c22220923
crash_20220923212327_2.dmp[13672]: file ''/tmp/dumps/crash_20220923212327_2.dmp'', upload yes: ''CrashID=bp-050a1f3e-9d18-4f29-bb3a-c70c22220923''```

#### Steps for reproducing this issue:

1. start the game with -vulkan
kisak-valve commented 1 year ago

Hello @Shaaah, from your system information, it looks like you're using AMDVLK. Can you test if the game behaves the same with mesa/RADV?

Shaaah commented 1 year ago

Hi, @kisak-valve! I got no problem when I start Dota 2 with mesa/RADV. Thanks for the help :)

koreanfan commented 1 year ago

Hi, @kisak-valve! I got no problem when I start Dota 2 with mesa/RADV. Thanks for the help :)

Do you have vulkan memory leak? After playing one match my system eat 6GB ram with only steam and dota. If i exit from steam and dota my system eating 3GB ram, no other program runing in background (btw, on cold boot my system eat 800-900MB ram, debian xfce). And i cant find in xfce taskmgr what process eat 3GB ram. If i play more matches my system eat all 8GB ram and pc crash, only hard reset help.

rosshadden commented 1 year ago

I get this exact problem (src/tcmalloc.cc:390) but I am not using AMDVLK. In fact I uninstalled it just in case the env variables people mention do not properly force steam to ignore it (VK_ICD_FILENAMES).

Here is my system information.

I prefer steam-native but have tried with the self-contained runtime as well. It does work if I symlink in my system /usr/lib/libtcmalloc_minimal.so to a relevant Steam folder which is what I have been doing for the past 2-3 months, but demoing heroes in Dota crashes the game and I am wondering if this is somehow related.