ErvinN
October 7, 2021, 11:24am
1
Hi all and @nh.schottfam
I would like to ask if you can help me with below piston that reporting "Invalid empty variable name null " and does not set anything to the variable it just stay empty. Is this bug or I'm doing something wrong?
10/7/2021, 1:09:38 PM +652ms
+5ms â•”Received event [Alarm OFF].switch = on with a delay of 34ms, canQueue: true, calledMyself: false
+40ms â•‘RunTime initialize > 39 LockT > 1ms > rtDT > 29ms > pistonT > 29ms (first state access 9 6 33)
+43ms â•‘Runtime (8641 bytes) successfully initialized in 29ms (v0.3.113.20210825_HE)
+44ms â•‘â•”Execution stage started
+50ms â•‘â•‘Comparison (enum) on changes = true (1ms)
+52ms â•‘â•‘Cancelling condition #2 's schedules...
+53ms â•‘â•‘Condition #2 evaluated true (5ms)
+54ms â•‘â•‘Cancelling condition #1 's schedules...
+55ms â•‘â•‘Condition group #1 evaluated true (state changed) (9ms)
+61ms â•‘â•‘Comparison (enum) on is (string) on = true (0ms)
+63ms â•‘â•‘Comparison (enum) on is (string) on = true (1ms)
+64ms â•‘â•‘Comparison (enum) on is (string) on = true (1ms)
+66ms â•‘â•‘Comparison (enum) on is (string) on = true (0ms)
+67ms â•‘â•‘Condition #4 evaluated true (11ms)
+68ms â•‘â•‘Condition group #3 evaluated true (state did not change) (12ms)
+70ms â•‘â•‘Cancelling statement #5 's schedules...
+73ms â•‘â•‘Invalid empty variable name null
+76ms â•‘â•‘Executed virtual command setVariable (3ms)
+84ms â•‘â•‘Comparison (enum) on is (string) on = true (2ms)
+86ms â•‘â•‘Comparison (enum) on is (string) on = true (1ms)
+88ms â•‘â•‘Comparison (enum) on is (string) on = true (0ms)
+90ms â•‘â•‘Comparison (enum) on is (string) on = true (1ms)
+92ms â•‘â•‘Condition #10 evaluated true (13ms)
+93ms â•‘â•‘Condition group #9 evaluated true (state did not change) (14ms)
+95ms â•‘â•‘Cancelling statement #11 's schedules...
+99ms â•‘â•‘Invalid empty variable name null
+101ms â•‘â•‘Executed virtual command setVariable (2ms)
+104ms â•‘â•‘Cancelling statement #15 's schedules...
+109ms â•‘â•‘Calculating (string) + (string) >> (string)
+111ms â•‘â•‘Calculating (string) + (string) >> (string)
+113ms â•‘â•‘Executed virtual command setState (0ms)
+117ms â•‘â•šExecution stage complete. (72ms)
+120ms â•šEvent processed successfully (116ms)
As per the logs, maybe change the variables to string as opposed to dynamic.
It looks to me that you are trying to save text.
ErvinN
October 7, 2021, 12:14pm
3
Still the same
10/7/2021, 2:13:31 PM +356ms
+7ms â•”Received event [Alarm OFF].switch = on with a delay of 70ms, canQueue: true, calledMyself: false
+14ms â•‘RunTime initialize > 13 LockT > 1ms > rtDT > 1ms > pistonT > 0ms (first state access 11 8 5)
+17ms â•‘Runtime (6259 bytes) successfully initialized in 1ms (v0.3.113.20210825_HE)
+18ms â•‘â•”Execution stage started
+25ms â•‘â•‘Comparison (enum) on changes = true (0ms)
+27ms â•‘â•‘Condition #2 evaluated true (5ms)
+29ms â•‘â•‘Condition group #1 evaluated true (state did not change) (7ms)
+33ms â•‘â•‘Comparison (enum) on is (string) on = true (2ms)
+35ms â•‘â•‘Condition #4 evaluated true (5ms)
+37ms â•‘â•‘Condition group #3 evaluated true (state did not change) (7ms)
+38ms â•‘â•‘Cancelling statement #5 's schedules...
+42ms â•‘â•‘Invalid variable
+45ms â•‘â•‘Executed virtual command setVariable (3ms)
+47ms â•‘â•‘Cancelling statement #9 's schedules...
+50ms â•‘â•‘Executed virtual command setState (1ms)
+54ms â•‘â•šExecution stage complete. (37ms)
+57ms â•šEvent processed successfully (52ms)
Please do an HPM repair of your webcore install (if you did HPM install)
Otherwise please update to latest code and let me know if you still have an issue
After updating webcore, clear your browser cache, and edit this piston to ensure the code is correct and save.
ErvinN
October 7, 2021, 1:19pm
5
Issue still persist.
I repaired the webcore via HPM (got latest version 20211005) and following tried to run pistion on firefox and chrome but still the same result on both.
2021, 15:15:19 +879ms
+7ms â•”Received event [Alarm OFF].switch = on with a delay of 32ms, canQueue: true, calledMyself: false
+15ms â•‘RunTime initialize > 14 LockT > 1ms > rtDT > 2ms > pistonT > 1ms (first state access 11 8 6)
+18ms â•‘Runtime (6128 bytes) successfully initialized in 2ms (v0.3.113.20211005_HE)
+19ms â•‘â•”Execution stage started
+27ms â•‘â•‘Comparison (enum) on changes = true (1ms)
+29ms â•‘â•‘Cancelling condition #2 's schedules...
+30ms â•‘â•‘Condition #2 evaluated true (6ms)
+32ms â•‘â•‘Cancelling condition #1 's schedules...
+33ms â•‘â•‘Condition group #1 evaluated true (state changed) (9ms)
+54ms â•‘â•‘Comparison (enum) on is (string) on = true (1ms)
+55ms â•‘â•‘Condition #4 evaluated true (22ms)
+57ms â•‘â•‘Condition group #3 evaluated true (state did not change) (23ms)
+58ms â•‘â•‘Cancelling statement #5 's schedules...
+62ms â•‘â•‘Invalid variable
+65ms â•‘â•‘Executed virtual command setVariable (3ms)
+69ms â•‘â•‘Cancelling statement #9 's schedules...
+72ms â•‘â•‘Executed virtual command setState (0ms)
+75ms â•‘â•šExecution stage complete. (57ms)
+78ms â•šEvent processed successfully (72ms)
So when I imported your piston, the variable initialize section is missing.
When I deleted and re-created the variables, it came back.
What are you using for your IDE url?
Can you delete the variable and recreate it in the define section?
Really strange - never seen this before.
ErvinN
October 7, 2021, 2:51pm
7
Thanks, after I deleted the variable and also deleted the "set variable" line and recreated them, piston start working properly. Does it mean I have to do the same on all my about 70 pistons?
I'm using Chrome and Firefox latest versions to work on webcore.
Is that answered your question regarding of IDE url?
eibyer
October 7, 2021, 2:59pm
8
Strange thing is enclosing status ON or status OFF in quotes doesn't throw an error but then the state looks funky with the quotes without text modification.
Edit: Setting variable value using Expression "Status ON or OFF" works though.
ErvinN
October 7, 2021, 3:35pm
9
I tried to set it up also via Expression but that time (before the REPAIR) it was not working.
eibyer
October 7, 2021, 3:49pm
10
Ah that is strange. I did encounter the same invalid variable message you mentioned when I first imported your piston.
ErvinN
October 7, 2021, 3:54pm
11
Definitely there is some bug. I have to review all my 70 pistons if there are some affected one