Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
mluks
Newbie


Joined: 24 Apr 2007
Posts: 7

PostPosted: Mon Apr 30, 2007 9:29 pm   

[1.30] Find crashes
 
I've had this problem for awhile...


Open the package editor by clicking on triggers toolbar button
Ctrl-F to show the Find toolbar in the package editor
type some text to search for and hit Enter
click on a trigger in the result list and edit its script
save the trigger using the save button on the toolbar
click on the clear button on the find toolbar

gets an index out of loop error message.

It doesn't happen every time, but does happen alot.

So, if someone else could try this and see if it's a package corruption or a consistent bug???
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Mon Apr 30, 2007 10:10 pm   
 
I haven't got this to happen consistently yet, BUT it happens to me often.
Search for a string in your settings file.
Alter the script that was found removing the search word or phrase.
Click save.

Usually it lets you alter several scripts or even all of them. Then after clicking save the last time it errors.

Note: This happens when there are no more matches to the find usually.

Index out of bounds.
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue May 01, 2007 12:23 am   
 
Are you connected to the MUD when this happens? Or do you have any alarms or triggers that might be running in the background?
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Tue May 01, 2007 12:41 am   
 
Come to think yes I am connected to a mud when it happens and YES triggers are firing in the background. I was unable to reproduce the error when offline, or rather when I have consciously thought about testing this before reporting I have not been online.
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue May 01, 2007 2:03 am   
 
If you are editing triggers while online, you can try turning off the Auto Update option in the settings editor. That will prevent background changes from effecting what you are editing.

If you can come up with a simple test case with an alarm in the background that changes something that can reliably cause a crash when doing a search, then let me know. Otherwise it's going to be tough to reproduce and fix.
Reply with quote
mluks
Newbie


Joined: 24 Apr 2007
Posts: 7

PostPosted: Tue May 01, 2007 12:22 pm   
 
Ahh, yeah....can't reproduce it if I turn off my alarms. I'll try and come up with a test case
Reply with quote
mluks
Newbie


Joined: 24 Apr 2007
Posts: 7

PostPosted: Tue May 01, 2007 7:55 pm   
 
OK....got a test case.

I started with a blank package with just the defaults included. I was offline.
I created an alarm #ALARM {*10} {#say testing}
and an alias #AL testit {#say testing}

I opened the settings editor using the Alias button on the cMud toolbar
I used Ctrl-F to show the find toolbar.
I typed "test" in the find textbox and hit Enter.
I clicked on the script-edit window for the testit alias and typed an extra letter, saved it, then changed it back and saved it again.
I clicked clear on the find toolbar
Error in cMud.exe...An error occurred in the application. List index out of bounds (0).
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue May 01, 2007 8:32 pm   
 
Yep, confirmed! Thanks for the easy method to reproduce it. This should allow me to fix it (cross your fingers).
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue May 01, 2007 8:42 pm   
 
Actually, the bug above was related to clicking the "Clear" button on the toolbar. It didn't actually require an Alarm running in the background...any other settings would cause it too. The bug occurred whenever you used Search, then made a change to the setting, then clicked Clear. In any case, I got it fixed for today's update, so thanks for the report and clear instructions.

It's clear instructions like this that make it much easier for me to fix bugs.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net