7DTD icon indicating copy to clipboard operation
7DTD copied to clipboard

fatal error in gc: suspendthread loop failed

Open LemonLemonCloud opened this issue 2 years ago • 8 comments
trafficstars

Hi Mate:

Thanks for you work!

It works perfect but,

The game will crash every ~15mins after joined a server and sometimes raised an error :

fatal error in gc (suspendthread loop failed)

my version is 21.1(b16)

Have a good one :)

LemonLemonCloud avatar Aug 24 '23 12:08 LemonLemonCloud

Thanks for your report. By the look of the error, it appears to be an issue with the garbage collector. My current guess is that somehow the cheat might be affecting the maximum garbage collection time, it might have something to do with the unity garbage collection setup for the game. It is also possible that the issue resides with a memory leak. Could you open task manager and see if memory radically increases while playing with the cheat?

IntelSDM avatar Aug 24 '23 16:08 IntelSDM

Just got time to test it, result as below:

  1. Game started - 700MB-1G

  2. After join the server - 2G and increase to 3.5G

  3. Playing until the game disappear (but still exist in task manager) - 4.2G

LemonLemonCloud avatar Aug 25 '23 08:08 LemonLemonCloud

Thanks for the reply. So its not a memory leak then which makes diagnosing this issue more difficult. What server have you been playing on? so I can try to see if the server causes the same issues for myself. My guess right now is its either something in the default garbage collector settings in the game or it could be something to do with a mod messing up a parameter for a hooked function effectively vehing a massive loop in a hooked function until the stack gets full.

IntelSDM avatar Aug 25 '23 09:08 IntelSDM

I just updated the release and source to include a new feature that tries to disable the garbage collector every few seconds and reenable it so it can't get into vicious loops of exceptions. It's in the new debug menu called "Garbage Collector Setting" You could try turning that on.

IntelSDM avatar Aug 25 '23 10:08 IntelSDM

Thanks for the fix,

Just tested but the game still crashed, will test it more today.

LemonLemonCloud avatar Aug 25 '23 11:08 LemonLemonCloud

After some trial and error, I have deduced that the error seems to be within either misc or aimbot. So I will keep trying to brute force the issue.

IntelSDM avatar Aug 25 '23 13:08 IntelSDM

The issue appears to be in the misc class. So I will go through there just testing each function.

IntelSDM avatar Aug 25 '23 13:08 IntelSDM

any updates on this?

mbNightstalker avatar Aug 27 '23 15:08 mbNightstalker