I am writing a script with interface that creates a comps contain text and shape layers. I have been testing the script by creating one comp every time I testing it as I am writing the code and everything was normal until I accidentally tried to create multiple comps then it crashed. I check everything but it keeps crashing whenever i create more than one comp.
I am using Git so I backed couple versions and I found that the problem started occur when I started splitting the code to multiple libraries to keep it maintainable because its fairly long and contains many functions and modules, so I am wandering if there are any limitations to the number of libraries or variables or loops that I can use in AE script. And also if there is a way to debug the crash and understand what's going on. I am using Atom on Mac and not showing anything.
I have been learning and writing script for few months now.. so I will be very grateful for any advice.