Is there something I am doing wrong with Cyberpunk 2077?

After updating to the 470.57.02 driver it seems to be resolved. Uses less memory than it did on my previous system too which is a bonus! Thanks everyone!

Just tried it again and its doing the same thingā€¦

The memory leak? I am trying again to see if I am seeing the same

Yes, and I didnā€™t change nothingā€¦

The RAM usage is a little higher than what it was, ~10GB now compared to the ~6GB that it was usingā€¦but mine is managing to load a save fine still.

Ok definitely took longer for it to happen to meā€¦but I tried again a couple more times and was able to see the memory leak again

I just checked Cyberpunk and I also have issue, it crashes during save load. I get the first frame of a gameplay which is frozen, then the game is closed. Previously it was working fine or even better than fine. It was super stable and crashes were super rare (once per few days at most).
I tried various Protons, refreshed prefix, still the same.
Nvidiaā€™s update to 470.57 didnā€™t help. Hmā€¦

1 Like

I am fairly certain that the Nvidia driver is to blame. After a couple of starts and closes of the game after updating the new driver the problem started to creep back.

But what is making me think its the driver is it was working on my Pop OS drive which has been on 465. After updating it to the same version that is on my Manjaro drive, itā€™s crashing and stuttering at the same spots.

https://www.protondb.com/app/1091500 filter for Nvidia and see the reports.

https://www.nvidia.com/en-us/geforce/forums/game-ready-drivers/13/462834/nvidia-470-linux-driver-does-not-work/ also check on Nvidia forum when you have doubt about an issue with Nvidia.

Cyberpunk 2077 (1091500) Ā· Issue #4450 Ā· ValveSoftware/Proton Ā· GitHub and also the Proton GitHub is another source to cross information.

1 Like

I tried various Protons, experimented with commands, no change, I still get the crash on save load. Judging from the reports on protondb, this is a common thing on Arch based systems, so it stands to reason the newest Nvidia drivers are at fault here.

When crash happens, Steam output is:

(process:33524): GLib-GObject-CRITICAL **: 22:17:21.079: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
pid 33379 != 33378, skipping destruction (fork without exec?)
Game removed: AppID 1091500 "", ProcID 33443 
Game 1091500 created interface STEAMAPPS_INTERFACE_VERSION008 / 
Game 1091500 created interface STEAMUSERSTATS_INTERFACE_VERSION012 / 
Game 1091500 created interface SteamController007 / 
Game 1091500 created interface SteamFriends017 / 
Game 1091500 created interface SteamInput001 / 
Game 1091500 created interface SteamUser021 / 
Game 1091500 created interface SteamUser021 / User
Game 1091500 created interface SteamUtils010 / 
Game 1091500 method call count for IClientUserStats::RequestCurrentStats : 1
Game 1091500 method call count for IClientAppManager::GetCurrentLanguage : 1
Game 1091500 method call count for IClientUtils::RecordSteamInterfaceCreation : 9
Game 1091500 method call count for IClientUtils::GetAppID : 11
Game 1091500 method call count for IClientFriends::SetRichPresence : 2
Game 1091500 method call count for IClientUser::GetSteamID : 1
Game 1091500 method call count for IClientUser::BLoggedOn : 2
Uploaded AppInterfaceStats to Steam
Exiting app 1091500

This is a huge regression. From completely stable game to unplayable :frowning: .

1 Like

Not sure when there was an update to the testing branch, but I got a chance to update and try again.
Nvidia driver version is - 470.57.02-2 and the issue is still presentā€¦currently able to play the game now that I have added more RAM but still using roughly 20GB at the menu and then 26GB when playing the game with a load of stutters and other issues that werenā€™t present before.

I am seeing similar logs to what is posted above from Steam. I have to agree that this is a regression from Nvidia. This game was only consuming ~6GB for me before this driver update, and the game hasnā€™t updated since April or May, so I am pretty sure that this isnā€™t the gameā€™s fault. From what I have seen this is also effecting people who play other titles that are using DX12 (VKD3D)

Found this forumā€¦if anyone is experiencing similar issues to what I have described please post something here as well.

Nvidia Developer Forum - High RAM consumption when playing DX12 games - NVIDIA 470.57.02 drivers

1 Like

Yep. It happens with Horizon: Zero Dawn for me. I have 32GB RAM and had to increase my swap file Iā€™ve always had at 1GB to 16GB. It fills most of it up, but rarely causes an OOM event anymore.

I have systemd-oomd enabled with Fedoraā€™s default settings conveniently packaged in the AUR as systemd-oomd-defaults. It will kill the game if it runs out of RAM and swap.

1 Like

Iā€™m replying to confirm this issue.

