• MsgBase get_all_msg_heade

    From Nightfox@VERT/DIGDIST to Digital Man on Wed Mar 13 09:49:00 2019
    Hi DM,

    I've had a couple people mention to me an issue with my message reader when they try to up/downvote with it, and the line where it's reporting an issue is calling get_all_msg_headers() with a MsgBase object:

    var tmpHdrs = msgbase.get_all_msg_headers();

    This is the error they're seeing:
    !JavaScript ../xtrn/DDMsgReader/DDMsgReader.js line 14211: Error: index read (10710) failed

    Do you know what might cause that error when calling MsgBase's get_all_msg_headers() method?

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Nightfox on Wed Mar 13 12:41:00 2019
    Re: MsgBase get_all_msg_headers issue
    By: Nightfox to Digital Man on Wed Mar 13 2019 01:49 pm

    Hi DM,

    I've had a couple people mention to me an issue with my message reader when they try to up/downvote with it, and the line where it's reporting an issue is calling get_all_msg_headers() with a MsgBase object:

    var tmpHdrs = msgbase.get_all_msg_headers();

    This is the error they're seeing:
    !JavaScript ../xtrn/DDMsgReader/DDMsgReader.js line 14211: Error: index read (10710) failed

    Do you know what might cause that error when calling MsgBase's get_all_msg_headers() method?

    It should be fixed now. I was able to repro by just calling msgbase.get_all_msg_headers() twice in a row (the second attempt failed with the same/similar error).

    digital man

    Synchronet/BBS Terminology Definition #63:
    SSH = Secure Shell
    Norco, CA WX: 63.8øF, 47.0% humidity, 0 mph WSW wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to Digital Man on Wed Mar 13 13:04:00 2019
    Re: MsgBase get_all_msg_headers issue
    By: Digital Man to Nightfox on Wed Mar 13 2019 04:41 pm

    It should be fixed now. I was able to repro by just calling msgbase.get_all_msg_headers() twice in a row (the second attempt failed with the same/similar error).

    Ah cool, thanks.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Nightfox@VERT/DIGDIST to Digital Man on Thu Mar 14 16:12:00 2019
    Re: MsgBase get_all_msg_headers issue
    By: Digital Man to Nightfox on Wed Mar 13 2019 04:41 pm

    var tmpHdrs = msgbase.get_all_msg_headers();

    This is the error they're seeing:
    !JavaScript ../xtrn/DDMsgReader/DDMsgReader.js line 14211: Error:
    index read (10710) failed

    It should be fixed now. I was able to repro by just calling msgbase.get_all_msg_headers() twice in a row (the second attempt failed with the same/similar error).

    I updated my Synchronet binaries with the ones built today (March 14), but now I'm seeing a similar error on my BBS when my reader is calling get_all_msg_headers():

    !JavaScript ../xtrn/DigDist/MsgReader/DDMsgReader.js line 1392: Error: index re
    ad (1062) failed

    I wasn't seeing that before. I've overwritten my binaries now, so I'm not sure offhand which binaries I had where I wasn't seeing that error.

    Where it's failing in my script, I'm not calling that function twice, it's right after opening the messagebase.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Nightfox on Thu Mar 14 20:13:00 2019
    Re: MsgBase get_all_msg_headers issue
    By: Nightfox to Digital Man on Thu Mar 14 2019 08:12 pm

    Re: MsgBase get_all_msg_headers issue
    By: Digital Man to Nightfox on Wed Mar 13 2019 04:41 pm

    var tmpHdrs = msgbase.get_all_msg_headers();

    This is the error they're seeing:
    !JavaScript ../xtrn/DDMsgReader/DDMsgReader.js line 14211: Error:
    index read (10710) failed

    It should be fixed now. I was able to repro by just calling msgbase.get_all_msg_headers() twice in a row (the second attempt failed with the same/similar error).

    I updated my Synchronet binaries with the ones built today (March 14), but now I'm seeing a similar error on my BBS when my reader is calling get_all_msg_headers():

    !JavaScript ../xtrn/DigDist/MsgReader/DDMsgReader.js line 1392: Error: index re
    ad (1062) failed

    I wasn't seeing that before. I've overwritten my binaries now, so I'm not sure offhand which binaries I had where I wasn't seeing that error.

    The problem I fixed in js_msgbase.c rev 1.230 (Mar-13-2019 UTC) was introduced in rev 1.226 of js_msgbase.c (Feb-12-2019). Calling any JS MsgBase method that read from the index file before calling the get_all_msg_headers() method would cause the error. I confirmed the error and the fix.

    Where it's failing in my script, I'm not calling that function twice, it's right after opening the messagebase.

    That's weird. Calling get_msg_headers() right after opening the messagebase did not cause any error for me, nor should it have (the file pointer would be at the beginning the file by default). I wrote a simple little script to executing JSexec to 1. reproduce the error and 2. confirm the fix.

    digital man

    This Is Spinal Tap quote #29:
    I find lost luggage. I locate mandolin strings in the middle of Austin!
    Norco, CA WX: 54.9øF, 25.0% humidity, 4 mph E wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to Digital Man on Fri Mar 15 08:54:00 2019
    Re: MsgBase get_all_msg_headers issue
    By: Digital Man to Nightfox on Fri Mar 15 2019 12:13 am

    get_all_msg_headers():

    !JavaScript ../xtrn/DigDist/MsgReader/DDMsgReader.js line 1392:
    Error: index re
    ad (1062) failed

    The problem I fixed in js_msgbase.c rev 1.230 (Mar-13-2019 UTC) was introduced in rev 1.226 of js_msgbase.c (Feb-12-2019). Calling any JS MsgBase method that read from the index file before calling the get_all_msg_headers() method would cause the error. I confirmed the error and the fix.

    Where it's failing in my script, I'm not calling that function twice,
    it's right after opening the messagebase.

    That's weird. Calling get_msg_headers() right after opening the messagebase did not cause any error for me, nor should it have (the file pointer would be at the beginning the file by default). I wrote a simple little script to executing JSexec to 1. reproduce the error and 2. confirm the fix.

    It seems to be inconsistent - I'm not getting that error with every sub-board, only some of them. I'm not sure if I might have some sub-board corruption somehow..

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Nightfox on Fri Mar 15 08:57:00 2019
    Re: MsgBase get_all_msg_headers issue
    By: Nightfox to Digital Man on Fri Mar 15 2019 12:54 pm

    Re: MsgBase get_all_msg_headers issue
    By: Digital Man to Nightfox on Fri Mar 15 2019 12:13 am

    get_all_msg_headers():

    !JavaScript ../xtrn/DigDist/MsgReader/DDMsgReader.js line 1392:
    Error: index re
    ad (1062) failed

    The problem I fixed in js_msgbase.c rev 1.230 (Mar-13-2019 UTC) was introduced in rev 1.226 of js_msgbase.c (Feb-12-2019). Calling any JS MsgBase method that read from the index file before calling the get_all_msg_headers() method would cause the error. I confirmed the error and the fix.

    Where it's failing in my script, I'm not calling that function twice,
    it's right after opening the messagebase.

    That's weird. Calling get_msg_headers() right after opening the messagebase did not cause any error for me, nor should it have (the file pointer would be at the beginning the file by default). I wrote a simple little script to executing JSexec to 1. reproduce the error and 2. confirm the fix.

    It seems to be inconsistent - I'm not getting that error with every sub-board, only some of them. I'm not sure if I might have some sub-board corruption somehow..

    What happens if you run chksmb on those sub-boards?

    digital man

    Synchronet "Real Fact" #101:
    Alternate and loadable font support was added to Synchronet in February 2018. Norco, CA WX: 67.3øF, 24.0% humidity, 10 mph ENE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to Digital Man on Fri Mar 15 09:07:00 2019
    Re: MsgBase get_all_msg_headers issue
    By: Digital Man to Nightfox on Fri Mar 15 2019 12:13 am

    !JavaScript ../xtrn/DigDist/MsgReader/DDMsgReader.js line 1392:
    Error: index re
    ad (1062) failed

    I wasn't seeing that before. I've overwritten my binaries now, so I'm
    not sure offhand which binaries I had where I wasn't seeing that
    error.

    Where it's failing in my script, I'm not calling that function twice,
    it's right after opening the messagebase.

    That's weird. Calling get_msg_headers() right after opening the messagebase did not cause any error for me, nor should it have (the file pointer would be at the beginning the file by default). I wrote a simple little script to executing JSexec to 1. reproduce the error and 2. confirm the fix.

    It seems that many of my messagebases had corruption in them (particularly, most of them were FidoNet areas). I ran fixsmb on those and it seems to be resolved.

    Another sub-board where it's having that error though is another one where the messagebase files don't exist (possibly because nobody has posted in there yet?).

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Hustler@VERT/HAVENS to Digital Man on Fri Mar 15 15:32:00 2019
    Re: MsgBase get_all_msg_headers issue
    By: Digital Man to Nightfox on Fri Mar 15 2019 12:13 am


    This is the error they're seeing:
    !JavaScript ../xtrn/DDMsgReader/DDMsgReader.js line 14211: Error:
    index read (10710) failed

    I know longer see this error and voting works again. Thanks! I think upvoting/Downvoting is a great addition to Syncrhonet BBS. That's my 2 cents anwayz

    HusTler

    Hustler

    ... If a circuit cannot fail, it will.

    ---
    þ Synchronet þ Havens BBS havens.synchronetbbs.org
  • From Digital Man@VERT to Nightfox on Fri Mar 15 11:11:00 2019
    Re: MsgBase get_all_msg_headers issue
    By: Nightfox to Digital Man on Fri Mar 15 2019 01:07 pm

    Re: MsgBase get_all_msg_headers issue
    By: Digital Man to Nightfox on Fri Mar 15 2019 12:13 am

    !JavaScript ../xtrn/DigDist/MsgReader/DDMsgReader.js line 1392:
    Error: index re
    ad (1062) failed

    I wasn't seeing that before. I've overwritten my binaries now, so I'm
    not sure offhand which binaries I had where I wasn't seeing that
    error.

    Where it's failing in my script, I'm not calling that function twice,
    it's right after opening the messagebase.

    That's weird. Calling get_msg_headers() right after opening the messagebase did not cause any error for me, nor should it have (the file pointer would be at the beginning the file by default). I wrote a simple little script to executing JSexec to 1. reproduce the error and 2. confirm the fix.

    It seems that many of my messagebases had corruption in them (particularly, most of them were FidoNet areas). I ran fixsmb on those and it seems to be resolved.

    I'll see if I can make it more tolerant of corrupted message bases.

    Another sub-board where it's having that error though is another one where the messagebase files don't exist (possibly because nobody has posted in there yet?).

    It shouldn't do that. What's the exact error message in that case?

    digital man

    This Is Spinal Tap quote #36:
    Bobbi Flekman: Money talks, and bullshit walks.
    Norco, CA WX: 70.5øF, 23.0% humidity, 12 mph E wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to Digital Man on Fri Mar 15 12:47:00 2019
    Re: MsgBase get_all_msg_headers issue
    By: Digital Man to Nightfox on Fri Mar 15 2019 03:11 pm

    Another sub-board where it's having that error though is another one
    where the messagebase files don't exist (possibly because nobody has
    posted in there yet?).

    It shouldn't do that. What's the exact error message in that case?

    After checking again, I'm not sure that was the case. It looks like I have some old messagebase files leftover after changing the internal code prefix of one of my message groups.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com