Gammon Forum
Entire forum
MUSHclient
Bug reports
mush closed without saying anything
mush closed without saying anything
|
It is now over 60 days since the last post. This thread is closed.
  Refresh page
Posted by
| Jing Wu
Australia (35 posts) bio
|
Date
| Tue 24 Jun 2008 03:44 PM (UTC) |
Message
| I don't what happened to my Mush Client v4.24 (on windows 2003).
Once it runs a period of time, then it suddenly closed without saying anyting.
here is the msg i copyed from windows Event Log:
0000: 41 70 70 6c 69 63 61 74 Applicat
0008: 69 6f 6e 20 46 61 69 6c ion Fail
0010: 75 72 65 20 20 4d 55 53 ure MUS
0018: 48 63 6c 69 65 6e 74 2e Hclient.
0020: 65 78 65 20 34 2e 30 2e exe 4.0.
0028: 32 34 2e 30 20 69 6e 20 24.0 in
0030: 4d 55 53 48 63 6c 69 65 MUSHclie
0038: 6e 74 2e 65 78 65 20 34 nt.exe 4
0040: 2e 30 2e 32 34 2e 30 20 .0.24.0
0048: 61 74 20 6f 66 66 73 65 at offse
0050: 74 20 30 30 30 31 30 32 t 000102
0058: 33 37 37 |
Kernel Development | top |
|
Posted by
| Jing Wu
Australia (35 posts) bio
|
Date
| Reply #1 on Tue 24 Jun 2008 04:41 PM (UTC) |
Message
| the error address is: 0x00010237
i used Ollydbg to trace the address, (0x00410237
), the code in this address is executed when active a timer.
00410237 |. 3978 F8 |CMP DWORD PTR DS:[EAX-8],EDI
DS:[EAX-8] is stored the timer lable
i don't know what happen, hope this information will help you.
|
Kernel Development | top |
|
Posted by
| Nick Gammon
Australia (22,975 posts) bio
Forum Administrator |
Date
| Reply #2 on Tue 24 Jun 2008 08:58 PM (UTC) |
Message
| Do you use the spell checker?
A problem was fixed recently where the "progress bar" which appears during loading the spell checker would have a fault if it was garbage-collected by the script engine, which might occur somewhat later.
Try upgrading to the latest version:
http://www.gammon.com.au/forum/?id=8728
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
Posted by
| Jing Wu
Australia (35 posts) bio
|
Date
| Reply #3 on Wed 25 Jun 2008 02:23 AM (UTC) |
Message
| I don't use the spell checker.
v4.27 still has this problem.
i wanna try v4.29, however, it didn't work in Windows2003 (closed after showing the mush logo), while it is OK in WinXP.
I think this problem is caused by timer. In my lua script, I call these functions very often:
---- begin code ----
function Helper:ResetTimer(name, interval)
assert(IsTimer(name), "timer doesn't exist")
EnableTimer(name, false)
local hours = math.floor(interval / 3600)
interval = interval - (hours * 3600)
local minutes = math.floor(interval / 60)
local seconds = interval - (minutes * 60)
SetTimerOption(name, "hour", hours)
SetTimerOption(name, "minute", minutes)
SetTimerOption(name, "second", seconds)
EnableTimer(name, true)
ResetTimer(name)
end
---- end code ----
and
---- begin code ----
EnableTimer(name, false)
---- end code ----
hope the info. will help you ~~~
|
Kernel Development | top |
|
Posted by
| Nick Gammon
Australia (22,975 posts) bio
Forum Administrator |
Date
| Reply #4 on Thu 26 Jun 2008 01:08 AM (UTC) |
Message
| It only crashes in Windows 2003? Well I don't have a copy of that, and won't be able to get one, even if I wanted to. Heck, I can't even buy Windows XP these days, as all they will sell you is Vista.
See if you can narrow it down to a small plugin or piece of script that reproduces the problem without any extra stuff. I don't mean snippets like you posted, but a working piece I can try out.
However if it doesn't crash on XP, there won't be much I can do, unless I spot something funny in what you are doing. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
Posted by
| Jing Wu
Australia (35 posts) bio
|
Date
| Reply #5 on Thu 26 Jun 2008 06:44 PM (UTC) |
Message
| crashed again. @.@ don't know what happened. the point is i don't know the exact time when it crashes. so...
can u provide a debug version, or having a global execeptions catch to show some error message that i can copy it and parse here.
thanks~ |
Kernel Development | top |
|
Posted by
| Jing Wu
Australia (35 posts) bio
|
Date
| Reply #6 on Thu 26 Jun 2008 07:30 PM (UTC) |
Message
| it also crashes in winXP.
another question, i downloaded the source code, and how to make it run to debug using Microsoft Visual Studio 2005? |
Kernel Development | top |
|
Posted by
| Nick Gammon
Australia (22,975 posts) bio
Forum Administrator |
Date
| Reply #7 on Fri 27 Jun 2008 05:08 AM (UTC) |
Message
| Open the project in Visual Studio, compile it using the Debug target, and then run in debug mode. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
Posted by
| Jing Wu
Australia (35 posts) bio
|
Date
| Reply #8 on Fri 27 Jun 2008 11:21 AM (UTC) Amended on Fri 27 Jun 2008 01:49 PM (UTC) by Jing Wu
|
Message
| Nick,
Can you renew the souce code to mush client v4.72 ?
or send to my email if u can: wjshome(AT)gmail.com
i try to compile source code with visual studio, and coming out several erros.
so the easy way is that you send me a debug version of mushclient and its source code, and i can easily attach the source code to the running application. what do u think?
thanks |
Kernel Development | top |
|
Posted by
| Nick Gammon
Australia (22,975 posts) bio
Forum Administrator |
Date
| Reply #9 on Fri 27 Jun 2008 11:19 PM (UTC) |
Message
| There is not 4.72.
The latest full source is here:
http://www.gammon.com.au/files/mushclient/src/mushclient_4.19_src.zip
Try downloading that and at least getting it to compile. Once you get that far, you can try to see if it crashes.
I don't think you can debug unless you compile it yourself, it won't know which address belongs to what line of code. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
Posted by
| Jing Wu
Australia (35 posts) bio
|
Date
| Reply #10 on Wed 09 Jul 2008 05:46 PM (UTC) Amended on Wed 09 Jul 2008 05:50 PM (UTC) by Jing Wu
|
Message
| i complited the source code, but it doesn't free memory, causing occupy large block memory while debuging for a while. so i cannot do the test.
the windows event log shows the error is arised in addr:0013073C in v4.27, here it is:
00530733 /$ 56 PUSH ESI
00530734 |. 8BF1 MOV ESI,ECX
00530736 |. 8B4C24 08 MOV ECX,DWORD PTR SS:[ESP+8]
0053073A |. 8B01 MOV EAX,DWORD PTR DS:[ECX]
0053073C |. 8378 F4 00 CMP DWORD PTR DS:[EAX-C],0 ; error happened in this line
00530740 |. 7C 0E JL SHORT MUSHclie.00530750
00530742 |. 8906 MOV DWORD PTR DS:[ESI],EAX
00530744 |. 83C0 F4 ADD EAX,-0C
00530747 |. 50 PUSH EAX ; /pVar
00530748 |. FF15 A4635700 CALL DWORD PTR DS:[<&KERNEL32.InterlockedIncrement>] ; \InterlockedIncrement
0053074E |. EB 10 JMP SHORT MUSHclie.00530760
00530750 |> A1 C0035E00 MOV EAX,DWORD PTR DS:[5E03C0]
00530755 |. 8906 MOV DWORD PTR DS:[ESI],EAX
00530757 |. FF31 PUSH DWORD PTR DS:[ECX]
00530759 |. 8BCE MOV ECX,ESI
0053075B |. E8 E7030000 CALL MUSHclie.00530B47
00530760 |> 8BC6 MOV EAX,ESI
00530762 |. 5E POP ESI
00530763 \. C2 0400 RETN 4
another thing is my lua script is almost 65k(more than 1800 lines code), and i opened 5 worlds in mush, doesn't it too big for the lua executing engine? would it be a reason for the crash? |
Kernel Development | top |
|
Posted by
| Nick Gammon
Australia (22,975 posts) bio
Forum Administrator |
Date
| Reply #11 on Thu 10 Jul 2008 01:16 AM (UTC) |
Message
| I have a world running with over 4,000 lines of plugins in Lua, so it should handle that easily. I also have 9 worlds open.
Either you are doing something that isn't supported under Windows 2003, or your script is doing something, like recursively calling itself and gobbling up all available memory before crashing.
You have said "i cannot do the test" but then you posted some debugging code. Did that come from the test or not? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
Posted by
| Jing Wu
Australia (35 posts) bio
|
Date
| Reply #12 on Thu 10 Jul 2008 04:44 AM (UTC) |
Message
| the debugging code comes from OllyDBG. I opened mush with OllyDBG. and looked for the error address showed in Windows Event Log. |
Kernel Development | 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.
26,327 views.
It is now over 60 days since the last post. This thread is closed.
  Refresh page
top
Quick links:
MUSHclient.
MUSHclient help.
Forum shortcuts.
Posting templates.
Lua modules.
Lua documentation.
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.