MZ QJ-Lighting Max call stack size

Hi all!

I have some issues using the QJ lighting plugin. So first of all, I already contacted the author of the plugin, but he is in china and i'm in France so communication is quite hard. I hope that someone here can help me.

I have this screen in game :
1681459447453.png
I know from where is it comming but don't know how to fix it. It's happen when i have light on an event with more than one page. When page is changing, I have this error message. I think the plugin load another light without deleting the previous one and it's make a conflict between the lights.

So, let's me give you the part of the code that the console give to see if you can help me :
Spoiler
1681459740768.png

1681459815145.png

I'm really bad with javascript, so I don't know if it will be enough to help me.

So thank you anyway!
max Stack Error says it is something you did wrong in the configuration.
if its correct, or event is correct, place the plugin higher or lower in the list,
as something is stacking the same function.

there is nothing wrong with the plugin itself.
Yes, it was an order conflict with the QJ-doodads, cause of my bad english I thougt I had to place doodads first and lighting second, it was the oposite. It's work well now.

Thank you!

How do I close the thread?
Just as an explanation:
Basically if the call stack size is exceeded, it means you have a recursive call to a function (which means a function calling itself without ever returning)

the most common cause is having a plugin installed twice, but if two plugins modify the same function it can also be a plugin order between them.

it could be a single plugin error, but that is unlikelöy and then its either configuration or the plugin never worked at all if it was an internal loop - I mention that specifically because sometimes plugins are published that never worked, you cannot assume that a plugin is always OK.

Original thread: https://forums.rpgmakerweb.com/threads/qj-lighting-max-call-stack-size.156655/