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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Fizban1216
Apprentice


Joined: 03 Feb 2007
Posts: 170

PostPosted: Fri Jun 06, 2008 4:35 am   

[2.26] There must be at least one field.
 
When I create a new session and try to connect to it I get an error that pops up and tells me "There must be at least one field."
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Fri Jun 06, 2008 5:44 am   
 
Yeah. I actually saw this once, too. The steps that led to mine were:

1. Open up a blank session.
2. Import XML scripts
3. Open up Mapper and load a map
4. Close session window
5. Attempt to open up main session

At least, that's how I got it to show up.

Charneus
Reply with quote
Ghedemonas
Novice


Joined: 15 Aug 2007
Posts: 39

PostPosted: Fri Jun 06, 2008 4:31 pm   
 
Second possibility to reach it:

- Go in Package editor
- Open a package that has also a Main window
- Close the first Main window

-> Fault appears.

I did the following to repair it:

In the Menu, chose Window, then the name of the first Main Window.
Reply with quote
Zugg
MASTER


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

PostPosted: Fri Jun 06, 2008 5:37 pm   
 
I am still unable to reproduce this new error. If you are importing something, then I'll need to see exactly what you are importing. I took a look at the crash dumps related to this error and it seemed to indicate that people were running live on the MUD with triggers firing when they did the XML import, so that might matter too.

I tried opening my own package with a window and couldn't get it to fail either, but you need to tell me *exactly* what you are doing and more exactly how you are "closing the first main window", etc. I need to know exactly what you click on or what keys you are pressing. There are lots of ways to do the same things in CMUD and it might depend on exactly which method you are using to close a window.
Reply with quote
Brenex
Beginner


Joined: 13 May 2008
Posts: 25

PostPosted: Fri Jun 06, 2008 5:40 pm   
 
I have received this error about 3 or 4 times, once utilizing the package editor and another time when I quit the mud I was playing, went to File->Close All, double clicked another session, and then it occurred. When I find a way to reproduce it I will post it in this or a new topic.
Reply with quote
Brenex
Beginner


Joined: 13 May 2008
Posts: 25

PostPosted: Fri Jun 06, 2008 6:02 pm   
 
Alright Zugg I found a way to reproduce this bug in my case. Here is the procedure, tested with various sessions. Start CMUD, double click a session to open online. Open the package editor and then close the package editor. Type quit (or whatever the command may be to disconnect from the mud.) Press work offline in the new dialog box that opens. Go to File->Close All to close the windows and go back to the sessions screen. When I double click a new session I get that error. Hopefully it reproduces for you since it does this with all my sessions.

*EDIT* Sorry about the double post, should we just edit our previous post instead? Like I said I am new to posting bugs here and just want to make sure I get these out here for you to solve as quick as possible.
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Fri Jun 06, 2008 7:16 pm   
 
Seems like the common denominator here is Closing Windows. Might be worth looking into.

Charneus
Reply with quote
Anaristos
Sorcerer


Joined: 17 Jul 2007
Posts: 821
Location: California

PostPosted: Sat Jun 07, 2008 1:33 am   
 
OK, here is another way to get the error:
I copied some xml from one of the posts to test. I created a blank trigger setting, clicked on xml and pasted the xml into the box. When I tried to switch from xml to script, CMUD went into a (slow) loop posting the error message about at least one field being required.


EDIT: After re-starting CMUD, I went to the settings Editor and found that the pasted setting was there. This means that pasting into the xml box is not the problem in itself.
_________________
Sic itur ad astra.
Reply with quote
Fizban1216
Apprentice


Joined: 03 Feb 2007
Posts: 170

PostPosted: Sat Jun 07, 2008 6:06 pm   
 
Nope, definitely not XML related, I've had it do it on sessions with no classes, triggers, aliases etc. nada, It seems to require restarting the program to solve each time.
Reply with quote
Anaristos
Sorcerer


Joined: 17 Jul 2007
Posts: 821
Location: California

PostPosted: Sat Jun 07, 2008 6:13 pm   
 
With all due respect, Fizban, just because it didn't happen to you doesn't mean that it doesn't happen the way I described. I am not making any claims that XML is in any way involved. I am making the claim that when I pasted text into the XML box the error took place.

