|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Wed Sep 07, 2011 8:04 pm
[3.34]BUG: List index out of bounds |
For a long time, I've been trying to figure this out. Today, I was able to pinpoint what was causing this error.
1. Open up CMUD (or CMUDPro, it's present in both of them)
2. Create a new session (necessary, though you can do it with an existing session. Either way, cannot be untitled.)
3. Open up the Mapper.
4. Change the menu bar to remove the File menu (click the down arrow on the menu bar and untick 'File.')
5. Save session layout.
6. Close CMUD.
7. Reopen CMUD and choose newly created session.
It should pop up with a "List index out of bounds (-1)" error. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Wed Sep 07, 2011 8:43 pm |
It's not reproducible in this manner on my end.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Wed Sep 07, 2011 9:13 pm |
Odd, because every time I've done it on my end, it errors out... :\ I've posted the call stack before, but can post again if needed.
|
|
|
|
geniusclown Magician
Joined: 23 Apr 2003 Posts: 358 Location: USA
|
Posted: Wed Sep 07, 2011 10:08 pm |
I'm able to reproduce the error, under the conditions that (a) the file "button" is removed, and (b) some other "button" is present. If I turn off all of the "buttons," then there will be no error.
|
|
_________________ .geniusclown |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Wed Sep 07, 2011 11:22 pm |
Well, it should have been evident to leave the others alone - it only says to untick File.
I'm glad you were able to reproduce it, however. Makes me sure I'm not losing my mind. Since I rarely use the file menu, I remove it (as well as a couple others). |
|
|
|
geniusclown Magician
Joined: 23 Apr 2003 Posts: 358 Location: USA
|
Posted: Thu Sep 08, 2011 12:11 pm |
I was experimenting, trying to narrow down what causes the bug, is why I was removing other buttons as well. Hopefully knowing that the error does not appear if there are no options might help Zugg track it down and squash it, since it's obviously the core code and not something in the settings.
Additional information is that the changes carry over to other sessions. For the experiment, I opened CMUD and used my [blank] session that I use for code experimentation without affecting games I actually play, but I wasn't playing yesterday. This morning, I logged onto my game and got the error - the map menu buttons were as I left them yesterday in the other session. Should anything from "Save session layout" carry over to some different session? If not, this is an additional bug, perhaps another clue where the offensive code is. |
|
_________________ .geniusclown |
|
|
|
|
|