First of all, I'm from Poland, so sorry for my language mistakes in advance.
I have a problem with this error message about "Stack level too deep". Before I decided to ask here, I tried to fix my problem by myself. But I didn't succeed. Then, I looked through the whole Internet to check if there is any solution for my problem. But there's not.
Generally, as I read, the majority of the errors with too deep stack level is caused by the scripts (one duplicated or two not compatible with each other). But in that cases, the error appears after clicking "Playtest" (at the beginning). I can playtest my game without any trouble, however, I created a kind of system which includes a smartphone in my game.
Let me show you, how it works - will be easier to see it instead of trying to describe:https://youtu.be/Rhpx3H0dum0
And then, I can "click" (switch between apps - it's this characteristic "tap" sound) using arrow keys exactly 85 times before the error appears.
I'll explain how I made this whole system. It is based on Common Events and pictures. Please take a look on that screenshot:
Each highlighted (chosen) application on the smartphone screen is a different common event (as you can see - com. events 199-207 on my screenshot). When you press a specific arrow key (eg. down), it loads new picture with proper application highlighted. If you are on "Flashlight" app highlighted (top middle, with a bulb icon) and press right arrow key, the picture with lightbulb highlighted will be cleared and new picture (with "Calendar" icon chosen) will be loaded. Then, the player can see it as switching between the apps.
Additionally, I use "Stop All Movement" script by Yanfly to prevent main character from moving when the smartphone is being used.
I'm really sorry for such long explanation, but I did my best to explain my problem as clear as possible for best help results.
I have no idea in which point the stack is being overflowed, because I tried to protect from it using "Break loop", "Jump to label: END" and all this stuff (I consider I'm just stupid and I don't know how to use it correctly). After 85 clicks the error appears, but when I quit using smartphone after eg. 70 clicks and start it again, I can click another 85 times (so the stack is being cleared)...
You are the most experienced guys, I hope you can see something I missed. Probably the solution is quite easy, but I need your assistance... Thanks!