• Hi Guest!

    We are extremely excited to announce the release of our first Beta1.1 and the first release of our Public AddonKit!
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. For access to the Public AddonKit you must be a Creator tier member. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.
  • Hi Guest!

    VaM2 Resource Categories have now been added to the Hub! For information on posting VaM2 resources and details about VaM2 related changes to our Community Forums, please see our official announcement here.

Solved Too many heap sections

Vesolye

New member
Joined
Sep 11, 2022
Messages
10
Reactions
7
I have 64gb ram now, so there should be no problems theorically, but it keeps crashing my game.

Yesterday, it requires 10-13 scenes to crash, but today only one scene with timeline is enough to crash with this message.

Maybe it was caused by my enormous amount of addons? I cannot guess...
 
Solution
So I’ve been struggling with this for a while and I think I found a solution.

Short version: remove VARs with too many morphs, namely those by Universens and noheadnoleg.

Longer version:

I wasn’t able to open scenes with more than 2 people in it, without getting the dreaded "Too Many Heap Sections". I’ve read that it was not about not having enough physical RAM, which I can confirm from my experience. I do have LOTS of VARs and I was pretty sure that was the reason, but I was not sure why.

I found a very interesting thread about VAM performance where MeshedVR explained that VAM performance wasn’t directly related to the number of VARs, but it is related to the number of morphs, including the ones in VARs and all duplicates. He...
Ran into heap sections issue and ran the code. Noticed from unicode processing issued when outputting via the python script. Updated the script to manage the output of the variety of var names. I also updated the script to move any vars that pop up with the .zip error into a folder in your addonpackages folder titled 'corrupted vars' (although you'll have to figure out if there is any issue with them).

Steps
1. Download text file and change extension to .py (can't change extensions? go to view, show, file name extensions)
2. Right click in your addonpackages folder and select open in terminal or cd into your folder from powershell
3. Run code below (you can change output to any filename

python .\morphbloatscanner-1.1.0.py --min 1 --path . > output.txt
I've never used python before. Where would I add in the line
python .\morphbloatscanner-1.1.0.py --min 1 --path . > output.txt
Would I add that into the bottom of the .py file?
 
Upvote 0
I've never used python before. Where would I add in the line

Would I add that into the bottom of the .py file?
That's the command line you need to use to invoke python on the script. You don't add that to the file. After installing python, you would enter that into Windows Powershell, or something similar. You run it after doing a cd to the AddonPackages folder. If that's too geeky for you, just skip it.
 
Upvote 0
Back
Top Bottom