I took a quick look while eating lunch after shoveling some snow¡ Disclaimer: I don't know anything about this device or its 7400 line S+ module. I did notice that it has been substantially modified from the Crestron I2P module. You might want to talk to whomever made all those changes.
From a code perspective, the issue that appears to cause the error (and the loop) is that fnChangeStatus() is called with g_iTierCnt being a very large number (i.e. 65511). The check before the for() loop only checks that it is >0. I'll guess that the `tier count' is supposed to be a relative small number, 0 ¨C 8 if the I2P module is correct. Note that in the I2P module cMaxTierSteps = 8 and in the posted module cMaxTierSteps=6000. This constant is used to size the integer arrays that are modified in the for() loop. It is curious that in the error message is Bounds=8, not 6000.
There are lots of places where g_iTierCnt is written, sometimes absolutely (e.g. g_iTierCnt = 3) or relatively (e.g. g_iTierCnt = g_iTierCnt ¨C n). I'll guess that at some point one of these relative assignments caused it to cross the 0 boundary. You could start by adding a check in fnChangeStatus() to look for whatever the range ought to be and provide some trace info when the value is out of range. You could also localize the hunt by following the path of `now playing_but' to see where it enters and perhaps put checks on places where g_iTierCnt is modified in that path.
I do not know why a change to one of the databases might have stimulated the error. It looks more like code bugs, but perhaps both.
And now I'll stop because it's 7400 line S+ module that doesn't have a lot of comments and I'm done with lunch.
toggle quoted message
Show quoted text
--- In Crestron@..., "John" <john@...> wrote:
Hi all
Can anyone please help?? with an issue on the Naim NS02 server module (just uploaded this to the files section)
This module was working fine until the latest Crestron and device database updates, Now when I try and run the program I get a loop error, see below. I have tried re compiling the SIMPL+ and no errors show up, however as soon as I initiate the "now playing_but" of the module it puts a loop of data into the program with the following error message:
09:03:00 - 03-08-2013: TOD$ -> 030820130902590000
09:03:00 - 03-08-2013: [Console Data] : Error: Module S-2.9.2.4:S-9 : S2_Naim_audio_server_sophia_processor at line 1434: Integer Array STDATASTRUCT__IEXTTIERSEARCHISACTIVE overflow. Col = 65511. Bounds = 8
09:03:00 - 03-08-2013: [Console Data] : Error: Module S-2.9.2.4:S-9 : S2_Naim_audio_server_sophia_processor at line 1435: Integer Array STDATASTRUCT__ITIERSEARCHISACTIVE overflow. Col = 65511. Bounds = 8
09:03:00 - 03-08-2013: [Console Data] : Error: Module S-2.9.2.4:S-9 : S2_Naim_audio_server_sophia_processor at line 1434: Integer Array STDATASTRUCT__IEXTTIERSEARCHISACTIVE overflow. Col = 65510. Bounds = 8
09:03:00 - 03-08-2013: [Console Data] : Error: Module S-2.9.2.4:S-9 : S2_Naim_audio_server_sophia_processor at line 1435: Integer Array STDATASTRUCT__ITIERSEARCHISACTIVE overflow. Col = 65510. Bounds = 8
09:03:00 - 03-08-2013: [Console Data] : Error: Module S-2.9.2.4:S-9 : S2_Naim_audio_server_sophia_processor at line 1434: Integer Array STDATASTRUCT__IEXTTIERSEARCHISACTIVE overflow. Col = 65509. Bounds = 8
09:03:00 - 03-08-2013: [Console Data] : Error: Module S-2.9.2.4:S-9 : S2_Naim_audio_server_sophia_processor at line 1435: Integer Array STDATASTRUCT__ITIERSEARCHISACTIVE overflow. Col = 65509. Bounds = 8
09:03:00 - 03-08-2013: [Console Data] : Error: Module S-2.9.2.4:S-9 : S2_Naim_audio_server_sophia_processor at line 1434: Integer Array STDATASTRUCT__IEXTTIERSEARCHISACTIVE overflow. Col = 65508. Bounds = 8
09:03:00 - 03-08-2013: [Console Data] : Error: Module S-2.9.2.4:S-9 : S2_Naim_audio_server_sophia_processor at line 1435: Integer Array STDATASTRUCT__ITIERSEARCHISACTIVE overflow. Col = 65508. Bounds = 8
09:03:00 - 03-08-2013: [Console Data] : Error: Module S-2.9.2.4:S-9 : S2_Naim_audio_server_sophia_processor at line 1434: Integer Array STDATASTRUCT__IEXTTIERSEARCHISACTIVE overflow. Col = 65507. Bounds = 8
09:03:00 - 03-08-2013: [Console Data] : Error: Module S-2.9.2.4:S-9 : S2_Naim_audio_server_sophia_processor at line 1435: Integer Array STDATASTRUCT__ITIERSEARCHISACTIVE overflow. Col = 65507. Bounds = 8