Question Too many heap sections???

FreeMaster69

Active member
Messages
129
Reactions
49
Points
28
Every now and then I get a crash that says there are too many heap sections and it just crashes. Anyone have any Idea how to stop this from happening?

CPU. Ryzen 5 2600
Graphics. RTX 2060
Ram. 64Gb DDR4 3200Mhz
 
Every now and then I get a crash that says there are too many heap sections and it just crashes. Anyone have any Idea how to stop this from happening?

CPU. Ryzen 5 2600
Graphics. RTX 2060
Ram. 64Gb DDR4 3200Mhz
Assuming you're running on 64bit OS Win10 or Win11?

Update your graphics driver as well.
 
Upvote 0
Disclaimer: I don't actually know what I'm talking about.

That said, my impression is that "too many heap sections" is an error related to running out of memory. Which is strange, considering your have 64GB.

Maybe try watching memory usage while running the scene that caused the crash. Perhaps you're using a plugin that is buggy and just keeps consuming more and more Ram?

Or you have a metric fuckton of other applications running in the background using up Ram?
 
Upvote 0
Disclaimer: I don't actually know what I'm talking about.

That said, my impression is that "too many heap sections" is an error related to running out of memory. Which is strange, considering your have 64GB.

Maybe try watching memory usage while running the scene that caused the crash. Perhaps you're using a plugin that is buggy and just keeps consuming more and more Ram?

Or you have a metric fuckton of other applications running in the background using up Ram?
doubtful im using the same ram ammount as you my guess is its too many addons installed or its the fact that vam still runs on 32bit
 
Upvote 1
Vam memory problems tend to be with systems using 16GB or less. Once you're up to 32 BG it's smooth sailing. With 64, there shouldn't be any problems at all.
 
Upvote 0
my impression is that "too many heap sections" is an error related to running out of memory.
Correct.

Likely some kind of plugin that keeps allocating memory without ever releasing it. That's called a memory leak. I recommend to systematically removing your plugins to figure out which one is causing trouble.
 
Upvote 0
Anyone solve this yet? I've remove all of my addons and cleared cache. I have 64GB of RAM and crash every time I do a big scene load like "shortstack shenanigans" or some of the KittyMoCap scenes. I've updated my drivers and I'm using a Valve Index.
 
Upvote 0
Okay so after some in depth research, it would seem that the "Too many heap sections" error is happening due to a GC limit in Unity. This bug was supposedly fixed, but I'm wondering if some people here still have a Unity DLL in a DLL search path from the older version of Unity. If this is the case, you'll get this error because Unity did have a bug at one point with its garbage collector and memory allocation code.

So with that said, I would try this:
Open command prompt, change directory to the VAM directory, then type in:
Code:
set PATH=
This will clear the dll search path for this shell environment.
Now run vam in the shell by typing:
Code:
.\VaM.exe

This is just a theory. Try it and see if this fixes it.
Note, that removing the path variable for the environment means the program can't find DLLs from anywhere except its own working directory and binary paths configured in the application manifest. So if there are actually system DLLs that need to be loaded, you'll have to try
set PATH=%WINDIR%; instead (or direct the path to whatever system directory that has the missing dll)
 
Upvote 0
so anyone didn't solved this problem yet?

Something you might try is making sure you don't ahve any memory overclocking going on in Bios. I was getting frequent crashes with my new system until i disabled the "Extreme memory profile" my bios suggested. Smooth sailing ever since.

But i don't know if those crashes result in that "too many heaps" error message.
 
Upvote 0
Vam memory problems tend to be with systems using 16GB or less. Once you're up to 32 BG it's smooth sailing. With 64, there shouldn't be any problems at all.
True. I have 32GB Ram and have no trouble at all, thats with using Timeline.
 
Upvote 0
Something you might try is making sure you don't ahve any memory overclocking going on in Bios. I was getting frequent crashes with my new system until i disabled the "Extreme memory profile" my bios suggested. Smooth sailing ever since.

