• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

Script causing Memory Issue

Community Beginner ,
Sep 22, 2022 Sep 22, 2022

Copy link to clipboard

Copied

So I am running a script and its causing me to get an error that "Adobe doesnt have enough Memory" Anyway I can try and narrow down what might be causeing this? I am using Visual Studio Code, and if I run the script and one function runs it will give me the error. Oddly enough there are other functions that have the same code and they cause no issues. I know thats really vague and normally I would post the code, but its about 1800 lines. It does a lot of stuff. I went in and started turning stuff off to try and narrow it down and I have found a few things that when commented out dont bring out the issue.

TOPICS
Performance , Scripting

Views

41

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 22, 2022 Sep 22, 2022

Copy link to clipboard

Copied

LATEST

Yeah, you likely would really have to post the code, though not necessarily publicly. Typical things to look for are of course just creating a ton of points or objects or overflowing arrays when sorting things in like reordering layers. If you use tons of loops I'd also start by truncating them with fixed values. A complex main loop can cause the weirdest issues when AI needs to update/ draw a ton of items all at once, especially with complex appearances or object/ layer interactions. In such a case it might make more sense to restrict the amount of loops and instead run the script multiple times or structure it in such a way that there's some intermediary refresh before entering the next iteration.

 

Mylenium

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines