• Enigma crash on message wrap

    From CyntaxX@21:4/113 to NuSkooler on Sun Feb 4 08:09:21 2018
    I went to type out a test message and on the first line once it reached the end, Enigma crashed and gave this error:

    home/pi/enigma-bbs/core/multi_line_edit_text_view.js:437
    if(lastCol >= firstWrapRange.start && lastCol <=firstWrapRange.end) {
    ^

    TypeError: Cannot read property 'start' of undefined
    at MultiLineEditTextView.insertCharactersInText (/home/pi/enigma-bbs/core/multi_line_edit_text_view.js:437:32)
    at MultiLineEditTextView.keyPressCharacter (/home/pi/enigma-bbs/core/multi_line_edit_text_view.js:661:9)
    at MultiLineEditTextView.onKeyPress (/home/pi/enigma-bbs/core/multi_line_edit_text_view.js:1182:8)
    at TelnetClient.ViewController.clientKeyPressHandler (/home/pi/enigma-bbs/core/view_controller.js:83:22)
    at emitTwo (events.js:111:20)
    at TelnetClient.emit (events.js:191:7)
    at bufPart (/home/pi/enigma-bbs/core/client.js:393:11)
    at Array.forEach (native)
    at TelnetClient.clientData (/home/pi/enigma-bbs/core/client.js:275:7)
    at emitOne (events.js:96:13)
    at TelnetClient.emit (events.js:188:7)

    Is this something not setup on my system?

    --- Mystic BBS v1.12 A38 2018/01/01 (Raspberry Pi/32)
    * Origin: Digital Wurmhole | digitalwurmhole.ddns.net:2323 (21:4/113)
  • From CyntaxX@21:4/113 to NuSkooler on Sun Feb 4 08:23:06 2018
    On 02/04/18, CyntaxX said the following...

    I went to type out a test message and on the first line once it reached the end, Enigma crashed and gave this error:

    Okay so I figured out how to cause it to do this crash. I tested writing a message today no problems at all. However, last night in my initial test message I entered a pipe color code just to see if it would work and by the time I got to the end of the line, it spit out that error and crashed. Again, today I tested entering a |08and |07carried on with the message to the end of the line and it crashed again...

    So hopefully that is helpful to you.

    --- Mystic BBS v1.12 A38 2018/01/01 (Raspberry Pi/32)
    * Origin: Digital Wurmhole | digitalwurmhole.ddns.net:2323 (21:4/113)
  • From RiPuk@21:1/136 to CyntaxX on Sun Feb 4 14:43:12 2018
    Okay so I figured out how to cause it to do this crash. I tested writing a message today no problems at all. However, last night in my initial test message I entered a pipe color code just to see if it would work and by the time I got to the end of the line, it spit out that error and crashed. Again, today I tested entering a and carried on
    with the message
    to the end of the line and it crashed again...

    What version of ENiGMA are you running? master or 0.0.9-alpha (or something else entirely?) :)

    --- ENiGMA 1/2 v0.0.9-alpha (linux; x64; 8.9.4)
    * Origin: fORCE9 BBS - London, UK - bbs.force9.org (21:1/136)
  • From CyntaxX@21:4/113 to RiPuk on Sun Feb 4 10:23:14 2018
    On 02/04/18, RiPuk said the following...

    What version of ENiGMA are you running? master or 0.0.9-alpha (or somethin else entirely?) :)

    I installed using the installation script and upon logging into Enigma it
    shows 0.0.8-alpha currently. Judging by your origin line you're 0.0.9-alpha.
    Do I need an update?

    --- Mystic BBS v1.12 A38 2018/01/01 (Raspberry Pi/32)
    * Origin: Digital Wurmhole | digitalwurmhole.ddns.net:2323 (21:4/113)
  • From NuSkooler@21:1/121 to CyntaxX on Sun Feb 4 10:21:26 2018
    I installed using the installation script and upon logging into Enigma it shows 0.0.8-alpha currently. Judging by your origin line you're 0.0.9-alpha. Do I need an update?

    I'd stick with 0.0.8-alpha at least until you're more comfortable since 0.0.9-alpha gets constant updates.

    The stack and info you provided should be enough to find and squash the bug, and I'll back port it to master (0.0.8-alpha) also.





    --- ENiGMA 1/2 v0.0.9-alpha (linux; x64; 8.9.4)
    * Origin: Xibalba -+- xibalba.l33t.codes:44510 (21:1/121)
  • From NuSkooler@21:1/121 to CyntaxX on Sun Feb 4 10:56:35 2018
    Is this something not setup on my system?

    FWIW, I can easily reproduce this now. I have to AFK for a bit, but I'll get a fix in ASAP. Another FWIW: I have on my ToDo list to add support for pipe codes
    in the MultiLineTextEditView, which is the backing for the FSE. The idea is to
    have for "live" pipe codes when it's implemented.





    --- ENiGMA 1/2 v0.0.9-alpha (linux; x64; 8.9.4)
    * Origin: Xibalba -+- xibalba.l33t.codes:44510 (21:1/121)
  • From CyntaxX@21:4/113 to NuSkooler on Sun Feb 4 15:04:00 2018
    On 02/04/18, NuSkooler said the following...
    FWIW, I can easily reproduce this now. I have to AFK for a bit, but I'll get a fix in ASAP. Another FWIW: I have on my ToDo list to add support
    for pipe codes in the MultiLineTextEditView, which is the backing for
    the FSE. The idea is to have for "live" pipe codes when it's implemented.


    I assume by "live" pipe codes that the color will change right then? If so, that's freaking cool.

    --- Mystic BBS v1.12 A38 2018/01/01 (Raspberry Pi/32)
    * Origin: Digital Wurmhole | digitalwurmhole.ddns.net:2323 (21:4/113)
  • From NuSkooler@21:1/121 to CyntaxX on Sun Feb 4 17:45:59 2018
    I assume by "live" pipe codes that the color will change right then? If so, that's freaking cool.

    That's the plan. Right now with the bug you found I can either re-work a few things, or just start down the path of implementing that. I don't see a minimal
    fix as-is.



    --- ENiGMA 1/2 v0.0.9-alpha (linux; x64; 8.9.4)
    * Origin: Xibalba -+- xibalba.l33t.codes:44510 (21:1/121)