But i don't know if those crashes result in that "too many heaps" error message.
I use ryzen 7 5800x PBO. I should make try with it.
 
Upvote 0
I've had this problem too and I have 64 GB of Ram. Hopefully I can get one of those new-fangled computers that works with this...
 
Upvote 0
I have been looking for a solution to this for awhile. Is it possible that GC is referring to Graphics Card memory? I have 64 GB of Ram but my Graphics card has 8GB. I haven't found any mention of that in any of the proposed solutions, so maybe it has nothing to do with it.
 
Upvote 0
I have been looking for a solution to this for awhile. Is it possible that GC is referring to Graphics Card memory? I have 64 GB of Ram but my Graphics card has 8GB. I haven't found any mention of that in any of the proposed solutions, so maybe it has nothing to do with it.
You can search this solution but it refers to to many vars with morphs
 
Upvote 0
[specs: Win10, 64g ram, Nvidia 4090] [Vam 1.2x, with updated patch]
I've tried cleaning vars, morphs, dedup, vacuum. Still a crash on default scene load.
Attached a snippet of the dump file.
Any devs around?
 

Attachments

  • crash-sm.txt
    45.1 KB · Views: 0
Upvote 0
Did you add the Cpu/ Gpu patch...if so turn your memory down in your bios until it works
 
Upvote 0
I just figured out how to make symbolic links...
My 3 player scenes run poky at times.. I just thought it was just due to how much stuff is in my scenes with everything else going on.

I finally realized my external drive was to blame.. its not SSD (everything is in my external drive. Unity, Vam,Unreal, blender. My VaM cache was in it as well. .. The external drive was to blame for VaMs pokyness.. and the fact that I had way too much stuff in there lol.. While editing a new vid in blender with the new cache set up I noticed the frame rate dropped to 2 fps.. I changed the Cache to the ssd drive (C) and it was a night and day difference in how blender worked .
I took that a step further and changed the cache location for VaM also on that SSD disc. The Scenes were also way better in terms of no choppiness and faster loading time.
This morning I also created symbolic links using the cmd prompt and run as administrator on my SSD drive.
This method allowed me to move close to 300 gigs off of the VaM folder.... my chache has been averaging 160 gigs too

You will need to Create a folder for where the link will be. My Addon folder has extra folders for the creators I have the most items in.. It was 180 gigs of just clothes lol...


Chat GPT walked me though this. Here are the command lines.

Please be sure to make a Back Up copy of anything you'll move first!
The new location and whats in it need to be there before you make the link and the original folders/files... vars, need to be deleted so..... Please back up your stuff someplace outside of VaM First!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
This might take a while so be patient! Overall this took close to 4 hours lol!

Here's the line, and below is an explanation of what is what...

mklink /D "D:\elfs\VaM\AddonPackages\Eros" "C:\VamExtras\Eros"


Your folder organization is probably different from mine.. but anyway
I created separate folders within the Addon folder for creators I have a lot of stuff from.
elfs is the name of the folder VaM was in. Eros is the creator folders name.. I ended up moving 10 folders from within the addon folder this way..

VamExtras is what I called the new location and stuck the folders I wanted linked in there.
After your back up is done, also copy them into the new locations spot.

Open up txt or some kind of word editor and just copy paste the line somewhere a bunch of times being sure to
change up the names and folder names appropriatly to how you had yours set up..
open up the command line and right click run as administrator...

you have to go 1 at a time. right click copy
in the command line right click again, press enter... do that for all of what ever you're moving and you're set :)

you can close it when you're done.. it's saved.
Anything you add later related to what you moved has to also go in the new location from now on too.

I cant stress enough to back up your stuff.. some of use who have been patrons to other members for a while probably have a mall in their computer and 100's of dollars spent... lmao.
 
Last edited:
Upvote 0
Back
Top Bottom