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).
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).
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.
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.
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..
!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.
This is the error they're seeing:
!JavaScript ../xtrn/DDMsgReader/DDMsgReader.js line 14211: Error:
index read (10710) failed
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?).
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?
Sysop: | Coz |
---|---|
Location: | Anoka, MN |
Users: | 2 |
Nodes: | 4 (0 / 4) |
Uptime: | 140:17:59 |
Calls: | 166 |
Files: | 5,389 |
Messages: | 223,236 |