I saw excellent performance in CP2077 using Proton 6.x with, Nvidia 465.x (vcard: 3070Ti). The performance issue in CP began (memory usage going out of control/using swap) after the Manjaro Pahvo (21.1.0) update which includes an upgrade to Nvidia 470.x. Other games seemed to be unaffected (non-DX12 games?). The performance issue disappeared after rolling back to Ornara (21.0.7) using Timeshift.

1 Like

Update to 470.63 drivers didnā€™t help, the issue is still present. Cyberpunk is not playable.

Donā€™t know if anyoneā€™s still having this problem but 470.63.01 fixed it for me. The previous workaround was to delete the shadercache folder for Cyberpunk before starting up the game.

Iā€™m using 495.44-4 and is working without problems. Problem seems to be fixed.

@p-reynolds Try using winetricks and winestagging Proton also use same but custom version.
first this

sudo pacman -Syu --needed wine-staging giflib lib32-giflib libpng lib32-libpng libldap lib32-libldap gnutls lib32-gnutls mpg123 lib32-mpg123 openal lib32-openal v4l-utils lib32-v4l-utils libpulse lib32-libpulse libgpg-error lib32-libgpg-error alsa-plugins lib32-alsa-plugins alsa-lib lib32-alsa-lib libjpeg-turbo lib32-libjpeg-turbo sqlite lib32-sqlite libxcomposite lib32-libxcomposite libxinerama lib32-libgcrypt libgcrypt lib32-libxinerama ncurses lib32-ncurses opencl-icd-loader lib32-opencl-icd-loader libxslt lib32-libxslt libva lib32-libva gtk3 lib32-gtk3 gst-plugins-base-libs lib32-gst-plugins-base-libs vulkan-icd-loader lib32-vulkan-icd-loader

First run winecfg then change windows version to windows 10

then this

sudo pacman -S --needed winetricks
winetricks -q d3dcompiler_43 d3dcompiler_47 d3dx9 corefonts cjkfonts faudio

some steam dependency are need

sudo pacman -S --needed glew lib32-dbus-glib lib32-freeglut lib32-glew lib32-gtk2  lib32-imlib2 lib32-libappindicator-gtk2 lib32-libcaca  lib32-libcurl-compat  lib32-libcurl-gnutls lib32-libdbusmenu-glib lib32-libdbusmenu-gtk2 lib32-libgcrypt lib32-libid3tag lib32-libidn11 lib32-libindicator-gtk2  lib32-libjpeg6-turbo lib32-libmikmod lib32-libmodplug  lib32-libnm lib32-libpng12 lib32-librtmp0 lib32-libtheora lib32-libtiff lib32-libudev0-shim  lib32-libvpx lib32-libwebp lib32-libwrap lib32-openssl lib32-pipewire lib32-sdl  lib32-sdl2_image lib32-sdl2_mixer  lib32-sdl2_ttf  lib32-sdl_image  lib32-sdl_mixer lib32-sdl_ttf lib32-smpeg libcurl-compat  libcurl-gnutls libdbusmenu-gtk2 libgcrypt15  libidn11  libindicator-gtk2 libjpeg6-turbo libpng librtmp0  libtiff4 libudev0-shim libvpx libwrap openssl  opusfile sdl2_image  sdl2_mixer sdl2_ttf  sdl_image  sdl_mixer sdl_ttf smpeg

and winetricks

winetricks -q dotnet48 vcrun2005 vcrun2008 vcrun2012 vcrun2019 d3dx11_42 d3dx11_43 gfw msasn1 physx xact_x64 xact xinput

If dxvk,vulkan dont work try this

wget -P ~/Downloads https://github.com/doitsujin/dxvk/releases/download/v1.7.3/dxvk-1.7.3.tar.gz
tar xvf ~/Downloads/dxvk-1.7.3.tar.gz  --directory ~/Downloads/
rm ~/Downloads/dxvk-1.7.3.tar.gz
 ~/Downloads/dxvk-1.7.3/setup_dxvk.sh install

Change wincfg
run

winecfg

then go to libraries then addxactengine2_1

install steam via wine

wine steamsetup.exe

these config works for allmost all games

I prefer wine as you can use vulkan and directx custom version
but for proton lovers try this version of proton from here its called proton-tkg
also proton need mesa-git from aur get it by
pamac build mesa-git

And proton requires AMD card and mesa-git pamac build mes-git to run cyberpunk even on latest version got from here

Iā€™ve got it on gog not on steam, and Iā€™m running it thru lutris using wine-ge 2.1. Its running ok again since the release of nvidia drivers 495.xx. 470.xx had a memory leak problem.

1 Like

Try uninstalling and then reinstalling it, that works most of the time.