EDIT: the trigger code I pasted into the XML box is here. Give it a try. It is reproducible at will.
_________________
Sic itur ad astra.
Reply with quote
Fizban1216
Apprentice


Joined: 03 Feb 2007
Posts: 170

PostPosted: Sat Jun 07, 2008 6:23 pm   
 
Oh, I wasn't meaning to say it didn't happen under those circumstances. I simply meant it definitely can occur without ding anything relating to XML.
Reply with quote
IainMac
Wanderer


Joined: 28 Jan 2006
Posts: 60
Location: Scotland

PostPosted: Mon Jun 09, 2008 7:23 am   
 
For me I can reproduce this error by:
    Open an existing session.
    Open the settings editor then closed it.
    Open another session via the sessions drop down list button (it now breaks)

Since I can not get through my proxy to send the error report I include it here:
Code:

date/time         : 2008-06-09, 08:13:59, 436ms
computer name     : ***
user name         : ***
registered owner  : ***
operating system  : Windows XP Service Pack 2 build 2600
system language   : English
system up time    : 1 hour 22 minutes
program up time   : 23 seconds
processors        : 2x Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz
physical memory   : 2123/3071 MB (free/total)
free disk space   : (C:) 80.50 GB
display mode      : 1440x900, 32 bit
process id        : $cb8
allocated memory  : 31.26 MB
executable        : cMUDPro.exe
exec. date/time   : 2008-06-06 00:04
version           : 2.26.0.0
compiled with     : BCB 2006/07
madExcept version : 3.0h
contact name      : ***
contact email     : ***
callstack crc     : $bd3ed8a3, $0a85465b, $0a85465b
exception number  : 1
exception class   : EMemTableError
exception message : There must be at least one field.

Main ($e08):
00628869 +035 cMUDPro.exe  kbmMemTable  9754   +3 TkbmCustomMemTable.FindKey
00eb4952 +092 cMUDPro.exe  PkgDM        8139   +4 TPkg.FindKey
00ea2031 +021 cMUDPro.exe  PkgDM        2100   +3 TPkg.IsHidden
00eb4d13 +317 cMUDPro.exe  PkgDM        8192  +32 TPkg.TreeTableFilterRecord
00628c07 +013 cMUDPro.exe  kbmMemTable 10068   +1 TkbmCustomMemTable.DoOnFilterRecord
0062d33f +0fb cMUDPro.exe  kbmMemTable 13650  +49 TkbmCustomMemTable.FilterRecord
00627c56 +166 cMUDPro.exe  kbmMemTable  9199  +50 TkbmCustomMemTable.SwitchToIndex
00627d93 +053 cMUDPro.exe  kbmMemTable  9241   +8 TkbmCustomMemTable.SetIndexName
00ea0d9c +114 cMUDPro.exe  PkgDM        1685  +10 AttachIndexes
00ea0f03 +087 cMUDPro.exe  PkgDM        1696   +7 TPkg.ActivateDB
00ea1c60 +1cc cMUDPro.exe  PkgDM        1991  +31 TPkg.Open
00e5be7e +352 cMUDPro.exe  PrefDat      3333  +66 PkgData.Load
00d70eb6 +1f2 cMUDPro.exe  PARENT       2384 +108 TParentForm.NewWindow
00d751ef +3a3 cMUDPro.exe  PARENT       4027  +45 TParentForm.NewMUD
00d8197b +027 cMUDPro.exe  PARENT      11252   +4 TParentForm.SessionClick
006ad80e +032 cMUDPro.exe  dxBar       37236   +2 TdxBarItem.DoClick
006ad7ab +03b cMUDPro.exe  dxBar       37227   +4 TdxBarItem.DirectClick
006b1a3c +154 cMUDPro.exe  dxBar       39494  +32 TdxBarItemControl.ControlUnclick
006b4b1a +056 cMUDPro.exe  dxBar       41412   +6 TdxBarButtonControl.ControlUnclick
0069a65e +0fe cMUDPro.exe  dxBar       27163  +24 TCustomdxBarControl.WMLButtonUp
004bb0d7 +2bb cMUDPro.exe  Controls     5146  +83 TControl.WndProc
004bf0db +4fb cMUDPro.exe  Controls     7304 +111 TWinControl.WndProc
006a3a4a +002 cMUDPro.exe  dxBar       32032   +0 TdxBarControl.IsInternal
006a7a56 +012 cMUDPro.exe  dxBar       34038   +1 TdxBarSubMenuControl.IsInternal
0069ca5f +007 cMUDPro.exe  dxBar       28314   +1 TCustomdxBarControl.GetEquivalentParentBar
0069bcc2 +01a cMUDPro.exe  dxBar       27854   +6 TCustomdxBarControl.CanProcessMouseMessage
004be804 +02c cMUDPro.exe  Controls     7073   +3 TWinControl.MainWndProc
0047c448 +014 cMUDPro.exe  Classes     11583   +8 StdWndProc
7e4196c2 +00a USER32.dll                          DispatchMessageA
004a97b0 +0fc cMUDPro.exe  Forms        8105  +23 TApplication.ProcessMessage
004a97ea +00a cMUDPro.exe  Forms        8124   +1 TApplication.HandleMessage
004a9adf +0b3 cMUDPro.exe  Forms        8223  +20 TApplication.Run
00efd0f0 +088 cMUDPro.exe  cMUDPro       353  +20 initialization
7c91312f +069 ntdll.dll                           RtlUnicodeStringToAnsiString
7c812b94 +0b6 kernel32.dll                        GetVersionExA
Reply with quote
Arde
Enchanter


