• SlyEdit, js memory with spell check

    From Android8675@1:103/705 to All on Tue Jun 18 07:53:44 2019
    Hey, getting:

    Reading dictionaries...!JavaScript C:\SBBS\exec\SlyEdit_Misc.js line 4498: out
    of memory
    !JavaScript C:\SBBS\exec\SlyEdit_Misc.js line 4505: out of memory

    When I try to spell check a message. Seems like a straight forward fix?

    MY SBBS.ini settings that seem relivant...

    JavaScriptMaxBytes =
    JavaScriptContextStack =
    JavaScriptTimeLimit=
    JavaScriptGcInterval =
    JavaScriptYieldInterval =

    all blank...
    --
    Android8675@ShodansCore

    ---
    þ Synchronet þ Shodan's Core @ ShodansCore.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nightfox@1:103/705 to Android8675 on Tue Jun 18 13:03:45 2019
    Re: SlyEdit, js memory with spell check
    By: Android8675 to All on Tue Jun 18 2019 07:53 am

    Reading dictionaries...!JavaScript C:\SBBS\exec\SlyEdit_Misc.js line
    4498:
    out of memory
    !JavaScript C:\SBBS\exec\SlyEdit_Misc.js line 4505: out of memory

    When I try to spell check a message. Seems like a straight forward fix?

    MY SBBS.ini settings that seem relivant...

    JavaScriptMaxBytes =
    JavaScriptContextStack =
    JavaScriptTimeLimit=
    JavaScriptGcInterval =
    JavaScriptYieldInterval =

    all blank...

    I don't think those should all be blank.. I'm not sure if they have defaults if they're left blank. Looking at the default sbbs.ini in CVS, I see the following:
    JavaScriptMaxBytes = 8M
    JavaScriptContextStack = 16K
    JavaScriptTimeLimit = 86400
    JavaScriptGcInterval = 100
    JavaScriptYieldInterval = 10000

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Nightfox on Tue Jun 18 17:00:14 2019
    Re: SlyEdit, js memory with spell check
    By: Nightfox to Android8675 on Tue Jun 18 2019 13:03:45

    I don't think those should all be blank.. I'm not sure if they have

    JavaScriptMaxBytes = 8M
    JavaScriptContextStack = 16K
    JavaScriptTimeLimit = 86400
    JavaScriptGcInterval = 100
    JavaScriptYieldInterval = 10000

    IIRC these defaults are applied if the values are absent from sbbs.ini (though Andy might just want to comment those lines out altogether).

    defaults if they're left blank. Looking at the default sbbs.ini in CVS, I

    Perhaps more relevant would be the values in your own sbbs.ini, since the script is running out of memory on his system but presumably not on your own. (Unless he's triggering some special scenario by spellchecking a certain word.)
    I know that I have these values set exceedingly high on my own system because do some wacky things with JS sometimes.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nightfox@1:103/705 to echicken on Tue Jun 18 17:10:39 2019
    Re: SlyEdit, js memory with spell check
    By: echicken to Nightfox on Tue Jun 18 2019 05:00 pm

    I don't think those should all be blank.. I'm not sure if they have

    JavaScriptMaxBytes = 8M
    JavaScriptContextStack = 16K
    JavaScriptTimeLimit = 86400
    JavaScriptGcInterval = 100
    JavaScriptYieldInterval = 10000

    IIRC these defaults are applied if the values are absent from sbbs.ini (though Andy might just want to comment those lines out altogether).

    defaults if they're left blank. Looking at the default sbbs.ini in
    CVS, I

    Perhaps more relevant would be the values in your own sbbs.ini, since the script is running out of memory on his system but presumably not on your own. (Unless he's triggering some special scenario by spellchecking a certain word.) I know that I have these values set exceedingly high on my own system because I do some wacky things with JS sometimes.

    I haven't changed mine (that I remember), but I suppose it's possible the defaults (and the values in CVS) have changed over time..

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nightfox@1:103/705 to Android8675 on Tue Jun 18 17:12:26 2019
    Re: SlyEdit, js memory with spell check
    By: Android8675 to All on Tue Jun 18 2019 07:53 am

    Reading dictionaries...!JavaScript C:\SBBS\exec\SlyEdit_Misc.js line
    4498:
    out of memory
    !JavaScript C:\SBBS\exec\SlyEdit_Misc.js line 4505: out of memory

    When I try to spell check a message. Seems like a straight forward fix?

    MY SBBS.ini settings that seem relivant...

    JavaScriptMaxBytes =
    JavaScriptContextStack =

    all blank...

    I don't remember ever changing mine, but these are the values I see in my sbbs.ini:
    JavaScriptMaxBytes = 16M
    JavaScriptContextStack = 32K

    JavaScriptTimeLimit=
    JavaScriptGcInterval =
    JavaScriptYieldInterval =

    I don't see the other settings in my sbbs.ini at all.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From mark lewis@1:3634/12.73 to Nightfox on Tue Jun 18 21:19:30 2019

    On 2019 Jun 18 17:10:38, you wrote to echicken:

    I haven't changed mine (that I remember), but I suppose it's possible
    the defaults (and the values in CVS) have changed over time..


    FWIW: here's that section from my sbbs.ini... it has some more details/explanations and has not been modified from the defaults... i've put blank lines between each one so word wrapping doesn't make a dogs breakfast out of it...


    ; JavaScript values can be specified here *and* in server-specific sections

    ; JavaScript values specified in server-specific sections will over-ride the global values

    ; Maximum allocation of memory per JS run-time:

    JavaScriptMaxBytes = 8M

    ; Maximum stack size per JS context:

    JavaScriptContextStack = 16K

    ; Maximum number of ticks (100ms) before auto-termination of script:

    JavaScriptTimeLimit = 864000

    ; Garbage Collection interval (in ticks):

    JavaScriptGcInterval = 100

    ; Time-slice yield interval (in ticks):

    JavaScriptYieldInterval = 10000

    ; Comma-separated list of load paths (relative to exec or mods directories):

    JavaScriptLoadPath = load



    and sbbsdefs.h contains the following javascript defaults... again with the blank lines inserted...


    #define JAVASCRIPT_MAX_BYTES (8*1024*1024)

    #define JAVASCRIPT_CONTEXT_STACK (16*1024)

    #define JAVASCRIPT_TIME_LIMIT (24*60*600) /* in 100ms ticks */

    #define JAVASCRIPT_YIELD_INTERVAL 10000

    #define JAVASCRIPT_GC_INTERVAL 100

    #define JAVASCRIPT_LOAD_PATH "load"

    #define JAVASCRIPT_LOAD_PATH_LIST "load_path_list"


    so yes, if there is no global or server specific javascript settings, the code has built in defaults which match those i show above...

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... Bulletin Broads Baud Better!
    ---
    * Origin: (1:3634/12.73)
  • From Android8675@1:103/705 to Nightfox on Wed Jun 19 08:42:02 2019
    Re: SlyEdit, js memory with spell check
    By: Nightfox to Android8675 on Tue Jun 18 2019 01:03 pm

    JavaScriptMaxBytes =
    JavaScriptContextStack =
    JavaScriptTimeLimit=
    JavaScriptGcInterval =
    JavaScriptYieldInterval =
    all blank...

    I don't think those should all be blank.. I'm not sure if they have defaults if they're left blank. Looking at the default sbbs.ini in CVS, I see the following:
    JavaScriptMaxBytes = 8M
    JavaScriptContextStack = 16K
    JavaScriptTimeLimit = 86400
    JavaScriptGcInterval = 100
    JavaScriptYieldInterval = 10000

    Thanks, should of checked the cvs version. Will try those and report back.

    -A.
    --
    Android8675@ShodansCore

    ---
    þ Synchronet þ Shodan's Core @ ShodansCore.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)