-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Linux] Failure to start with tcmalloc "Attempt to free invalid pointer" and lavapipe built against llvm 16 #2285
Comments
Hello @AngryPenguinPL, are you currently opted into Steam's client beta update channel, and if you are, does opting out have any effect? |
Just tested beta branch but the problem still exists. |
Can you try renaming (or removing) libtcmalloc.so from |
Unfortunately, that didn't work but... I managed to reproduce the problem and it seems to be on the system side. Dota stopped working after system upgrade to Llvm/clang from 15 to 16. I did a test and on a live iso snapshot just before migrating to clang 16, I downloaded dota and found it works. However, after running an update and downloading new packages from clang 16 and packages that was rebuild because dependent on it like mesa etc, the game stopped working again. I think I have an answer to my question. I'm trying to figure out what exactly is causing this problem. |
Same issue here, i managed to post on : |
same problem just now. manjaro. just updated my system. |
Same issue on OpenSUSE Tumbleweed, and I'm also seeing an upgrade to clang 16 this morning. EDIT: Confirmed that rolling back to pre-upgrade snapshot fixes it. |
@danginsburg looks like people on other distros also see similar issue. Is any way we can try debug it? Maybe dota need rebuild with new compiler? |
I was able to "fix" it on my end by swapping out the libtcmalloc_minimal lib with the system one. I did have to actually copy and paste it into the gamedir though and rename the file to be the exact same as the one provided: dota did not otherwise use the one in /usr/lib64 . |
Also adding that it's not working for me either. Unfortunatly the fix to copy
Running Arch (EndeavourOS) Happy to provide other details if asked. |
Switching to the flatpak release worked for me, it can also load existing library so no need to re-download games |
Have you renamed the file? Make a backup of I remember having similar problem with CSGO, had to do the same. |
This is now resolved for me with the latest update. Specific version (in about) |
Today I got this problem can't launch the game, everything was normal. The game run now just with Proton option enable. ❯ steam steam://rungameid/570 How to fix it? Tks ❯ glxinfo | grep OpenGL Operating System: Fedora Linux 38 |
Having this issue on Arch. Running wayland. |
Can u specify the compositor ur using, m using Hyprland and still got the same issue. |
Confirmed on Fedora 38. |
+1 |
on flatpak steam it works. O_O |
The common trend here looks like Dota 2 uses tcmalloc, mesa is built with llvm 16, and lavapipe (mesa's software based Vulkan implementation) is installed. Please test how the game behaves with a mesa build that includes https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22600 or temporarily disable lavapipe with something like |
The solution from the previous comment works perfectly for me. Thanks a lot! |
Temporary solutionInstead of renaming the lavapipe file, which might be undone by your distro's package updates, you can use an environment variable to prevent Vulkan from loading it.
If you want to edit your desktop file for Steam, you have to add
Tested working on Fedora 38, mesa 23.0.2, Nvidia 530.41.03, X11 Reference for Vulkan loader env vars: https://github.com/KhronosGroup/Vulkan-Loader/blob/main/docs/LoaderInterfaceArchitecture.md#active-environment-variables How to override desktop file: https://wiki.archlinux.org/title/Desktop_file#Modify_desktop_files |
Attempt to free invalid pointer
and lavapipe built against llvm 16
Attempt to free invalid pointer
and lavapipe built against llvm 16
Using KDE plasma so compositor is KWin
I don't have these files in here for some reason. I have 2
Considering other's success with the disabling the lvp files, wondering any other possible reason I don't have the |
I don't know how AUR mesa-git differs from Arch mesa packaging. On Arch, the file is in You could try selecting the radeon driver explicitly instead of disabling the lavapipe one:
|
Dave Airlie did a write up on it here:
https://airlied.blogspot.com/2023/04/fedora-38-llvm-vs-team-fortress-2-tf2.html |
Ultimately a variant of this command worked me on Arch with 7900 XTX. First, I distro hopped to Fedora 38, which just worked with the
Using the
Which I assume is coming from |
Got this today on fedora 38, system is 100% up to date. Workaround suggested here worked. |
Same here on Fedora 38 with che/mesa drivers I had to add VK_LOADER_DRIVERS_SELECT=radeon* %command% as launch options, as for some Source Engines games this solution might not work, you could try install the package gperftools-libs and delete the file libtcmalloc_minimal.so and this should fix it |
Team Fortress 2 seems still affected by this. Tested on 23.1.4 and llvm 16.0.0 on Nobara 38. Here is git with the 23.1.4 tag checked out to validate the commit exists:
Here's the steam output after Team Fortress 2 fails to launch:
Package versions
|
Hello @GloriousEggroll, you're looking for ValveSoftware/Source-1-Games#5043 instead of this issue report. |
Thanks, Fixed my issue with TF2 on Fedora 38 It is also necessary to install this package from the Leap repos |
I'm on arch linux with a Nvidia RTX 3080ti. After upgrading llvm to 16, Dota2 won't launch for me, and none of the fix/workaround mentioned here works for me. I don't have lavapiple file, only |
Hello @tfhavingfun, your backtrace has similarities to #2442 and #2400 and is likely unrelated to this issue report. |
@kisak-valve Can you also take a look at my Steam Runtime System Info: https://gist.github.com/tfhavingfun/755ead722ee9135a92550ddc90c1ff67. Thanks. |
Your system information
Steam
->Help
->System Information
) in a gist:Please describe your issue in as much detail as possible:
From two days (started in 24 march) I can no longer launch Dota2 When I click on the play button, I see the button change to launch but nothing happens, and after a while it goes back to play...
When I launching steam from konsole I see:
Here is full launching log from konsole: https://gist.github.com/AngryPenguinPL/e9261a8d2bfcfd544d5136efc9997444
Also here is a dump from /tmp/dumps
crash_20230325194758_2.dmp.txt
crash_20230325202536_2.dmp.txt
crash_20230325202826_2.dmp.txt
crash_20230325172830_2.dmp.txt
Not sure, if this is due dota2 update or by system update (llvm16 was shipped -default system compilder here).
but other games (native or proton) works without problems.
The text was updated successfully, but these errors were encountered: