Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Bug reports ➜ Error msg when closing mush 4.64

Error msg when closing mush 4.64

It is now over 60 days since the last post. This thread is closed.     Refresh page


Pages: 1 2  

Posted by Broud   Netherlands  (10 posts)  Bio
Date Thu 04 Nov 2010 08:58 AM (UTC)

Amended on Thu 04 Nov 2010 03:54 PM (UTC) by Broud

Message
System: XP-SP3 Mushclient 4.64 with aardplugins (including the new mapper). GMCP enabled.

When closing mush i get an errormessage (Document timer window mushclient.exe application error. Instruction 0x0044ed34 references memory at 0x2d2d2d31).

When i then start the mushclient again, my mushwindow layout is back to initial. Hence it doesn't save my layout (among other things probably i haven't discovered....)
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #1 on Thu 04 Nov 2010 08:09 PM (UTC)
Message
I suggest you upgrade to 4.66.

http://www.gammon.com.au/forum/?id=10706

One of the things it fixes is a crash on close with multiple plugins.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Broud   Netherlands  (10 posts)  Bio
Date Reply #2 on Sun 07 Nov 2010 06:01 PM (UTC)
Message
upgraded to 4.66 today but to no avail. It's not a huge problem just annoying that i have set up all my windows again when launch mush.
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #3 on Sun 07 Nov 2010 06:48 PM (UTC)
Message
There is only one real reason I can see that might happen now. Could you check to see if any of your plugins does this:


SetSpeedWalkDelay


Or if some are not in Lua then:


SpeedWalkDelay


You could use Crimson Editor or similar, do a "find in files" of your plugins directory to quickly check if either of those words is there.

There is a possible problem that if, during world close, a plugin does try to change the speedwalk delay (something I wouldn't have expected to happen often) then the timer window was deleted earlier during the world close sequence, and that may cause the crash.

If that isn't it I may have to ask for a copy of the world file, plus all plugins you installed, so I can reproduce it and get to the bottom of it.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Broud   Netherlands  (10 posts)  Bio
Date Reply #4 on Mon 08 Nov 2010 04:43 AM (UTC)
Message
function sort(name, line, wildcards)
tempdelay = GetSpeedWalkDelay()
SetSpeedWalkDelay(125)
amsorting=1
EnableTriggerGroup("sortmain")
SendNoEcho("identify "..wildcards[1])
end

in a plugin named containersort.xml
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #5 on Mon 08 Nov 2010 04:49 AM (UTC)

Amended on Mon 08 Nov 2010 04:53 AM (UTC) by Nick Gammon

Message
What a guess, eh?

Well just to confirm, comment out that line, and try closing MUSHclient*. See if the problem goes away.


function sort(name, line, wildcards)
  tempdelay = GetSpeedWalkDelay()
--  SetSpeedWalkDelay(125)
  amsorting=1
  EnableTriggerGroup("sortmain")
  SendNoEcho("identify "..wildcards[1])
end



(Make sure that is the only place - it seems strange he is getting the current delay time and not putting it back).

[EDIT]

* You will need to reload the plugin for the change to take effect, so either do a "reinstall" from the plugins list, or you will have to restart MUSHclient twice - the first time to get the reloaded plugin, and the second time to see if the problem goes away.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #6 on Mon 08 Nov 2010 05:29 AM (UTC)
Message
I've released version 4.67 - just try that to see if it fixes the problem.


http://www.gammon.com.au/forum/?id=10719

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Broud   Netherlands  (10 posts)  Bio
Date Reply #7 on Tue 09 Nov 2010 09:52 AM (UTC)

Amended on Tue 09 Nov 2010 09:56 AM (UTC) by Broud

Message
installed 4.67. now my gmcp_handler won't load.

Run-time error
Plugin: GMCP_handler (called from world: Aardwolf)
Immediate execution
...\Program Files\MUSHclient\lua\json\decode\object.lua:70: attempt to call field 'Ca' (a nil value)
stack traceback:
...\Program Files\MUSHclient\lua\json\decode\object.lua:70: in function 'buildCapture'
...\Program Files\MUSHclient\lua\json\decode\object.lua:92: in function 'load_types'
C:\Program Files\MUSHclient\lua\json\decode.lua:84: in function 'buildDecoder'
C:\Program Files\MUSHclient\lua\json\decode.lua:97: in main chunk
[C]: in function 'require'
C:\Program Files\MUSHclient\lua\json.lua:5: in main chunk
[C]: in function 'require'
[string "Plugin"]:1: in main chunk
[WARNING] C:\Program Files\MUSHclient\worlds\plugins\GMCP_handler.xml
Line 79: Error parsing script (Cannot load)
[WARNING] C:\Program Files\MUSHclient\worlds\Aardwolf\Aardwolf.MCL
Line 2081: Error in file "C:\Program Files\MUSHclient\worlds\plugins\GMCP_handler.xml" (Not loaded)
MUSHclient mapper installed, version 2.0
Plugin 'GMCP_handler' not installed. Attempting to install it...
Run-time error
Plugin: GMCP_handler (called from world: Aardwolf)
Immediate execution
...\Program Files\MUSHclient\lua\json\decode\object.lua:70: attempt to call field 'Ca' (a nil value)
stack traceback:
...\Program Files\MUSHclient\lua\json\decode\object.lua:70: in function 'buildCapture'
...\Program Files\MUSHclient\lua\json\decode\object.lua:92: in function 'load_types'
C:\Program Files\MUSHclient\lua\json\decode.lua:84: in function 'buildDecoder'
C:\Program Files\MUSHclient\lua\json\decode.lua:97: in main chunk
[C]: in function 'require'
C:\Program Files\MUSHclient\lua\json.lua:5: in main chunk
[C]: in function 'require'
[string "Plugin"]:1: in main chunk
[WARNING] C:\Program Files\MUSHclient\worlds\plugins\GMCP_handler.xml
Line 79: Error parsing script (Cannot load)
--------------------------------------------------------------------------------
Plugin 'GMCP_handler' not installed. Please download and install it.
It is required for the correct operation of the Aardwolf_GMCP_Mapper plugin.
--------------------------------------------------------------------------------


The good news however is that the errormsg when closing is fixed, as is my window lay out :)
Thanks for all this btw.
Top

