Sporadic error :Variable not defined

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
5 posts • Page 1 of 1
dbindernagel
Posts:161
Joined: Mon Feb 23, 2015 1:34 pm

Sporadic error :Variable not defined

Post by dbindernagel »

Hi,

we have the following problem:
(Version: PVSS V3.9)

- Sometimes part of an object based on the stdLib is not visible.
- The problem appears only sporadically. We have found no way to reproduce it. Changing the panel does solve the problem for the moment.
- This happens only on some clients (seems to be always the same clients, but not 100% sure).
- The log states that the variable "shapeForm" (defined in scopeLib in objects\\symbols_enum\\stdlib_enumObject_1.pnl) is not defined.
- The variable is normally written to inside the Initialize script of the "stdlib_enumObject_1.pnl" panel.
- Since the variable "shapeform" has no correct value (because of the error) the function "panelSetVisibility" (also inside scopeLib of stdlib_enumObject_1.pnl but called from somewhere out of the stdLib) does not set the correct shape visible.
- The object stdlib_enumObject_1.pnl has not been modified.
- The variable not defined error also appears for other objects.

Since this does seem to happen only on some clients I suspect the problems with the clients but I can't find any problems.
I also don't see how this could happen at all. The variable inside the scopeLib should always be defined.

Does anyone have an idea what could be the problem or hints how to troubleshoot this problem?
The "Assignment to this expression impossible" error also comes right before the "Variable not defined" error, but I'm not sure this is always the case, but it seems like it looking through the logs.

Code: Select all

PVSS00ui     (121), 2017.09.15 07:03:45.193, CTRL, WARNING,    78, Assignment to this expression impossible, 
    Module: mainModule_2
    Panel: aaa.pnl []
    Object: 2 named: "symbol_rect" of type: RECTANGLE
    In reference: objects\\symbols_enum\\stdlib_enumObject_1.pnl Group: 2 named: "PANEL_REF2"
      used in:    bbb.pnl Group: 477 named: "PANEL_REF477"
    Script: Initialize
    Line: 12, 
PVSS00ui     (121), 2017.09.15 07:03:45.194, CTRL, SEVERE,    176, Uncaught exception in thread startet at main: 
PVSS00ui     (121), 2017.09.15 07:03:45.193, CTRL, SEVERE,     73, Variable not defined, 
    Module: mainModule_2
    Panel: aaa.pnl []
    Object: 2 named: "symbol_rect" of type: RECTANGLE
    In reference: objects\\symbols_enum\\stdlib_enumObject_1.pnl Group: 2 named: "PANEL_REF2"
      used in:    bbb.pnl Group: 477 named: "PANEL_REF477"
    Script: Initialize
    Line: 12, shapeForm
	Stacktrace:
	     1: main() at [Module: mainModule_2 Panel: aaa.pnl Object: symbol_rect Script: Initialize]:12
Thanks in advance for any help.

Best regards
Dennis Bindernagel

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Sporadic error :Variable not defined

Post by mkoller »

Does your panel use removeSymbol() ? We once had an issue with that showing similar errors - although with a newer version.
Do you see other errors in the log from the UI ?

dbindernagel
Posts:161
Joined: Mon Feb 23, 2015 1:34 pm

Re: Sporadic error :Variable not defined

Post by dbindernagel »

The panel does not use "removeSymbol()" but it could be possible that other panels that are visible on the screen at the same time use this function.

