Page 3 of 3

Re: ManiaLive r209

Posted: 19 Apr 2011, 17:34
by oliverde8
Hi, I am having some troubles with my HudMenu, it seems I am doing something wrong :
http://forum.maniaplanet.com/viewtopic. ... 954#p15895

meanwhile I also might have found an Error in ML. I had a crash with the error : PHP Fatal error: Nesting level too deep - recursive dependency

In libraries\ManiaLive\Gui\Windowing\ need to use !== and not != because you are comparing objects which gives :

Code: Select all

function onIsAdded(Container $target)
   {
//      echo "added " . get_class($this) . " \n";
      
      $this->parent = $target;
      
      if ($target instanceof WindowDisplayable)
      {
         if ($this->window !== $target->window)
            $this->announceWindow($target->window);
      }
      elseif ($target instanceof Control)
      {
         if ($target->getWindow() != null
            && $target->getWindow() !== $this->window)
            $this->announceWindow($target->getWindow());
      }
   }
Thanks

Re: ManiaLive r209

Posted: 02 May 2011, 11:47
by farfa
We don't use !== because you always get clone of the original instance and not the original one, so if you test !== it will always return false ;)
It's not a bug, it's a feature :mrgreen:

Re: ManiaLive r209

Posted: 02 May 2011, 18:28
by nouseforname
ok, here we go.

i installed ML incl some plugins and stuff. and i can see its not stable for me. it crashes regulary. dont know the reason yet. what i know is, it takes a lot of ram.

Konsole:

Code: Select all

19:14:09|nouse|~/trackmania$ ps -ef | grep bootstrapper
nouse     3707     1  3 18:48 pts/1    00:00:58 php /trackmania/TSTserver/ManiaLiveTST/bootstrapper.php
19:14:22|nouse|~/trackmania$ cat /proc/3707/status | grep VmSize
VmSize:   404168 kB
19:14:24|nouse|~/trackmania$
What i can see in error log is:
- -> ManiaLive\DedicatedApi\Xmlrpc\Exception with code -1000
PlayerUId unknown.

- -> ManiaLive\DedicatedApi\Xmlrpc\Exception with code -32700
transport error - answer too big (1836597052)

System: Lenny php 5.3.6 dotdeb, xaseco needs about 260-280mb but stable. Manialive i only see its rising atm 465mb.
server is an offical FZ server with 40players online.

btw: time date and linefeed would be nice in command_log


if you need more info or logs, let me know.

edit:
ok the dedimania error seems to appear during restart with players only

one more issue:
if click "minimize" in profiler, before window is loaded and filled with data, ml crashes with:

Code: Select all

PHP Fatal error:  Call to a member function hide() on a non-object in /home/nouse/trackmania/TSTserver/ManiaLiveTST/libraries/ManiaLive/Gui/Windowing/WindowHandler.php on line 516

Fatal error: Call to a member function hide() on a non-object in /home/nouse/trackmania/TSTserver/ManiaLiveTST/libraries/ManiaLive/Gui/Windowing/WindowHandler.php on line 516

Re: ManiaLive r209

Posted: 06 May 2011, 18:05
by nouseforname
have this two times in my crashed log:

Code: Select all

PHP Fatal error:  Call to a member function hide() on a non-object in /home/nouse/trackmania/TSTserver/ManiaLiveTST/libraries/ManiaLive/Gui/Windowing/WindowHandler.php on line 516

Fatal error: Call to a member function hide() on a non-object in /home/nouse/trackmania/TSTserver/ManiaLiveTST/libraries/ManiaLive/Gui/Windowing/WindowHandler.php on line 516
i think its from the profiler, if its minimized or closed BEFORE finished loading the data. as i wrote above.



And another issue:

Code: Select all

 -> ManiaLive\DedicatedApi\Xmlrpc\Exception with code -1000
    PlayerUId unknown.
  - in
      /home/nouse/trackmania/TSTserver/ManiaLiveTST/libraries/ManiaLive/Dedicat
      edApi/Xmlrpc/Client_Gbx.php on line 269
  - Stack: #0
      /home/nouse/trackmania/TSTserver/ManiaLiveTST/libraries/ManiaLive/Dedicat
      edApi/Xmlrpc/Client_Gbx.php(295):
      ManiaLive\DedicatedApi\Xmlrpc\Client_Gbx->getResult()
           #1 [internal function]:
      ManiaLive\DedicatedApi\Xmlrpc\Client_Gbx->query('ChatSendServerM...',
      '$fff????  $0aeP...', 89)
           #2
      /home/nouse/trackmania/TSTserver/ManiaLiveTST/libraries/ManiaLive/Dedicat
      edApi/Connection.php(137): call_user_func_array(Array, Array)
           #3
      /home/nouse/trackmania/TSTserver/ManiaLiveTST/libraries/ManiaLive/Dedicat
      edApi/Connection.php(641):
      ManiaLive\DedicatedApi\Connection->execute('ChatSendServerM...', Array,
      false)
           #4
      /home/nouse/trackmania/TSTserver/ManiaLiveTST/libraries/ManiaLivePlugins/
      MLEPP/JoinLeaveMessage/JoinLeaveMessage.php(99):
      ManiaLive\DedicatedApi\Connection->chatSendServerMessage('$fff???? 
      $0aeP...', Object(ManiaLive\DedicatedApi\Structures\Player))
           #5 [internal function]:
      ManiaLivePlugins\MLEPP\JoinLeaveMessage\JoinLeaveMessage->onPlayerConnect
      ('rakvic...', false)
           #6
      /home/nouse/trackmania/TSTserver/ManiaLiveTST/libraries/ManiaLive/Dedicat
      edApi/Callback/Event.php(28): call_user_func_array(Array, Array)
           #7
      /home/nouse/trackmania/TSTserver/ManiaLiveTST/libraries/ManiaLive/Event/D
      ispatcher.php(52):
      ManiaLive\DedicatedApi\Callback\Event->fireDo(Object(ManiaLivePlugins\MLE
      PP\JoinLeaveMessage\JoinLeaveMessage))
           #8
      /home/nouse/trackmania/TSTserver/ManiaLiveTST/libraries/ManiaLive/Dedicat
      edApi/Connection.php(108):
      ManiaLive\Event\Dispatcher::dispatch(Object(ManiaLive\DedicatedApi\Callba
      ck\Event))
           #9
      /home/nouse/trackmania/TSTserver/ManiaLiveTST/libraries/ManiaLive/Applica
      tion/AbstractApplication.php(146):
      ManiaLive\DedicatedApi\Connection->executeCallbacks()
           #10
      /home/nouse/trackmania/TSTserver/ManiaLiveTST/bootstrapper.php(19):
      ManiaLive\Application\AbstractApplication->run()
           #11 {main}

Re: ManiaLive r209

Posted: 06 May 2011, 20:02
by Knutselmaaster
The first one i fixed in the next release.
The second one happens to me too sometimes.

Re: ManiaLive r209

Posted: 06 May 2011, 20:57
by Knutselmaaster
Double post :p

Just tried the update function, but it doesn't seem to work.
Do i do something wrong?

Code: Select all

/home/tmservers/servers/freezone/ManiaLive209/update# php5 update.php
###############################
# ManiaLive Updater
###############################

> Checking local ManiaLive version ...
> ManiaLive is at version 209
> Checking remote ManiaLive version ...
PHP Fatal error:  Class 'ManiaLib\Rest\Config' not found in /home/tmservers/servers/freezone/ManiaLive209/libraries/ManiaLib/Rest/Client.php on line 57
Just php instead of php5 gives the same error.
ManiaLib\Rest\Config is in place.