Linux Ubuntu - Memory Leak/Crashing(?) with Alpha 20 Experimental

Theodryck

New member
As requested, I am starting a new post.  

Ever since I switched to Alpha 20, I can barely play for more than a few minutes before my HD starts to go nuts and hogs all system resources, essentially freezing my system.  There is generally no warning, rhyme or reason to it.  I'll be walking along, and BAM! Sometimes it happens when I activate something (pressing TAB, or hitting 'E' to see what's in a container).  Sometimes it just happens when I'm doing nothing really at all.  It never crashes to the desktop and I am always forced to do a hard reset to bring my PC back up.  Before with A19, I've never had any major issues.  Even with A20, my game still runs at 100+ fps and looks great with all the new lighting and shading.  Here is the last log from my game.  I don't really see anything out of the ordinary, but I am no expert in 7DTD logfiles, either.

https://pastebin.com/jqTgySz9

My system specs are as follows -

Graphics Card: NVIDIA GeForce GTX 1650 SUPER

CPU: Intel i5 3470 Quad core @3.2 Ghz

RAM: 8 gb DDR 3

OS: Linux Kubuntu 20.4

I've tried forcing DirectX 10 (-force-feature-level-10).  I've tried using the Tool option on the launcher to clear all data.  I've switched between the Linux native version and various versions of Proton (Wine).  I've even done an complete uninstall/reinstall to a fresh copy.  So far nothing has worked.  I know that this is an experimental build and hiccups are bound to happen.  But watching everyone else having fun after waiting for a year and a half for A20 is kind a bummer.

 
Last edited by a moderator:
Your log is from Windows 10, not Linux. Are you using a VM?
That's more of and emulator than a VM.  It's called Proton, which is a fancy shmancy python script that passes settings to Wine (a sort of Windows emulator).

 
Last edited by a moderator:
Log is also from the client, and not a server.  It does end unexpectedly though.

That's more of and emulator than a VM.  It's called Proton, which is a fancy shamncy python script that passes settings to Wine (a sort of Windows emulator).
Client is Native Linux. You don't need Proton.

 
This is just an idea what it could be though I would expect the game to crash instead of hang:

A20 needs more memory than A19. And maybe even has a small memory leak. Furthermore with wine you are using more memory as well and if you have a browser running in the background even more mem is used. Do you have a swap partition or file? If not, try to add one and see if that improves it. Another method to save RAM would be to turn off the new dynamic mesh feature.

 
This is just an idea what it could be though I would expect the game to crash instead of hang:

A20 needs more memory than A19. And maybe even has a small memory leak. Furthermore with wine you are using more memory as well and if you have a browser running in the background even more mem is used. Do you have a swap partition or file? If not, try to add one and see if that improves it. Another method to save RAM would be to turn off the new dynamic mesh feature.
Thanks for replying. Every little bit helps. I already have 4 gigs of swap running, but since my graphics card has 8 gigs DDR4 RAM, I don't think my RAM is the issue, although I will certainly look at it. And I have nothing open but 7DTD and Steam. Again, the game runs great while it runs. Load times are short and I usually have over 100 fps, even with things like AA maxed and textures on Ultra, etc. There is generally no warning. So it's not like it happens progressively. It just happens. I'm playing, then hard drive maxes out.

 
Last edited by a moderator:
Thanks for replying. Every little bit helps. I already have 4 gigs of swap running, but since my graphics card has 8 gigs DDR4 RAM, I don't think my RAM is the issue, although I will certainly look at it. And I have nothing open but 7ETC and Steam. Again, the game runs great while it runs. Load times are short and I usually have over 100 fps, even with things like AA maxed and textures on Ultra, etc. There is generally no warning. So it's not like it happens progressively. It just happens. I'm playing, then hard drive maxes out.


Since you say hard drive: Is it really a hard drive, not an SSD?

 
Since you say hard drive: Is it really a hard drive, not an SSD?
I have Steam and all games installed on an SSD. A 300 gb Western Digital, to be exact. My main/OS drive is a 2 tb drive. And even though I would like both Steam and the game to use just the SSD exclusively, they both seem hell bent on putting files in /home/theo/.local/share  I've given on trying to fix that over a year ago, however. But it is the HD that is going nuts, not the SSD.

if the game would dump a core, I could at least do a backtrace with gdb. That would be something.

 
Last edited by a moderator:
I have Steam and all games installed on an SSD. A 300 gb Western Digital, to be exact. My main/OS drive is a 2 tb drive. And even though I would like both Steam and the game to use just the SSD exclusively, they both seem hell bent on putting files in /home/theo/.local/share  I've given on trying to fix that over a year ago, however. But it is the HD that is going nuts, not the SSD.

if the game would dump a core, I could at least do a backtrace with gdb. That would be something.


So the save game could still be on the hard disk. You probably need to find the wine directory in .local/share and copy it completely over to SSD and create a logical link back. IF it is in there.

 
So the save game could still be on the hard disk. You probably need to find the wine directory in .local/share and copy it completely over to SSD and create a logical link back. IF it is in there.
The save game is on the SSD, unless I use linux native instead of Proton, in which case it does store the save file in /.local/share/7 Days To Die/Saves which is on the main HD.

ln -s has no effect since the game just updates the save file in the original folder.  However, when I use Proton, the wine save files are stored on the SSD, which in this case is /media/theo/Games/Steam/steamapps/compatdata/251570/pfx/drive_c/users/steamuser/AppData/Roaming/7DaysToDie/Saves/  This is as it should be.

I tried to have everything set up so that the game and Steam are forced to only use the SSD.  Sometimes it actually works, lol.

 
From the 7D2D testing I've done, I recommend setting it to 8 Gb.
Thanks for the suggestion.  I'm actually trying to set up some swap space on my SSD.  That should almost act like more RAM, although the write speed isn't exactly as fast (600gb/sec).  Either way, it is a testable hypothesis.

 
Back
Top