 |
chamenas Wizard

Joined: 26 Mar 2008 Posts: 1547
|
Posted: Fri Nov 21, 2008 12:57 am
List Index Out of Bound Error |
I'm getting a List Index Out of Bounds Error (-1) whenever I try to open up today's logfile. Does that mean it's too big?
|
|
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Fri Nov 21, 2008 2:21 am |
I doubt it unless your computer doesn't have much RAM - is it a crash, or what? Post the crash dump, if so.
|
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Nov 21, 2008 2:42 am |
Also, remember to tell us exactly how you are opening the log file so we know more about what you are doing. My guess is that there is something specific in the logfile itself that is causing the crash and you'll probably need to email me the file so I can try to reproduce it. Especially if it has ANSI codes, or HTML tags in it (I'm assuming you are trying to open it in the Editor window)
|
|
|
|
 |
chamenas Wizard

Joined: 26 Mar 2008 Posts: 1547
|
Posted: Fri Nov 21, 2008 4:38 am |
| Quote: |
date/time : 2008-11-20, 23:31:14, 287ms
computer name : XXXXXX
user name : XXXXXX
registered owner : XXXXXXXXXXXXXXXXXXXXXXXXX
operating system : Windows XP Service Pack 2 build 2600
system language : English
system up time : 6 hours 33 minutes
program up time : 3 hours 35 minutes
processors : 2x Intel(R) Core(TM)2 Duo CPU T7100 @ 1.80GHz
physical memory : 2004/3063 MB (free/total)
free disk space : (C:) 16.47 GB
display mode : 1280x800, 32 bit
process id : $158
allocated memory : 48.69 MB
executable : cMUD.exe
exec. date/time : 2008-10-30 16:48
version : 2.37.0.0
compiled with : BCB 2006/07
madExcept version : 3.0h
contact name : XXXXXXXXXXXXXXXX
contact email : XXXXXXX
callstack crc : $7730bf27, $89403af0, $89403af0
exception number : 5
exception class : EListError
exception message : List index out of bounds (-1).
Main ($558):
0046e691 +0019 cMUD.exe Classes TList.Get
00b0d7bb +25cf cMUD.exe rvhtmlimport 3114 +840 TRvHtmlImporter.LoadHtml
00bb0067 +011b cMUD.exe zsRichMemo 2533 +16 TzsRichMemo.AddHtml
00baf8d0 +01ec cMUD.exe zsRichMemo 2385 +30 TzsRichMemo.LoadFromFile
00cfeca1 +00a9 cMUD.exe EditNew 753 +7 TEditorD.LoadFile
00cfee02 +00b2 cMUD.exe EditNew 770 +7 TEditorD.ActionOpenExecute
0047b6ef +000f cMUD.exe Classes TBasicAction.Execute
004cbded +0031 cMUD.exe ActnList TContainedAction.Execute
004ccab4 +0050 cMUD.exe ActnList TCustomAction.Execute
0047b5bb +0013 cMUD.exe Classes TBasicActionLink.Execute
006adb4e +0052 cMUD.exe dxBar 37239 +5 TdxBarItem.DoClick
006adacb +003b cMUD.exe dxBar 37227 +4 TdxBarItem.DirectClick
006ada88 +0018 cMUD.exe dxBar 37219 +1 TdxBarItem.Click
006ae7be +002a cMUD.exe dxBar 37676 +3 TdxBarButton.Click
006ad252 +0036 cMUD.exe dxBar 36901 +7 TdxBarItem.IsShortCut
00692ee0 +0040 cMUD.exe dxBar 22672 +6 TdxBarItemLinks.IsShortCut
006ad273 +0057 cMUD.exe dxBar 36904 +10 TdxBarItem.IsShortCut
00692ee0 +0040 cMUD.exe dxBar 22672 +6 TdxBarItemLinks.IsShortCut
0068eff6 +0006 cMUD.exe dxBar 20516 +0 TdxBar.IsShortCut
00687f69 +0025 cMUD.exe dxBar 16933 +1 IsBarManagerShortCut
006880a6 +0062 cMUD.exe dxBar 16967 +9 TdxBarManager.HandleShortCut
00680d80 +0020 cMUD.exe dxBar 12829 +1 HandleKey
00681242 +0182 cMUD.exe dxBar 12967 +34 MenuActivateIfNeeded
00681573 +0083 cMUD.exe dxBar 13076 +16 dxBarKeyboardHook
7c90eae0 +0010 ntdll.dll KiUserCallbackDispatcher
7c91312f +0069 ntdll.dll RtlUnicodeStringToAnsiString
7c812b94 +00b6 kernel32.dll GetVersionExA
error details:
Tried to open an html log in the Editor. Logger was currently running but it's never had a problem with that before. It happens in separate sessions as well. I've tired closing CMUD and restarting it, same thing.
|
Have no problems opening the file with the browser outside of CMUD
I'll PM the file link (I uploaded it) to Zugg, if you wan't me to e-mail it I can do that too. It has some personal info in it so I don't want to post it here.
Edit Vijilante: removed contact email address |
|
|
|
 |