Joined: 09 Sep 2007
Posts: 605

PostPosted: Mon Jun 09, 2008 4:23 pm   
 
Ok, this bug today have crashed my primary session. While I fill-up the crash dump with my comments after, I've got an idea on how to recreate it.

The following sequence was tested in a test package and in the untitled session.


1) Start CMUD, hit Esc.
2) Enter at cmd line:
Code:
#CLASS TestClass;#ALIAS TestAlias {#SAY "This alias has a value"}

3) Press Ctrl+G to get the PE window
4) If TestClass class is not unfolded in the tree, unfold it

Now, carefully and accurately perform next 2 steps
5) Right-click on the alias name in the tree and select Copy
6) Right-click on the class name in the tree and select Paste
You will see an error message "Clipboard does not contain valid settings XML data" with "OK" button. When you click on it, your mouse pointer will look like hourglass. Hit Esc to close the PE and get normal mouse pointer.

7) Press Ctrl+G to get the Editor back on screen. You will see crash message "There must be at least one field".


P.S. If you want to see how good (or bad?) CMUD at handling commands with wrong syntax, enter at step 2 this script:
Code:
#CLASS TestClass;#ALIAS Test Alias

and repeat the procedure.
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Jun 09, 2008 5:57 pm   
 
OK, I'm getting this error all of the time now too when trying to paste XML and when opening various sessions. I have no idea what is causing it, but at least now I can reproduce it to figure out what I changed to cause this. Definitely a serious problem, so you'll see v2.27 soon this week.
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Jun 09, 2008 10:06 pm   
 
OK, found the bug and have it fixed for v2.27. I still have to work on some of the MXP color bugs with the new URL style, but it shouldn't be a problem getting 2.27 released later this week.
Reply with quote
Anaristos
Sorcerer


Joined: 17 Jul 2007
Posts: 821
Location: California

PostPosted: Thu Jun 12, 2008 12:02 am   
 
Just to make a record of it, there is another way I've found to get the error. I attempted to cut/paste a setting from a module to a class under the session window. When I did the paste I first got an error saying that there was no valid XML data in the Clipboard, this was followed by the one-field error. Also, when I hit ESC the Settings Editor closed. When I reopened it, I got an empty package back (not even a root!).
Reloading the application showed that the package was still there.

EDIT: I found that the first setting for the session window (lexically speakng) into which I attempted to do the paste, is now blank. So the paste did some clobbering.
_________________
Sic itur ad astra.

Last edited by Anaristos on Thu Jun 12, 2008 12:13 am; edited 1 time in total
Reply with quote
Zugg
MASTER


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

PostPosted: Thu Jun 12, 2008 12:12 am   
 
Yep, actually Anaristos, that is the exact method I used myself to reproduce this bug. But the bug was actually at a very low level part of the code, so there were a large number of ways to trigger it. As evidenced by the fact that 50% of the crash dumps for 2.26 are about this single bug ;)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion 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