Posted by Bast   (78 posts)  Bio
Date Reply #8 on Tue 09 Nov 2010 02:13 PM (UTC)

Amended on Tue 09 Nov 2010 02:14 PM (UTC) by Bast

Message
It is because json checks lpeg to be < .9 which .10 is even though it is a new version.

change lua/json/decode/object.lua to look like this


Line 67:

	-- BEGIN LPEG < 0.9 SUPPORT
--	if DecimalLpegVersion < 0.9 then
--		objectItems = buildItemSequence(objectItem / applyObjectKey, ignored)
--		objectItems = lpeg.Ca(lpeg.Cc(false) / initObject * objectItems)
--	-- END LPEG < 0.9 SUPPORT
--	else
		objectItems = buildItemSequence(lpeg.Cg(objectItem), ignored)
		objectItems = lpeg.Cf(lpeg.Ct(0) * objectItems, rawset)
--	end


Line 24

--if DecimalLpegVersion < 0.9 then
--	function initObject()
--		return {}
--	end
--	function applyObjectKey(tab, key, val)
--		tab[key] = val
--		return tab
--	end
--end
-- END LPEG < 0.9 SUPPORT


Bast

Bast

Scripts: http://github.com/endavis
Top

Posted by Twisol   USA  (2,257 posts)  Bio
Date Reply #9 on Tue 09 Nov 2010 04:01 PM (UTC)
Message
Bast said:
It is because json checks lpeg to be < .9 which .10 is even though it is a new version.

Must be the (quote) "naive" version-handling I heard about on the mailing list. The author created a new version recently that fixes that, perhaps Nick can update the version MUSHclient ships with:

http://lua-users.org/lists/lua-l/2010-11/msg00047.html

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #10 on Tue 09 Nov 2010 07:04 PM (UTC)
Message
Well it's not *that* naive - 0.10 is indeed less than 0.9.

A bit silly to use numeric version numbers and then go from 0.9 to 0.1, eh? But that wasn't the fault of the LuaJSON author.

I've updated LuaJSON to version 1.2.1 in version 4.68 of MUSHclient, and tested with my trivial JSON encode/decode script. Seems to work OK.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #11 on Tue 09 Nov 2010 07:04 PM (UTC)
Message
Broud said:

The good news however is that the errormsg when closing is fixed, as is my window lay out :)


Glad to hear that. Hope you got the LuaJSON problem sorted too.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Twisol   USA  (2,257 posts)  Bio
Date Reply #12 on Tue 09 Nov 2010 07:27 PM (UTC)
Message
Nick Gammon said:
Well it's not *that* naive - 0.10 is indeed less than 0.9.

A bit silly to use numeric version numbers and then go from 0.9 to 0.1, eh? But that wasn't the fault of the LuaJSON author.

It's a fairly common versioning tactic, in fact. http://semver.org/

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #13 on Tue 09 Nov 2010 07:28 PM (UTC)
Message
I've released version 4.68 of MUSHclient which simply has an updated LuaJSON module. This was tested with GMCP on Aardwolf and seems to work OK.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #14 on Tue 09 Nov 2010 07:30 PM (UTC)
Message
Twisol said:

It's a fairly common versioning tactic, in fact. http://semver.org/


From that:


A normal version number MUST take the form X.Y.Z where X, Y, and Z are integers.


Well 0.10 is not in that format, eh?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


63,167 views.

This is page 1, subject is 2 pages long: 1 2  [Next page]

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.