Log in to reply
 

Game out of memory



  • Been getting these crashes now that are happening from like 5 seconds to around 3 minutes of when I enter game.

    I have around 24 mods installed so far, all made up of about 5 car addons, 18 car replacements and 1 texture mod pack, all was running smoothly but now I'm getting all these out of memory errors -

    [ERR_MEM_EMBEDDEDALLOC_GUARD_1]
    Game memory error. Please reboot and restart the game.

    [ERR_MEM_EMBEDDEDALLOC_GUARD_2]
    Game memory error. Please reboot and restart the game.

    [ERR_MEM_EMBEDDEDALLOC_GUARD_3]
    Game memory error. Please reboot and restart the game.

    [ERR_MEM_EMBEDDEDALLOC_GUARD_4]
    Game memory error. Please reboot and restart the game.

    [ERR_MEM_EMBEDDEDALLOC_GUARD_5]
    Game memory error. Please reboot and restart the game.

    My PC specs are

    Intel i5 2500k @ 3.8ghz O'Ced
    GTX 970 4GB
    16GB RAM
    SSD
    Win 10 anniversary

    I noticed when playing using the msi afterburner overlay that when in-game the RAM usage is shooting up continuously, it never lowers or stays stable, I'm watching it go up from 4750 RAM used to like 8934 RAM used and still climbing, vRam used is around 3200 in-game. Surely I can't be running out of memory with 4GB of video RAM and 16GB of RAM?

    I have tried different gameconfig.xml's



  • I have also been with this problem all day



  • @UKBanger421 The problem with replacement mods, is that they alter the balance of resource allocation.

    As an example, imagine you have a box that will hold 12 eggs of a certain size. You then decide that you want eggs that are twice the size but you use the same box. As you can imagine, there won't be enough room for all twelve eggs and if you try and force them in, things are going to break.

    That's pretty much how resource allocation works in a game with standard resources. The memory pool is designed to hold a set number of cars that are a certain size. When you replace those cars with ones that are bigger (memory wise, not size wise) you run out of allocated memory to fit them in. The game doesn't know or expect that you have replaced normal assets with bigger ones and that's where the problem lies.

    The other problem with replacement cars, is that they will spawn into traffic by default, further increasing the problem. Let me give you a real world example. There is a car on this site that replaces the futo. The in-game futo has 4 files that total just over 2MB. The car that replaces it is closer to 50MB for the same 4 files. That's a 2500% increase in memory requirements... for a single car. Now imagine that all 18 of your replace cars are the same and you can begin to see the scale of the problem.

    Have you tried this gameconfig? https://www.gta5-mods.com/misc/gta-5-gameconfig-300-cars



  • @LeeC2202 Yeah I actually agree with you there and now you mentioned it, it seems so obvious that replacing this amount of cars with bigger files will cause problems, I have seen alot of the cars I replaced spawning in the traffic and one of them I did replace the Futo, I replaced it with the Ford Sierra Cosworth, guessing the way forward and a better option to use cars in the game is to add them as DLC's but I have had a few problems with getting DLC cars to work.

    I've already downloaded that config, I'm now using the 2.5x traffic config.



  • @UKBanger421 If you want to see the cars in traffic, then using them addons might end up with a similar problem. If you only spawn them for the player to use, then it should be okay. I have 27 cars as addon, including the one I mentioned above (which is the Toyota GT86) and I've never had a problem with memory allocation errors.

    But I only ever use 1x traffic and ped density, so I don't use anything that will strain the resources at all. As a mod writer, I have to make sure that my game is absolutely stable to test things.

    If someone who uses a lot of addon cars dropped into the thread, you might get a better answer as to how addons affect game stability. Sorry I can't offer much more beyond that.

    Edit: I thought I recognised the username... we were discussing troublesome addons the other day. Sorry, I'm not with it... old age and all. :D



  • @LeeC2202 To be honest, at first I wanted the cars to spawn in traffic but now it is causing a few problems and I can't keep the game open any longer than 10 minutes ( that was the final test ) think its best to just add the cars as dlc addons and spawn them when I need them.

    I saw on the comments on the https://www.gta5-mods.com/misc/gta-5-gameconfig-300-cars that people have had over 400 cars replaced and x amount of addons and the author stated that he has 1100 cars in the game but he doesn't say whether they are replacements or addons......So would be good if someone with experience of using addons came on in.

    Haha no worries, were all getting old :P still never solved that "invalid model" issue but the other worked good :)



  • @UKBanger421 As far as I know, your RAM is more than enough to play GTA V + mods, I never had this issue when I had a GTX 980 and 8GB RAM + replace mods.

    And increasing the traffic density makes your game unstable.

    @LeeC2202 I have more than 100 add-on DLCs, more than 200 vehicles inside them, but I don't add them to the traffic because I don't like the vanilla + real car combination.



  • @Akila_Reigns There is someone who normally posts on the vehicle mods that apparently has over 1100 addons, so that does seem to be the stable way to do things.

    But if you never spawn them in traffic, there might as well just be 1 as far as the game is concerned. They only get added to the resource pool when they become active. And it's the resource pool that usually causes errors like this...

    So in theory, this situation would occur on a system with 4GB of RAM and a system with 32GB of RAM, because it's all based on a collection of certain sized objects. And if the object footprint (so to speak) is based on how big the game assumes the resource is, then bigger footprints will cause the problem.

    I don't know why the addon cars are so much bigger than the in-game ones... although I could guess at it having something to do with the way ZModeler converts and exports them.



  • @Akila_Reigns Well at first you would of thought 16gb was enough but it doesn't seem to be, but what lee mentioned about replacing the files with larger files does make sense, I will revert back to the 1x traffic, but to late now to check to see if the game was stable with all the mods I had because I have already started to put back in the original files, but it would be nice to actually have a lot of modded cars in the game to use, I'm not worried about them being used by the AI.

    How did you manage to stop the cars you replaced from spawning in the traffic? Maybe I could use that, but surely stopping those replaced cars from spawning in the traffic it would reduce the variety of cars driving around?



  • @UKBanger421 He has the cars as addons, not replace.



  • @UKBanger421 I put the original files back to the mods folder.
    How much FPS do you get when NPCs drive your modded cars?
    If you like, try to add add-on vehicles to the traffic, I don't know whether it will help or not, but I used to have a modified vehiclemodelsets.meta and a popgroups.ymt, and my FPS never dropped and the game never ran out of memory.



  • This last update came screw it up, I had everything before at most with many add-on and modified cars fixed and not going below now a constant, or can sometimes play more than 10 minutes.



  • I, too, such errors happen especially when the spawn something big BIG vehicle, example "yacht4"

    get ERR_MEM_EMBEDDEDALLOC_GUARD_1



  • same here.. "(

    alt text

    alt text

    alt text


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.