• console.printfile displaying unexpected data

    From Codefenix@1:103/705 to All on Wednesday, April 29, 2026 15:37:19
    I just noticed this really weird behavior with console.printfile recently. I am not sure when it started, but I'm currently running 3.21dd master/b3cec4b69 Mar 07 2026 01:38.

    Video of the problem:
    https://conchaos.synchro.net/media/printfile-example.mp4

    As the video shows, occasionally when using console.printfile to play a file containing cursor movement sequences, it will display data from... someplace other than the file intended. In the video, it seems to be from recently read messages. Other times, it's from random json data files in my web directory. It's wild.

    What's even more wild is, it only seems to happen with certain files, such as these .vt animations from artscene.textfiles.com (using an archived link since it seems to be dead now):

    https://web.archive.org/web/20251204152741/http://artscene.textfiles.com/vt100

    - bevis.butthead.vt
    - monorail.vt (the one shown in the video)

    I'm using AnsiView in the video to demonstrate, but it happens in my own scripts that use console.printfile as well.

    If I open the file using the File class and use console.putmsg to output the contents, then it shows normally and the problem never happens.

    Could console.printfile be recalling recently accessed memory that isn't getting closed? I dunno what else to think..

    |08ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
    |15 Ü|07 Ü |08Ü |11codefenix |08³
    |15 Û|07ÛÛÛ|08Û |09ConstructiveChaos BBS |08³
    |15 Þ|07ÜÛÜ|08Ý |01conchaos.synchro.net |08³ |08ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
    |07
    ---
    þ Synchronet þ -=[ ConstructiveChaos BBS | conchaos.synchro.net ]=-
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Codefenix on Wednesday, April 29, 2026 13:03:26
    Re: console.printfile displaying unexpected data
    By: Codefenix to All on Wed Apr 29 2026 03:37 pm

    I just noticed this really weird behavior with console.printfile recently. I am not sure when it started, but I'm currently running 3.21dd master/b3cec4b69 Mar 07 2026 01:38.

    Video of the problem: https://conchaos.synchro.net/media/printfile-example.mp4

    As the video shows, occasionally when using console.printfile to play a file containing cursor movement sequences, it will display data from... someplace other than the file intended. In the video, it seems to be from recently read messages. Other times, it's from random json data files in my web directory. It's wild.

    What's even more wild is, it only seems to happen with certain files, such as these .vt animations from artscene.textfiles.com (using an archived link since it seems to be dead now):

    https://web.archive.org/web/20251204152741/http://artscene.textfiles.com/vt1 00

    - bevis.butthead.vt
    - monorail.vt (the one shown in the video)

    I'm using AnsiView in the video to demonstrate, but it happens in my own scripts that use console.printfile as well.

    Could it be an issue with the clien/terminal side?

    If I open the file using the File class and use console.putmsg to output the contents, then it shows normally and the problem never happens.

    Could console.printfile be recalling recently accessed memory that isn't getting closed? I dunno what else to think..

    I guess it's possible, though console.printfile() is really a thin wrapper around putmsg(). Can you update to at least the latest release (v3.21e) of sbbs and also try with different terminal/clients?
    --
    digital man (rob)

    Synchronet/BBS Terminology Definition #2:
    ARS = Access Requirement Strings
    Norco, CA WX: 75.0øF, 38.0% humidity, 0 mph SSW wind, 0.00 inches rain/24hrs --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Codefenix on Wednesday, April 29, 2026 14:40:24
    Re: console.printfile displaying unexpected data
    By: Codefenix to All on Wed Apr 29 2026 03:37 pm

    - bevis.butthead.vt
    - monorail.vt (the one shown in the video)

    I downloaded those 2 files from http://artscene.textfiles.com/vt100/ (which is online) and added them a g-text file section and displayed them (using console.printfile) and see no issues. That's with SyncTERM 1.8 (the latest release) for Linux and SBBS v3.22a.
    --
    digital man (rob)

    This Is Spinal Tap quote #23:
    David St. Hubbins: I envy us.
    Norco, CA WX: 74.3øF, 45.0% humidity, 10 mph WNW wind, 0.00 inches rain/24hrs --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Codefenix@1:103/705 to Digital Man on Wednesday, April 29, 2026 18:01:37
    Re: console.printfile displaying unexpected data
    By: Digital Man to Codefenix on Wed Apr 29 2026 01:03 pm

    Could it be an issue with the clien/terminal side?

    Doesn't appear so. It's repeatable in Netrunner:

    https://conchaos.synchro.net/media/printfile-example-2.png

    I guess it's possible, though console.printfile() is really a thin wrapper around putmsg(). Can you update to at least the latest release (v3.21e) of sbbs and also try with different terminal/clients?

    I'll try updating to the latest dev update and repeat the tests.

    |08ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
    |15 Ü|07 Ü |08Ü |11codefenix |08³
    |15 Û|07ÛÛÛ|08Û |09ConstructiveChaos BBS |08³
    |15 Þ|07ÜÛÜ|08Ý |01conchaos.synchro.net |08³ |08ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
    |07
    ---
    þ Synchronet þ -=[ ConstructiveChaos BBS | conchaos.synchro.net ]=-
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Codefenix@1:103/705 to Digital Man on Wednesday, April 29, 2026 19:33:31
    Re: console.printfile displaying unexpected data
    By: Codefenix to Digital Man on Wed Apr 29 2026 06:01 pm

    Could it be an issue with the clien/terminal side?

    Doesn't appear so. It's repeatable in Netrunner:

    https://conchaos.synchro.net/media/printfile-example-2.png

    Also repeatable in IcyTerm:

    https://conchaos.synchro.net/media/printfile-example-3.png

    And in a plain terminal telnet session in an Ubuntu VM on my MacBook:

    https://conchaos.synchro.net/media/printfile-example-4.png

    I think this definitely points to something server-side.

    Will try that upgrade now, just wanted to try from as many wildly different clients as possible first.

    |08ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
    |15 Ü|07 Ü |08Ü |11codefenix |08³
    |15 Û|07ÛÛÛ|08Û |09ConstructiveChaos BBS |08³
    |15 Þ|07ÜÛÜ|08Ý |01conchaos.synchro.net |08³ |08ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
    |07
    ---
    þ Synchronet þ -=[ ConstructiveChaos BBS | conchaos.synchro.net ]=-
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Codefenix on Wednesday, April 29, 2026 17:39:33
    Re: console.printfile displaying unexpected data
    By: Codefenix to Digital Man on Wed Apr 29 2026 07:33 pm

    https://conchaos.synchro.net/media/printfile-example-4.png

    I think this definitely points to something server-side.

    Yup.

    Will try that upgrade now, just wanted to try from as many wildly different clients as possible first.

    Cool. I did some file compares and don't see any changes to the underlying printfile() and putmsg() C++ functions between git-sha 3bcec4b69 and the sbbs321e release. So I wouldn't be surprised if the problem persists after you update to either v3.21e or the current development version (3.22a), but do please let me know.

    Also, to simplify matters, can you test using a general text file section or by just invoking console.printf() directly (e.g. via the ;eval sysop command)? That way we're testing the same way. I've not been able to reproduce the symptom you describe/demonstrate using those methods.
    --
    digital man (rob)

    Steven Wright quote #13:
    How do you tell when you're out of invisible ink?
    Norco, CA WX: 71.0øF, 50.0% humidity, 10 mph WSW wind, 0.00 inches rain/24hrs --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Codefenix@1:103/705 to Digital Man on Thursday, April 30, 2026 10:28:23
    Re: console.printfile displaying unexpected data
    By: Digital Man to Codefenix on Wed Apr 29 2026 05:39 pm

    Cool. I did some file compares and don't see any changes to the underlying printfile() and putmsg() C++ functions between git-sha 3bcec4b69 and the sbbs321e release. So I wouldn't be surprised if the problem persists after you update to either v3.21e or the current development version (3.22a), but do please let me know.

    Issue indeed persists after the upgrade.

    Also, to simplify matters, can you test using a general text file section or by just invoking console.printf() directly (e.g. via the ;eval sysop command)? That way we're testing the same way. I've not been able to reproduce the symptom you describe/demonstrate using those methods.

    Sure thing, I added the files to general text files and played them there. Same thing happens.

    The problem is intermittent, so it may take several tries before the hallucinations begin. :) I used AnsiView in my initial demonstration since it optionally slows down animations, but I was able to see the unexpected characters appear when played through the general text file area as well.

    |08ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
    |15 Ü|07 Ü |08Ü |11codefenix |08³
    |15 Û|07ÛÛÛ|08Û |09ConstructiveChaos BBS |08³
    |15 Þ|07ÜÛÜ|08Ý |01conchaos.synchro.net |08³ |08ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
    |07
    ---
    þ Synchronet þ -=[ ConstructiveChaos BBS | conchaos.synchro.net ]=-
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Codefenix on Thursday, April 30, 2026 11:15:00
    Re: console.printfile displaying unexpected data
    By: Codefenix to Digital Man on Thu Apr 30 2026 10:28 am

    Re: console.printfile displaying unexpected data
    By: Digital Man to Codefenix on Wed Apr 29 2026 05:39 pm

    Cool. I did some file compares and don't see any changes to the underlying printfile() and putmsg() C++ functions between git-sha 3bcec4b69 and the sbbs321e release. So I wouldn't be surprised if the problem persists after you update to either v3.21e or the current development version (3.22a), but do please let me know.

    Issue indeed persists after the upgrade.

    Also, to simplify matters, can you test using a general text file section or by just invoking console.printf() directly (e.g. via the ;eval sysop command)? That way we're testing the same way. I've not been able to reproduce the symptom you describe/demonstrate using those methods.

    Sure thing, I added the files to general text files and played them there. Same thing happens.

    The problem is intermittent, so it may take several tries before the hallucinations begin. :) I used AnsiView in my initial demonstration since it optionally slows down animations, but I was able to see the unexpected characters appear when played through the general text file area as well.

    I haven't been able to reproduce the problem myself. Could you experiment with a couple of things to help me narrow it down?

    1. Add 'mode = P_OPENCLOSE' to the first line of your data/text/*.ini file (for the general text file section you're using to display these .vt files).

    2. Try increasing the PRINTFILE_MAX_LINE_LEN value in prntfile.cpp and rebuilding with that change.

    These changes are mutually exclusive (the second shouldn't have any impact when you do the first) - but it'd be good to know if one or both of these changes make the problem go away.
    --
    digital man (rob)

    Sling Blade quote #9:
    Doyle Hargraves: Morris here is a modern-day poet, kinda like in olden times. Norco, CA WX: 66.9øF, 61.0% humidity, 2 mph SSW wind, 0.00 inches rain/24hrs --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Codefenix@1:103/705 to Digital Man on Thursday, April 30, 2026 16:27:01
    Re: console.printfile displaying unexpected data
    By: Digital Man to Codefenix on Thu Apr 30 2026 11:15 am

    I haven't been able to reproduce the problem myself. Could you experiment with a couple of things to help me narrow it down?

    1. Add 'mode = P_OPENCLOSE' to the first line of your data/text/*.ini file (for the general text file section you're using to display these .vt files).

    Seems fixed by adding P_OPENCLOSE. Tried spamming both files multiple times in succession with this mode on, and haven't yet seen any weird data appear.

    Then I turned it back off and saw it reappear on the first try.

    I also tried adding P_OPENCLOSE to the console.printfile calls, and it similarly seems to have fixed it.

    I'll report back if I see it resurface.

    |08ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
    |15 Ü|07 Ü |08Ü |11codefenix |08³
    |15 Û|07ÛÛÛ|08Û |09ConstructiveChaos BBS |08³
    |15 Þ|07ÜÛÜ|08Ý |01conchaos.synchro.net |08³ |08ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
    |07
    ---
    þ Synchronet þ -=[ ConstructiveChaos BBS | conchaos.synchro.net ]=-
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Codefenix on Thursday, April 30, 2026 13:51:05
    Re: console.printfile displaying unexpected data
    By: Codefenix to Digital Man on Thu Apr 30 2026 04:27 pm

    Re: console.printfile displaying unexpected data
    By: Digital Man to Codefenix on Thu Apr 30 2026 11:15 am

    I haven't been able to reproduce the problem myself. Could you experiment with a couple of things to help me narrow it down?

    1. Add 'mode = P_OPENCLOSE' to the first line of your data/text/*.ini file (for the general text file section you're using to display these .vt files).

    Seems fixed by adding P_OPENCLOSE. Tried spamming both files multiple times in succession with this mode on, and haven't yet seen any weird data appear.

    Then I turned it back off and saw it reappear on the first try.

    I also tried adding P_OPENCLOSE to the console.printfile calls, and it similarly seems to have fixed it.

    I'll report back if I see it resurface.

    Well I'd like to fix the P_OPENCLOSE mode bug. If you disable the P_OPENCLOSE mode, but increase the PRINTFILE_MAX_LINE_LEN value in prinfile.cpp (e.g. to values bigger than your largest .vt file) and recompile, does that similarly make the problem go away?
    --
    digital man (rob)

    Synchronet/BBS Terminology Definition #8:
    BinkP = BinkD Protocol
    Norco, CA WX: 73.9øF, 51.0% humidity, 6 mph W wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Codefenix on Thursday, April 30, 2026 14:22:53
    Re: console.printfile displaying unexpected data
    By: Digital Man to Codefenix on Thu Apr 30 2026 01:51 pm

    Well I'd like to fix the P_OPENCLOSE mode bug. If you disable the P_OPENCLOSE mode, but increase the PRINTFILE_MAX_LINE_LEN value in prinfile.cpp (e.g. to values bigger than your largest .vt file) and recompile, does that similarly make the problem go away?

    Should be fixed now in git master.
    --
    digital man (rob)

    Steven Wright quote #5:
    82.7% of all statistics are made up on the spot.
    Norco, CA WX: 74.0øF, 53.0% humidity, 10 mph WNW wind, 0.00 inches rain/24hrs --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)