[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Miniwindows
. . -> [Subject]  Miniwindow goes black
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Miniwindow goes black

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


Pages: 1 2  3  4  5  

Posted by Rooklion   (9 posts)  [Biography] bio
Date Thu 25 Aug 2011 05:52 AM (UTC)
Message
I'm using a set of plugins that display various information about a MUD to miniwindows. Each plugin is using a .lua snippet file which takes care of all of the functions of the miniwindows. Periodically, these miniwindows will go completely black. All of the hotspots are still there and can be clicked on, but the foreground colors are all black. The only fix seems to be a full restart of the client. As the plugins are not mine, it's necessary to try and "recreate" the issue but I cannot determine any pattern to when they go black. Examining the code it seems each time the information changes the window is just recreated. I don't understand when/how the client is getting confused so I don't know where to begin troubleshooting. Any ideas?
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Thu 25 Aug 2011 07:54 AM (UTC)
Message
There's not really enough information to go on with there. What plugins? What snippets?

Some authors, like Fiendish and Twisol, have written quite complex plugins using miniwindows. I haven't had any complaints about them going black and needing to restart the client.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #2 on Thu 25 Aug 2011 03:55 PM (UTC)
Message
I've gotten a number of reports of this from people using Bast's plugins (https://code.google.com/p/bastmush/) on top of my Aardwolf package (https://code.google.com/p/aardwolfclientpackage/). My guess is that the combination has the ability to peak at a *lot* of plugin processing at random times. It did happen to me *once*, but I've never been able to reproduce it, and I don't like reporting problems before I can reproduce them because I know how difficult that is to track down and try to fix.

The one thing that stuck out to me though was that simply disabling/removing/reloading the plugins doesn't help. You actually have to shut down MUSHclient.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Bast   (77 posts)  [Biography] bio
Date Reply #3 on Thu 25 Aug 2011 03:56 PM (UTC)
Message
I have had reports of it as well. But I had one user say it wasn't just my plugins. I also cannot reproduce it.

Bast

Bast

Scripts: http://bastmush.googlecode.com
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #4 on Thu 25 Aug 2011 07:08 PM (UTC)
Message
For what it's worth, I haven't seen or heard this happen yet.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Rooklion   (9 posts)  [Biography] bio
Date Reply #5 on Thu 25 Aug 2011 08:43 PM (UTC)
Message
Apologies, I suppose I was trying to avoid the traditional "post your bugs to the authors" response. The plugins that go black are, in fact, the ones based on Bast's miniwin.lua file. The closest I can come to a "reproduction" is anytime I'm moving rapidly along in Aardwolf from one mob to another. One miniwindow is showing the names and descriptions of the mobs in the room and another is displaying Campaign targets. They only seem to go black after many rapid changes to the contents.
[Go to top] top

Posted by Bast   (77 posts)  [Biography] bio
Date Reply #6 on Thu 25 Aug 2011 09:09 PM (UTC)
Message
Rooklion said:

One miniwindow is showing the names and descriptions of the mobs in the room and another is displaying Campaign targets. They only seem to go black after many rapid changes to the contents.


What plugin shows descriptions of mobs in the room? I don't have a plugin that does that.

Bast

Bast

Scripts: http://bastmush.googlecode.com
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #7 on Thu 25 Aug 2011 11:59 PM (UTC)
Message
It's possible some Windows resource is not being freed properly. A while ago I had a small program that, after a while, stopped drawing properly because I had used a Windows "brush" and not freed it. Eventually it ran out of brushes.

However it would help if you could reproduce with some sort of small test case.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #8 on Fri 26 Aug 2011 12:32 AM (UTC)
Message
Nick Gammon said:
However it would help if you could reproduce with some sort of small test case.

If only. I've been getting complaints for a while. Every time I ask how to reproduce the problem, the answer is always
Quote:
*shrug*
:\

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Rooklion   (9 posts)  [Biography] bio
Date Reply #9 on Sat 27 Aug 2011 07:45 PM (UTC)
Message
I have created a mob database plugin based on Bast's miniwin.lua script. This one as well as the other Bastmush plugins I use go black. These include miniwin_spellup, miniwin_events.

As far as reproduction, it's extremely unpredictable when it will occur. During fast-moving CP-levelling is the only time it reliably happens.

Most recent: my mob database plugin shows the contents of the {roomchars} tag in conjunction with a "consider all" to get the mob's shortname. After checking both lists contain the same number of records, the database is searched to receive the mob's database ID #. These 3 are then written into a miniwindow. During a visit to one of the mobs in my CP it seems that the attempt to write to the miniwindow caused it to go black.

My guess is that many frequent redraws of the miniwindow is causing the blackout. Could a difference in the way Bast's miniwindows are refreshed be causing the bug?
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #10 on Sat 27 Aug 2011 07:52 PM (UTC)
Message
Quote:
Could a difference in the way Bast's miniwindows are refreshed be
The one time I saw it happen was not on one of Bast's plugins. I think the only thing we have is that there's a whole bunch of processing and drawing going on.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #11 on Sat 27 Aug 2011 09:23 PM (UTC)
Message
Could you confirm whether or not this problem tends to occur after a lengthy period of time? If some resource is eventually being consumed, then a lot of activity would consume it faster. However I would still expect this sort of problem to manifest itself later, rather than sooner.

Next time it happens:

Template:bug

Please provide a summary of your world configuration:

  • Either use the scripting Immediate window (Ctrl+I) to execute: Debug ("summary")

    or

  • Install the Summary plugin (see "Summary" feature) and type "summary"

Then copy the resulting information from the output window, and paste into a Forum message.

You need version 4.55 onwards of MUSHclient to do this.


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #12 on Sat 27 Aug 2011 09:51 PM (UTC)
Message
I got this from a friend.

Summary:
http://pastebin.com/raw.php?i=8PYs8yuU

Screenshot:
http://i.imgur.com/qPw5z.png

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #13 on Sat 27 Aug 2011 10:00 PM (UTC)
Message
So which plugin is that black window?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #14 on Sat 27 Aug 2011 10:03 PM (UTC)
Message
Well that's confusing. Version 4.78 is "in the wild" whereas I haven't released it yet.

In fact, remind me what change was made in that? My release notes don't show anything.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] 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.


27,685 views.

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

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

Go to topic:           Search the forum


[Go to top] 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.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]