Danitegue / PCBRW_OLD

A repository with all the needed things to run and control BREWER instruments software, under a Pyhton enviroment.
0 stars 0 forks source link

Out of string space #7

Open lildevilx opened 5 years ago

lildevilx commented 5 years ago

Hi Guys,

I've been having some issues ever since @robhagemans latest update I got that fix the fatal error issue (2.0.1). After a couple days of running I'll run into a "out of string space in 3453" on 2 of the instrument i've been running PCBRW on. Usually when this happens, it is because the RU (used to restart GWbasic to clear the memory leak) wasn't working properly. after the error shows up, went ahead typed list 3453 and got the following, Chain Merge C$+E$, 3454, ALL, DELETE 10000-65529 Hope that might be some useful information. Let me know if you need anything else.

Thanks!

lildevilx commented 5 years ago

OOSS3453.TXT Attach is a log if it helps

Thanks~

Danitegue commented 5 years ago

Hello @lildevilx, is the RU a brewer program routine?, could you share it with us? regards.

lildevilx commented 5 years ago

Hello @lildevilx, is the RU a brewer program routine?, could you share it with us? regards.

Yes RU is a brewer routine, all it does is restart the environment help eliminate any memory leaks it was working fine prior to PCBasic 2.0.1

10000 REM ************ ru.rtn 04/08/2016 10:00:00 ************ 55555 REM Please keep line 10000 updated when changes are made. Volodya Savastiouk 55555 REM MKII/MKIII/MKIV Set Up and Repeat Auto Sequence mostly for DS calibrations 55555 REM !! NOTE: this routine will do (hp)hg only if the temperature changes between attempts !! 10020 REM 10030 REM ************************************************************* 10500 DATA ru 11000 CLOSE 8:OPEN "restart.dta" FOR INPUT AS 8 11010 INPUT#8, A$,B: CLOSE 8 11020 IF A$=JD$+YE$ AND TIMER-B<7200 THEN B$="Software was restarted less than 2 hrs ago, ignoring request to restart now.":GOSUB 3050:PRINT#4,B$: RETURN 11030 OPEN "restart.dta" FOR OUTPUT AS 8 11040 PRINT#8, JD$+YE$: PRINT#8, TIMER 11050 CLOSE 8 11060 IF Q14%=1 THEN B$="Giving SB time to complete motor movements.":GOSUB 3050:TA=60*160:GOSUB 7100 12000 RUN 65529 REM proper last line

Thanks ru.txt < - renamed with text to upload

robhagemans commented 5 years ago

Hi @lildevilx, could you try to describe what it means for the RU not to work properly? It looks like a fairly simple bit of code so I'm trying to understand what's going wrong with it

lildevilx commented 5 years ago

Hi @robhagemans The issue is that the program we're trying to run has a known memory leak, and for us to get around that we decided to create a snip bit of code that would restart dosbox(which is what we've been using) environment to eliminate the memory built up in the program.

At least usually when we run into the issue of out of string space usually ties to the memory leak issue.

Hope that explains it a little better and sorry for the long reply.