• DDMR: Error in data/error.log - Error: can't convert ["test", ""] to a

    From Keyop Troy@1:103/705 to GitLab issue in main/sbbs on Tue Mar 31 12:28:10 2026
    open https://gitlab.synchro.net/main/sbbs/-/issues/1107

    Getting this in my data/error.log:

    ```
    term Node 4 <REDACTED> !JavaScript ../xtrn/DDMsgReader/DDMsgReader.js line 6172: Error: can't convert ["test", ""] to an integer
    ```
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Eric Oulashin@1:103/705 to GitLab note in main/sbbs on Tue Mar 31 12:50:26 2026
    https://gitlab.synchro.net/main/sbbs/-/issues/1107#note_8714

    @Keyop I'm curious, what's on line 6172 in your copy of DDMsgReader.js? Because the one that's in the repository, I just would like to double-check that you're using the same copy. In the DDMsgReader.js that's in the Git repository right now, on that line, it does a cursor movement, and I wouldn't really expect that error to occur there. But if that's what you have, I can at least put some checks in place there.
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Keyop Troy@1:103/705 to GitLab note in main/sbbs on Tue Mar 31 13:43:34 2026
    https://gitlab.synchro.net/main/sbbs/-/issues/1107#note_8716

    console.gotoxy(originalCurPos);
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Eric Oulashin@1:103/705 to GitLab note in main/sbbs on Tue Mar 31 14:22:29 2026
    https://gitlab.synchro.net/main/sbbs/-/issues/1107#note_8717

    That's a bit bizarre, as I don't know where the ["test", ""] would be coming from. And the error suggests it's seeing an array of strings where the first string is "test" and the next is an empty string. DDMsgReader.js doesn't include "test" anywhere.. Also, when moving the cursor, it's using originalCurPos to store the original cursor position, which is only set just a bit earlier in the code with console.getxy(); - I don't see what would be causing this error. But I can put some checks in.

    My next question would be what the user was doing when this error was seen - Do you know? Are you able to replicate it? I'd like to know the steps to replicate this issue, if possible, which would help me determine the cause of the issue.
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Eric Oulashin@1:103/705 to GitLab note in main/sbbs on Tue Mar 31 15:37:37 2026
    https://gitlab.synchro.net/main/sbbs/-/issues/1107#note_8719

    @rswindell This doesn't make sense to me.. On line 6172, DDMsgReader does this:
    ```
    console.gotoxy(originalCurPos);
    ```
    And before that, on line 6128, originalCurPos is declared & assigned as follows:
    ```
    var originalCurPos = console.getxy();
    ```
    Can you think of anything that might cause the error reported in this issue? The only thing I can think of is that console.getxy() returned the array reported in the error, but I don't know why it would do that.
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Keyop Troy@1:103/705 to GitLab note in main/sbbs on Tue Mar 31 15:59:51 2026
    https://gitlab.synchro.net/main/sbbs/-/issues/1107#note_8720

    Ah Ive no idea what the user was doing. Just saw the message on my main bbs monitoring console when I finished work today.
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Tue Mar 31 18:09:20 2026
    https://gitlab.synchro.net/main/sbbs/-/issues/1107#note_8721

    What appears to have happened is `console.getxy()` returned `false` (which can happen, e.g. if a user disconnects), but when this value (stored in `originalCurPos`) is passed to `console.gotoxy()` the reported exception is nonsensical. So this is a bug in sbbs.
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Tue Mar 31 18:10:15 2026
    https://gitlab.synchro.net/main/sbbs/-/issues/1107#note_8723

    I was able to reproduce a similar nonsense error just by calling `console.gotoxy(false)`.
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Tue Mar 31 18:14:41 2026
    https://gitlab.synchro.net/main/sbbs/-/issues/1107#note_8724

    `console.gotoxy({})` also reports an unexpected exception/error.
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Tue Mar 31 20:44:22 2026
    https://gitlab.synchro.net/main/sbbs/-/issues/1107#note_8725

    Looking and thinking more about this, although the _content_ of the error message is a bug, the fact that the script is throwing an exception (and logging an error) should be expected because the script is calling `console.gotoxy(false)`: this function is *not* documented as supporting that calling convention. The script should be checking the return value of `console.getxy()` and either not using the return value or defaulting to some valid coordinate object, like maybe this:
    ```
    var originalCurPos = console.getxy() || { x:1, y:1 };
    ```
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab issue in main/sbbs on Sat Apr 4 14:47:58 2026
    close https://gitlab.synchro.net/main/sbbs/-/issues/1107
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Sat Apr 4 14:47:59 2026
    https://gitlab.synchro.net/main/sbbs/-/issues/1107#note_8756

    So this should be fixed in all respects now:
    - script (DDMR) no longer calls `console.gotoxy(false)`
    - SBBS JS `console.gotoxy()` now logs meaningful exception messages if called incorrectly.
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)