I looked into old log files and apparently the problem is not new. :(

We currently do have other error messages with the client but in the log I found an old entry with the UI being started and the next entries being the error messages.
If I upload a file is it visible to everyone or just ETM? I could upload the complete log file if that would help.

Code: Select all

PVSS00ui     (121), 2013.02.19 10:18:39.242, SYS,  INFO,        1, Manager Start, PROJ, Client1, V 3.9 - 3.9  P120 linked at Dec  5 2012 12:03:37
PVSS00ui     (121), 2013.02.19 10:18:39.274, SYS,  INFO,        3, Trying to connect to, (SYS: 0 Data -num 0 CONN: 1) @ SERVERA-1:6897,SERVERA-2:6897$SERVERB-1:6897,SERVERB-2:6897
PVSS00ui     (121), 2013.02.19 10:18:39.342, SYS,  INFO,        4, Connected to, (SYS: 0 Data -num 0 CONN: 1) @ SERVERA-2 (10.40.178.1)
PVSS00ui     (121), 2013.02.19 10:18:39.365, SYS,  INFO,        4, Connected to, (SYS: 0 Data -num 0 CONN: 2) @ SERVERB-2 (10.40.178.4)
PVSS00ui     (121), 2013.02.19 10:18:39.455, REDU, INFO,        0, , Closing connection to redundant data during initialization, (SYS: 2 Data -num 0 CONN: 2)
PVSS00ui     (121), 2013.02.19 10:18:39.458, SYS,  INFO,      181, Closing connection to (SYS: 0 Data -num 0 CONN: 2)
PVSS00ui     (121), 2013.02.19 10:18:39.507, SYS,  INFO,       39, Connection lost, MAN: (SYS: 2 Data -num 0 CONN: 2), Connection closed
PVSS00ui     (121), 2013.02.19 10:18:47.744, SYS,  INFO,        6, Initialization by Data Manager finished
PVSS00ui     (121), 2013.02.19 10:18:47.748, SYS,  INFO,        3, Trying to connect to, (SYS: 2 Event -num 0 CONN: 1) @ SERVERA-1:6998,SERVERA-2:6998
PVSS00ui     (121), 2013.02.19 10:18:47.816, SYS,  INFO,        4, Connected to, (SYS: 2 Event -num 0 CONN: 1) @ SERVERA-2 (10.40.178.1)
PVSS00ui     (121), 2013.02.19 10:18:47.974, REDU, INFO,        0, , Closing connection to redundant event during initialization, (SYS: 2 Event -num 0 CONN: 2)
PVSS00ui     (121), 2013.02.19 10:18:47.980, SYS,  INFO,      102, Waiting for user names/passwords
PVSS00ui     (121), 2013.02.19 10:18:48.094, SYS,  INFO,      103, User names/passwords initialized
PVSS00ui     (121), 2013.02.19 10:18:48.233, SYS,  INFO,        0, , Using direct RDB queries
PVSS00ui     (121), 2013.02.19 10:18:48.307, SYS,  INFO,        4, Connected to, (SYS: 2 Data -num 0 CONN: 1) @ SERVERA (xxx.xxx.xxx.xxx)
PVSS00ui     (121), 2013.02.19 10:18:48.311, SYS,  INFO,        4, Connected to, (SYS: 2 Data -num 0 CONN: 2) @ SERVERB-2 (xxx.xxx.xxx.xxx)
PVSS00ui     (121), 2013.02.19 10:18:48.342, SYS,  INFO,        4, Connected to, (SYS: 2 Event -num 0 CONN: 2) @ SERVERB-2 (xxx.xxx.xxx.xxx)
PVSS00ui     (121), 2013.02.19 10:18:48.347, SYS,  INFO,        4, Connected to, (SYS: 2 Event -num 0 CONN: 1) @ SERVERA (xxx.xxx.xxx.xxx)
PVSS00ui     (121), 2013.02.19 10:19:08.357, SYS,  INFO,        4, Connected to, (SYS: 2 Data -num 0 CONN: 2) @ SERVERB (xxx.xxx.xxx.xxx)
PVSS00ui     (121), 2013.02.19 10:19:08.359, SYS,  INFO,        4, Connected to, (SYS: 2 Event -num 0 CONN: 2) @ SERVERB (xxx.xxx.xxx.xxx)
PVSS00ui     (121), 2013.02.19 10:31:16.492, CTRL, WARNING,    78, Assignment to this expression impossible, 
    Module: mainModule_2
    Panel: D:\\Projects\\xxx\\panels\\COMMON\\OVERVIEW\\Overview.pnl []
    Object: 2 named: "symbol_rect" of type: RECTANGLE
    In reference: objects\\symbols_enum\\stdlib_enumObject_1.pnl Group: 2 named: "PANEL_REF2"
      used in:    objects\\advS7_MOV\\MOV_3D.pnl Group: 221 named: "PANEL_REF379"
    Script: Initialize
    Line: 12, 
PVSS00ui     (121), 2013.02.19 10:31:16.493, CTRL, SEVERE,    176, Uncaught exception in thread startet at main: 
PVSS00ui     (121), 2013.02.19 10:31:16.492, CTRL, SEVERE,     73, Variable not defined, 
    Module: mainModule_2
    Panel: D:\\Projects\\xxx\\panels\\COMMON\\OVERVIEW\\Overview.pnl []
    Object: 2 named: "symbol_rect" of type: RECTANGLE
    In reference: objects\\symbols_enum\\stdlib_enumObject_1.pnl Group: 2 named: "PANEL_REF2"
      used in:    objects\\advS7_MOV\\MOV_3D.pnl Group: 221 named: "PANEL_REF379"
    Script: Initialize
    Line: 12, shapeForm
	Stacktrace:
	     1: main() at [Module: mainModule_2 Panel: COMMON\\OVERVIEW\\Overview.pnl Object: symbol_rect Script: Initialize]:12

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Sporadic error :Variable not defined

Post by leoknipp »

I had a look at the panel code.
The variable is defined in the ScopeLib and it is used in the Initialize script of the panel.

At the object "symbol_rect" I cannot see a Initialize script.
The only Initialize script is defined for the panel.

Are you using a modified panel with an Initialize script at the object?

Best Regards
Leopold Knipp
Senior Support Specialist

dbindernagel
Posts:161
Joined: Mon Feb 23, 2015 1:34 pm

Re: Sporadic error :Variable not defined

Post by dbindernagel »

No, the panel only exists in the stdlib folder and is not in any of our libraries or the project.
I also verified that there is no script at the object "symbol_rect". The Initialize is only on the panel.

I then performed a quick test on my notebook and inserted an error in the Initialize script of the panel (with 3.14, but should not make a difference) and the error message in the log also mentions symbol_rect.

Code: Select all

WCCOAui      (1), 2017.09.20 14:39:30.343, CTRL, SEVERE,    176, Uncaught exception in thread started at main: 
WCCOAui      (1), 2017.09.20 14:39:30.332, CTRL, SEVERE,     73, Variable not defined, 
    Module: _QuickTest_
    Panel: C:\\Projects\\Test\\panels\\NeueDatei.pnl []
    Object: 2 named: "symbol_rect" of type: RECTANGLE
    In reference: objects/symbols_enum/stdlib_enumObject_1.pnl Group: 0 named: "PANEL_REF0"
    Script: Initialize
    Line: 3, test
	Stacktrace:
	     1: main() at [Module: _QuickTest_ Panel: NeueDatei.pnl Object: symbol_rect Script: Initialize]:3

5 posts • Page 1 of 1