Beijer Electronics (formerly QSI Corporation)

Manufacturer of Mobile Data and Human Machine Interface Terminals.
It is currently Wed Nov 22, 2017 5:46 am

All times are UTC - 7 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Interpreter stack blown
PostPosted: Thu Aug 23, 2007 10:11 am 
Offline
User avatar

Joined: Sat Aug 12, 2006 6:33 pm
Posts: 57
Location: Richmond, VA
in library --standard: formatfunctions line 303



This is the error I get now that I've moved a large library into Advanced Code and included it as a text file.



How can I learn more about what the problem is? I don't know how to find or view the standard library to see what the code is complaining about.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 23, 2007 10:25 am 
Offline
QSI Support
QSI Support
User avatar

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 881
Location: Salt Lake City, Utah
This one could be tricky to debug.



Usually this means that you have encountered some form of infinite recursion, (although extremely complex code pathing could cause this too)



Code:

func CallMe() returns integer

    return CallMe()

endfunc




This would trigger the error you are talking about if you call this function. Because CallMe() simply calls itself over and over until the system runs out of memory.



The tricky part is where you finally crashed. It was running code in natives.lib which is not easy to put a breakpoint in. This could still easily be a more sophisticated case of infinite recursion (imagine if CallMe called _FormatFloat() for each iteration). But is more difficult to track down.



Do you have any idea what your code is doing during the call to _FormatFloat (or _FormatAsHex or whatever function it is calling there)?

_________________
Jeremy
http://www.beijerinc.com


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 23, 2007 12:41 pm 
Offline
User avatar

Joined: Sat Aug 12, 2006 6:33 pm
Posts: 57
Location: Richmond, VA
This problem resolved itself when other problems with the workspace were corrected.


Top
 Profile  
 
PostPosted: Wed Feb 18, 2009 3:25 pm 
Offline

Joined: Thu Jan 17, 2008 6:51 am
Posts: 37
Location: Detroit, MI
Quote:
Exception 32778: Interpreter: Interpreter stack blown (severity: 2) ( in library --basic: labelv2 line 247)


This is what I'm seeing when attempting an ethernet connection on a Q55 terminal. At the moment, the SOAP packets aren't "keep alive", but when I use "keep alive", I don't see the error anymore. I don't have any deep recursion in my code. Anything else that could cause this?

_________________
---

Qlarity Foundry v2.5

BFF v1.023

Firmware v2.500


Top
 Profile  
 
PostPosted: Wed Feb 18, 2009 3:46 pm 
Offline
QSI Support
QSI Support
User avatar

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 881
Location: Salt Lake City, Utah
The error you are describing (in particular in that it seems to occur in the recalc function of the label object)

Have you, by any chance, overridden any validation functions in one or more label objects?

Are you able to duplicate this in Simulation Mode or just on the terminal?

Qlarity 2.60 has a couple of new features that can help detect these types of problems. These include: Sim View now halts on exception. This will allow you to view the call stack at the moment the exception is thrown and determine if you are inadvertently recursing or possibly have simply build an unusually deep stack.

Also, if you cannot duplicate this in Sim View in 2.60, you can make a special build of your software which will print the call stack in the green error screen. (Tools->Settings->Compiler->Extra Exception Tracking).

_________________
Jeremy
http://www.beijerinc.com


Top
 Profile  
 
PostPosted: Thu Feb 19, 2009 6:42 am 
Offline

Joined: Thu Jan 17, 2008 6:51 am
Posts: 37
Location: Detroit, MI
No, I haven't overridden any labelV2 validation functions. I have created a new template for a pared-down version to save processing time during updates, but nothing has changed in the library.

This exception is coming directly from the simulator.

I'm downloading Foundry 2.60 now...I'll let you know if I track this down. In the meantime, I'm open to any/all suggestions. Thanks!

_________________
---

Qlarity Foundry v2.5

BFF v1.023

Firmware v2.500


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 7 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group