Closed GoogleCodeExporter closed 8 years ago
[deleted comment]
Can you tell me which version of ManiaLive you are running ?
And can you tell me which method is sending this message ?
Original comment by melot.philippe
on 23 May 2011 at 9:51
The version i run is 216 of manialive.
This is the total function of what i edited.
/**
* (non-PHPdoc)
* @see libraries/ManiaLive/DedicatedApi/Callback/ManiaLive\DedicatedApi\Callback.Listener::onPlayerDisconnect()
*/
function onPlayerDisconnect($login)
{
// clear drawStack for that player
unset(self::$drawStack[$login]);
// free the dialog
self::$dialogStack = array();
// free managed windows ...
unset(self::$currentManagedWindow[$login]);
unset(self::$minimizedManagedWindowHashes[$login]);
unset(self::$minimizedManagedWindows[$login]);
// clean memory ...
self::destroyPlayerWindows($login);
gc_collect_cycles();
//echo "Controls that have not been freed:\n";
//foreach (Control::$controls as $control)
//{
// echo "- " . $control . "\n";
//}
}
/**
* Removes all window resources that have been allocated
* for the player.
* @param string $login Players Login
*/
static function destroyPlayerWindows($login)
{
echo "\nremoving player windows!\n";
if (isset(Window::$instances[$login]))
{
foreach (Window::$instances[$login] as $window)
{
$window->destroy();
}
unset(Window::$instances[$login]);
}
if (isset(Window::$instancesNonSingleton[$login]))
{
foreach (Window::$instancesNonSingleton[$login] as $window)
{
$window->destroy();
}
unset(Window::$instancesNonSingleton[$login]);
}
}
Original comment by w1llaopgezwolle@gmail.com
on 24 May 2011 at 1:08
What have you done to be sure that some instances are still present in memory
after having been released from the WindowHandler ?
Original comment by melot.philippe
on 25 May 2011 at 2:24
The following was loaded and gives me this...
This happened after leaving the server.
< unloading ManiaLive\Gui\Windowing\Windows\Shortkey
< unloading ManiaLivePlugins\MLEPP\AdminPanel\Gui\Windows\AdminPanelWindow
< unloading ManiaLivePlugins\MLEPP\ChallengeWidget\Gui\Windows\ChallengeWidgetWi
ndow
< unloading ManiaLivePlugins\MLEPP\DonateCoppers\Gui\DonatePanel
< unloading ManiaLivePlugins\MLEPP\Karma\Gui\Windows\KarmaWindow
< unloading ManiaLivePlugins\Flo\TMKarma\Gui\Windows\Widget
< unloading ManiaLivePlugins\MLEPP\TmxInfo\Gui\Windows\SimpleWindow
< unloading ManiaLivePlugins\MLEPP\AdminPanel\Gui\Windows\AdminWindow
< unloading ManiaLivePlugins\MLEPP\Jukebox\Gui\Windows\trackList
< unloading ManiaLivePlugins\MLEPP\ChatLog\Gui\Windows\ChatLogWindow
< unloading ManiaLivePlugins\MLEPP\Core\Gui\Windows\helpWindow
<< desctructing ManiaLive\Gui\Windowing\Windows\Shortkey
<< desctructing ManiaLivePlugins\MLEPP\AdminPanel\Gui\Windows\AdminPanelWindow
<< desctructing ManiaLivePlugins\MLEPP\ChallengeWidget\Gui\Windows\ChallengeWidg
etWindow
<< desctructing ManiaLivePlugins\MLEPP\Karma\Gui\Windows\KarmaWindow
<< desctructing ManiaLivePlugins\Flo\TMKarma\Gui\Windows\Widget
< unloading ManiaLive\Gui\Windowing\Windows\Thumbnail
<< desctructing ManiaLivePlugins\MLEPP\TmxInfo\Gui\Windows\SimpleWindow
< unloading ManiaLive\Gui\Windowing\Windows\Thumbnail
<< desctructing ManiaLivePlugins\MLEPP\AdminPanel\Gui\Windows\AdminWindow
< unloading ManiaLive\Gui\Windowing\Windows\Thumbnail
< unloading ManiaLive\Gui\Windowing\Windows\Thumbnail
<< desctructing ManiaLivePlugins\MLEPP\ChatLog\Gui\Windows\ChatLogWindow
< unloading ManiaLive\Gui\Windowing\Windows\Thumbnail
<< desctructing ManiaLivePlugins\MLEPP\Core\Gui\Windows\helpWindow
<< desctructing ManiaLive\Gui\Windowing\Windows\Thumbnail
<< desctructing ManiaLive\Gui\Windowing\Windows\Thumbnail
<< desctructing ManiaLive\Gui\Windowing\Windows\Thumbnail
<< desctructing ManiaLive\Gui\Windowing\Windows\Thumbnail
<< desctructing ManiaLive\Gui\Windowing\Windows\Thumbnail
<< desctructing ManiaLivePlugins\MLEPP\Jukebox\Gui\Windows\trackList
[18:23:24] [MLEPP] [JoinLeaveMessage] dccw1lla left the server.
Original comment by w1llaopgezwolle@gmail.com
on 25 May 2011 at 4:24
Original comment by melot.philippe
on 31 Dec 2012 at 9:33
Original issue reported on code.google.com by
w1llaopgezwolle@gmail.com
on 21 May 2011 at 8:19