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 ➜ Miniwindow renders only black

Miniwindow renders only black

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


Posted by Mr.lundmark   (51 posts)  Bio
Date Mon 16 Sep 2013 08:16 AM (UTC)
Message
Using mushclient 4.90, I'm running approximately 8-10 miniwindows at the same time. It has happened now several times that one of my miniwindows renders black instead of what I tell it to. The miniwindow still responds to clicks and movement, all other windows work fine. Reinstalling the plugin does not help (probably since the miniwindow isn't deleted/re-added). Running WindowDelete() and then WindowCreate() solves the issue.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Mon 16 Sep 2013 11:02 AM (UTC)
Message
That's odd. Can you post the code that draws the miniwindow?

- Nick Gammon

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

Posted by Mr.lundmark   (51 posts)  Bio
Date Reply #2 on Mon 16 Sep 2013 01:33 PM (UTC)
Message
It's wrapped in multiple files so I can't just paste the code.

I do a WindowGradient on a part of the window (a menu bar), I do WindowText on multiple parts of the window. I use WindowTextWidth, WindowResize, WindowRectOp almost all the time. When I first install it I draw it completely black and then a white boarder around it. I never draw on the boarder except when I install my plugin. The rest of the time I use WindowRectOp inside the boarder so that I don't redraw the border-pixels. Even though my drawing works this way, all of the window - including the boarder - is black when it bugs out.

Oh I also use WindowShow every time I redraw it.

The rate of this occuring is once every two weeks or so. I let my mushclient run for several weeks before rebooting it (only forced my windows updates). :/
Top

Posted by Fiendish   USA  (2,534 posts)  Bio   Global Moderator
Date Reply #3 on Mon 16 Sep 2013 02:05 PM (UTC)

Amended on Mon 16 Sep 2013 02:11 PM (UTC) by Fiendish

Message
Quote:
That's odd.

This has been reported before. :)

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

This might be related.
http://www.mushclient.com/forum/?id=11636

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Mr.lundmark   (51 posts)  Bio
Date Reply #4 on Wed 20 Nov 2013 07:11 AM (UTC)
Message
Anything happening with this issue? It's causing me a lot of headache :(
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #5 on Wed 20 Nov 2013 10:42 AM (UTC)
Message
If I can't reproduce it, I can't fix it. Something that happens every two weeks is hard to get a handle on. Clearly there is no egregious problem. Maybe you are running out of RAM or something.

- Nick Gammon

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

Posted by Fiendish   USA  (2,534 posts)  Bio   Global Moderator
Date Reply #6 on Thu 21 Nov 2013 04:41 AM (UTC)

Amended on Thu 21 Nov 2013 04:57 AM (UTC) by Fiendish

Message
I still think it is probably related to the bug I reported at http://www.mushclient.com/forum/?id=11636 that hasn't been fixed yet. Take a look at that one again. It is completely reproducible with the included short plugin.

Mr. lundmark, change the background color of your plugin miniwindow to something other than black and tell us if that has any effect on the nature of this bug.

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Mr.lundmark   (51 posts)  Bio
Date Reply #7 on Sat 30 Nov 2013 12:42 PM (UTC)
Message
I will try changing the background color this week and get back to you.
Top

Posted by Mr.lundmark   (51 posts)  Bio
Date Reply #8 on Wed 04 Dec 2013 08:02 AM (UTC)
Message
Even if I use other colors as background colors, it still goes black. I have found a 100% reproducable case where I just rescale one of my windows a lot (by having a drag handler that rescales it). Then just drag/release fast a lot.

I wish I had the time to create a plugin where I could reproduce it but I have a lot on my hands at the moment. I will try to get to it as soon as I can.
Top

Posted by Mr.lundmark   (51 posts)  Bio
Date Reply #9 on Wed 04 Dec 2013 08:30 AM (UTC)
Message
I think this has to do with running luaJit dll instead of normal dll. Which one are you running Fiendish?
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #10 on Wed 04 Dec 2013 08:08 PM (UTC)
Message
I can reproduce the problem Fiendish refers to in the other thread, however I can't see why. Updating the screen from within a drag handler appears to be the cause.

- Nick Gammon

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

Posted by Mr.lundmark   (51 posts)  Bio
Date Reply #11 on Thu 05 Dec 2013 07:40 AM (UTC)
Message
That seems to be one of the cases, Nick. I could be updating it in other quirky places that's causing it there as well. I don't really know the mushclient code so unfortunately I'm not I'm out of ideas as to why it would fail. But once it's failed I need to reinstall the plugin to get drawing back. I'm not sure if it's the actual plugin reinstall or just that I'm recreating the window.
Top

Posted by Mr.lundmark   (51 posts)  Bio
Date Reply #12 on Thu 05 Dec 2013 07:43 AM (UTC)
Message
I also have to point out that a friend who's running my plugins isn't having this issue. With the same (latest) version of mushclient. He's not running all my plugins, though.

But essentially I have a plugin system with event handling so one plugin could trigger an event from within a function that is called to another plugin which could be updating their window. It shouldn't be like that (you shouldn't be updating your window in an event), but I'm not 100% certain. There's quite a lot of code and I could have made such a mistake.
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.


35,303 views.

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.