Maybe it's a bug. Multiple browser windows.

Here we can discuss about the problem found
Post Reply
f1test
Posts: 15
Joined: Tue Nov 29, 2022 3:13 pm
Has thanked: 2 times
Been thanked: 11 times

Maybe it's a bug. Multiple browser windows.

Post by f1test »

Maybe it's a bug.

I load the program in the editor window. I run a program.
I open another browser session and set the page to Output mode.
I see the program running in the Output window.
I stop the execution of the program from the window in which I opened the editor. I load another program and run.
If I give a command in the Output window, an error is generated in ESP 32 and in the editor window. So the Output window sends commands to a program that is not its father.
User avatar
Electroguard
Posts: 855
Joined: Mon Feb 08, 2021 6:22 pm
Has thanked: 273 times
Been thanked: 321 times

Re: Maybe it's a bug. Multiple browser windows.

Post by Electroguard »

It's not a bug, the Editor and Output pages link to the same script loaded in the Editor.
You can check the link by using the Run and Stop buttons in the Output page to control running of the script in the Editor page.

So if you load and run a different script in the Editor, you are breaking the link to whatever output was previously being sent to the Output page.
The error is because all the data vars and branch links from the Output page are no longer valid in the Editor page.
Post Reply