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
➜ MUSHclient crashes
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Tsunami
USA (204 posts) Bio
|
Date
| Wed 09 Aug 2006 08:38 PM (UTC) |
Message
| It took me about an hour to track down this bug, and it's still not that specific. At first I hadn't even associated it with scripting. The problem appears to be that when I create a plugin with a trigger in it which calls a script function which has a period in it...
script="table.function"
if the script which defines this function has an error in it, of any kind which would cause it not to compile, when the plugin is loaded, mushclient crashes without any message. I am still trying to narrow down the error further, and I will post again when I have.
-Tsunami | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #1 on Wed 09 Aug 2006 10:43 PM (UTC) |
Message
| You can reproduce it really easily. Simply go into the trigger editor (GUI configuration) and put foo.bar as the name of the trigger script. Then it crashes.
The reason for the crash is in a Lua call to extract an item from a table, I wasn't checking if I was supplying a table in the first place. So in your case if the word "foo" is not a table you get a crash. However if foo is a table, but "bar" is not a function then it correctly reports that it can't find bar.
This is fixed in version 3.78 which has now been released.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Tsunami
USA (204 posts) Bio
|
Date
| Reply #2 on Thu 10 Aug 2006 06:25 PM (UTC) |
Message
| Aye, that was the issue, but in a plugin, there was only one way I could reproduce it. That was with three files, first xml file using an include to call the second which had a trigger in it and a piece of lua to require() the third which had the table and function in it. In any other configuration I tested, the scripting error would be caught before MC tried to pair up triggers and functions, and so it wouldn't crash. In this case however, the scripting error wasn't caught which was the actual bug I was referring to. Hopefully this was fixed as well. Thanks, Tsunami | 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.
12,729 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top