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
➜ SaveState() result in suspending of plugin
|
SaveState() result in suspending of plugin
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Vbeau
(9 posts) Bio
|
| Date
| Tue 18 Sep 2018 05:57 AM (UTC) |
| Message
| A model dialog appeared to point out "Unable to create the plugin save state file" when executing SaveState() in my plugin scripts.
The probability was 1%, but the problem is that the dialog caused suspending of the plugin until I closed the dialog. This is disconcerting when going on an unattended operation for a long time. | | Top |
|
| Posted by
| Fiendish
USA (2,541 posts) Bio
Global Moderator |
| Date
| Reply #1 on Tue 18 Sep 2018 06:06 PM (UTC) Amended on Tue 18 Sep 2018 06:09 PM (UTC) by Fiendish
|
| Message
| I think you should be focusing on what caused MUSHclient to be locked out of saving the state file. Perhaps you have it stored in a location that it isn't able to write to?
Quote: but the problem is that the dialog caused suspending of the plugin until I closed the dialog
I don't see this as a problem. Continuing operation while ignoring serious errors doesn't seem like a reasonable approach to me. |
https://github.com/fiendish/aardwolfclientpackage | | Top |
|
| Posted by
| Vbeau
(9 posts) Bio
|
| Date
| Reply #2 on Wed 19 Sep 2018 01:24 AM (UTC) |
| Message
| First of all, thanks for your reply. Then it needs to be emphasized that the probability of the failed appearance is 1% and SaveState() is called at set intervals. Last but not least, my question is that the rare failure of SaveState() shoud result in MUSHclient to be locked? Would it be better that the next step
is processed by users according to the return value after failure of saving the state file? | | Top |
|
| Posted by
| Fiendish
USA (2,541 posts) Bio
Global Moderator |
| Date
| Reply #3 on Wed 19 Sep 2018 02:36 AM (UTC) Amended on Wed 19 Sep 2018 02:37 AM (UTC) by Fiendish
|
| Message
| | What do you mean that the probability is 1%? Saving the file should _never_ fail. If it fails even once then there is a serious system problem. |
https://github.com/fiendish/aardwolfclientpackage | | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #4 on Wed 19 Sep 2018 05:07 AM (UTC) |
| Message
| In most programs, the inability to save a file results in a dialogue box requiring you to fix it before you proceed.
In the case of saving the state file, if you can do it one time you should be able to do it a thousand times. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Vbeau
(9 posts) Bio
|
| Date
| Reply #5 on Wed 19 Sep 2018 09:00 AM (UTC) |
| Message
| | I mean that the probability is 1% indeed. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #6 on Wed 19 Sep 2018 05:35 PM (UTC) |
| Message
| Yes, why is it 1%? Is there any reason why saving to disk fails one time out of a hundred?
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Vbeau
(9 posts) Bio
|
| Date
| Reply #7 on Thu 20 Sep 2018 12:04 AM (UTC) |
| Message
| | I did a test for SaveState() and there was one time of failure in 100 times. So I think probability is 1%. Perhaps the numerical value isn't accurate, however my purpose is to illustrate that the low probability risk for saving to disk exists indeed. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #8 on Thu 20 Sep 2018 11:19 AM (UTC) |
| Message
| This isn’t really a bug IMHO, because you may as well complain that Microsoft Word opens a dialogue box when it is unable to save the document. Surely you want to be notified, rather than just have the program proceed as if nothing happened?
The core issue is, why are 1% of the saves failing? No one else has ever complained about this. |
- 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.
23,736 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top