Subj : birthdaylist.js To : DesotoFireflite From : Digital Man Date : Mon May 16 2022 11:47:51 Re: birthdaylist.js By: DesotoFireflite to Digital Man on Mon May 16 2022 02:37 pm > >> You can > >> see the curser blinking on the remote end, and that's it. It's not > >> throwing any errors, it just locks up everytime. > > DM> Do you get the same behavior when running it using jsexec? > > Yes, heres a screen print. it gets to the last line, then locks > up the window with the curser blinking a "-" just under the last line. > > C:\SBBS\exec>jsexec birthdaylist > > JSexec v3.19c-Win32 master/0b34b299a - Execute Synchronet > Compiled Mar 20 2022 05:05:47 with MSC 1929 > > Loading configuration files from C:\sbbs\ctrl > JavaScript-C 1.8.5 2011-03-31 > JavaScript: Creating runtime: 167772160 bytes > > Reading script from C:\SBBS\exec\birthdaylist.js > C:\SBBS\exec\birthdaylist.js compiled in 0.00 seconds Okay, and then it just sits/spins at that point? > >> I have not made any changes or added > >> anything to the system in several weeks, so I can rule out operator > >> error on my part. I had one new user log in and register 0n 5/13/2022, > >> and I noticed it stopped working after that. I don't see anything in > >> his settings that would cause a problem. He did use a birthdate of > >> 19810101, so I changed that thinking that may be the problem, and no > >> change. I've also tried to use it using the sysop ;EXEC command, and > >> it just locks up the system also. For now I have just removed it, but > >> I'd like to solve the issue. Since it's not throwing any errors, is > >> there a way to debug it that would be easy for me to see what is going > >> on. Thanks in advance. > > DM> No immediate ideas. I probably start adding log() lines to > DM> exec/birthdaylist.js and load/birthdays.js to find out exactly where is > DM> locking or infinite-looping (more likely). > > Can you give me an example of a good log line. Still learning the js Stuff. Okay, here's an example (to birthdaylist.js): log("Loading birthdays.js"); // added var list = load({}, "birthdays.js", month, day); log("Loaded birthdays.js"); // added So when run 'jsexec birthdaylist' here with those added log lines: Reading script from /sbbs/exec/birthdaylist.js /sbbs/exec/birthdaylist.js compiled in 0.00 seconds Loading birthdays.js Loaded birthdays.js 45 Vertrauen users with birthdays in May: .... -- digital man (rob) Breaking Bad quote #5: Sometimes the forbidden fruit tastes the sweetest. - Hank Schrader Norco, CA WX: 71.1øF, 59.0% humidity, 7 mph SW wind, 0.00 inches rain/24hrs --- SBBSecho 3.15-Linux * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705) .