maniaplanet/manialive-lib

Login Unknown error with the Gui Handler

oliverde8 opened this issue · 1 comments

Hi, I have recently being tracking down an Login Unknown error being thrown when displaying widgets or hiding them. This is quite a problem for us as we use the same window instance for all the players and refresh them for everyone. Problem is once an a while I reset the window so the window id changes, when this happens and the old windows aren't hidden they stay on the screen "forever".

To create them I do $win = Window::Create(Null);
then when a new player connect I update only that players widget because I need to refresh it(Maniascript updated data won't be uptodate so server controller need to do it)
$win->show($login);
Then to destroy all the windows
Window::EreaseAll();
And finnally when a player disconnects
Window::Erease($login);

When testing with fake players I couldn't reproduce the problem. It happens when player disconnects from the server just while the windows are being destroyed or created or at least that is what I believe.

When solution that should work is to keep the same windows id for a widget so that even it doesen't work once it fixes it self the next time, the other one would be to try and fix it in the Gui Handler. I might also being doing something wrong XD

We have done some tests today and the problem can appear with all windows that was created using Window::Create(Null);
So the window I update arent the only ones affected by this. they might not show or might not hide.