sailro / EscapeFromTarkov-Trainer

Escape from Tarkov (EFT) Trainer - Internal
MIT License
610 stars 138 forks source link

Loot ESP causing crash #588

Open Glockys1000 opened 4 weeks ago

Glockys1000 commented 4 weeks ago

Hello there, after downloading this and enabling everything within the loot esp at any random point during raid my game will freeze and brick my pc black screening both my monitors forcing me to hit the reset button on my pc case. Anyone else have any problems with this? I do have a lot of mods installed but i don't see errors or anything in the console when loading up the server. (No I'm not running out of memory)

sailro commented 4 weeks ago

What do you see in %LOCALAPPDATA%Low\Battlestate Games\EscapeFromTarkov\Player.log ?

Glockys1000 commented 4 weeks ago

What do you see in %LOCALAPPDATA%Low\Battlestate Games\EscapeFromTarkov\Player.log ?

OutOfMemoryException: Out of memory at (wrapper managed-to-native) System.Object.__icall_wrapper_ves_icall_array_new_specific(intptr,int) at System.Array.Resize[T] (T[]& array, System.Int32 newSize) [0x00029] in :0 at System.Linq.Grouping2[TKey,TElement].Add (TElement element) [0x00010] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at System.Linq.Lookup2[TKey,TElement].Create (System.Collections.Generic.IEnumerable1[T] source, System.Func2[T,TResult] keySelector, System.Collections.Generic.IEqualityComparer1[T] comparer) [0x00025] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at System.Linq.Enumerable.ToLookup[TSource,TKey] (System.Collections.Generic.IEnumerable1[T] source, System.Func2[T,TResult] keySelector, System.Collections.Generic.IEqualityComparer1[T] comparer) [0x0001c] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at System.Linq.Enumerable.ToLookup[TSource,TKey] (System.Collections.Generic.IEnumerable1[T] source, System.Func2[T,TResult] keySelector) [0x00000] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at EFT.Trainer.Features.PointOfInterests.ProcessDataOnGUI (System.Collections.Generic.IReadOnlyList1[T] data) [0x00037] in <1a6207e742b646aab0f57cb7e67a32b0>:0 at EFT.Trainer.Features.CachableFeature1[T].OnGUIWhenEnabled () [0x00017] in <1a6207e742b646aab0f57cb7e67a32b0>:0 at EFT.Trainer.Features.ToggleFeature.OnGUI () [0x00008] in <1a6207e742b646aab0f57cb7e67a32b0>:0

(Filename: Line: 0)

Says I'm running out of memory which is odd because I monitor thru task manager and I have a ram cleaner going every 3 mins the highest it gets to is 75-80%. I also have the esp distance turned down to 20m. I tested yesterday though and was crashing every single raid with the esp turned on, then went for about 6 hours straight no crashes once i turned it off.

Glockys1000 commented 4 weeks ago

I can paste the whole file if you would like to look because I'm not too sure what I'm looking at here but I can read so I do assume it has something to with memory if that is what it says at the end of the log.

sailro commented 3 weeks ago

Are you using an old version? Because we changed the way Loot/ESP works (we now use object pooling to prevent those OOF). And since then we did not see OOF anymore

Glockys1000 commented 3 weeks ago

Are you using an old version? Because we changed the way Loot/ESP works (we now use object pooling to prevent those OOF). And since then we did not see OOF anymore

I downloaded the most recent universal installer and am playing on SPT 3.9.8

sailro commented 3 weeks ago

Could you retry, disabling both TrackWishlist and TrackAutoWishlist in the Loot menu to see if it's change something ?

You said you are using a distance down to 20m, but for now, it's only used when displaying point of interests. We are still collecting ALL the data.

Indeed we do not want to store camera-relative stuff, given the player is moving and we are caching values for several seconds. So 100m 3sec ago is not 100m now.

(but perhaps we can optimize something given we know the maximum speed of the player and the cache duration). I'm going to think about that. But given we are now using object pooling for point of interests, this should not be an issue.