chamenas Wizard

Joined: 26 Mar 2008 Posts: 1547
|
Posted: Fri Nov 21, 2008 3:51 pm |
Also, on the 19th, the log was screwy in that the logger didn't log anything. I quit, relogged back in and everything but to no avail. I tried removing the intro gag triggers since I thought they might have been it, but that didn't do anything either. It simply didn't log. I should have saved the file that was created but I didn't because I deleted it several times in hoping its recreation would fix it. So, you probably can't fix that unless it happens again, but it's worth mentioning.
|
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Nov 21, 2008 5:03 pm |
I got the file and reproduced the error. I'll add it to the bug list. It actually looks like the file is too big for the 3rd party HTML editor component that I'm using in the CMUD editor. The actual error was with a /span tag, but when I loaded the file into Firefox, my validation plugin didn't find any mismatched span tags, so I think the file was just overflowing some limit in the editor.
Actually, I had a lot of problems with the size of this file. All of my HTML editors took forever to load it. Most of my PHP tools were so slow in scrolling through the file that they were unusable. Even Dreamweaver had trouble with the size of the file. I just think that few tools are set up to handle huge HTML files like that, since they are mostly non-existent on the actual web, so most software hasn't been testing with huge files like that.
My Firefox HTML validator was eventually able to parse the file, and all it identified was that my A tags for hyperlinks were being written as MXP tag without the HREF="..." attribute. So I have fixed that in the next CMUD version.
Unfortunately, it doesn't look like this is going to get fixed anytime soon if it's a problem with my 3rd party HTML editor component. |
|
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sat Nov 22, 2008 5:37 am |
How big a file are we talking here, just out of curiosity?
|
|
|
|
 |
chamenas Wizard

Joined: 26 Mar 2008 Posts: 1547
|
Posted: Sat Nov 22, 2008 4:14 pm |
4.56 Megabytes.
Edit: So I'm sort of out of luck? |
|
|
|
 |
chamenas Wizard

Joined: 26 Mar 2008 Posts: 1547
|
Posted: Sun Nov 23, 2008 2:40 pm |
Another one of my log files screwed up in that it began to log the initial log in procedure but stops there even though I was on for long after that.
|
|
|
|
 |
chamenas Wizard

Joined: 26 Mar 2008 Posts: 1547
|
Posted: Sun Nov 23, 2008 11:08 pm |
Alright, so my logger has quit logging on me again just because I reconnected (and the reconnection -did- attempt to continue the log), there seems to be way too many problems and I'm thinking I should move back to ANSI color logging, though, if I remember correctly, that means the colors will be off again. And, all of my write log is in html, will that have to be changed too?
|
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Nov 24, 2008 4:59 pm |
If you are going to be generating log files that are so huge, then yes, you should probably go back to ANSI logging, and yes, you will lose any HTML color info and will have to change your #WRITELOG.
Or, you can look for another HTML viewer that doesn't have problems with huge HTML log files.
However, whether you are using HTML logging or not should not have any effect on whether or not your logger is "working", so it still sounds like a script problem somewhere. |
|
|
|
 |
chamenas Wizard

Joined: 26 Mar 2008 Posts: 1547
|
Posted: Mon Nov 24, 2008 7:06 pm |
I'm wondering if it might be related to that when it reconnects it sends #log without ever closing the log. Does sending #log after the log has started end it? Can this be fixed onConnect purposes?
Also, what sort of support to you get from your HTML editor thing. Will they fix it or am I screwed? |
|
|
|
 |
|
|
|