{"action":"created","issue":{"url":"https://api.github.com/repos/iTXTech/Genisys/issues/1358","repository_url":"https://api.github.com/repos/iTXTech/Genisys","labels_url":"https://api.github.com/repos/iTXTech/Genisys/issues/1358/labels{/name}","comments_url":"https://api.github.com/repos/iTXTech/Genisys/issues/1358/comments","events_url":"https://api.github.com/repos/iTXTech/Genisys/issues/1358/events","html_url":"https://github.com/iTXTech/Genisys/issues/1358","id":163646541,"number":1358,"title":"Crashdump backtrace is wrong","user":{"login":"legoboy0215","id":12031248,"avatar_url":"https://avatars.githubusercontent.com/u/12031248?v=3","gravatar_id":"","url":"https://api.github.com/users/legoboy0215","html_url":"https://github.com/legoboy0215","followers_url":"https://api.github.com/users/legoboy0215/followers","following_url":"https://api.github.com/users/legoboy0215/following{/other_user}","gists_url":"https://api.github.com/users/legoboy0215/gists{/gist_id}","starred_url":"https://api.github.com/users/legoboy0215/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/legoboy0215/subscriptions","organizations_url":"https://api.github.com/users/legoboy0215/orgs","repos_url":"https://api.github.com/users/legoboy0215/repos","events_url":"https://api.github.com/users/legoboy0215/events{/privacy}","received_events_url":"https://api.github.com/users/legoboy0215/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-07-04T10:18:45Z","updated_at":"2016-07-04T10:41:50Z","closed_at":"2016-07-04T10:30:22Z","body":"#### Issue description\r\nSometimes, the backtrace in the crashdump only includes\r\n```\r\n#0 (): pocketmine\\Server->crashDump(boolean)\r\n```\r\n\r\n#### Steps to reproduce the issue\r\nCrash the server on purpose or do something to crash it.\r\n\r\n#### OS and versions\r\n* Genisys: This server is running Genisys 1.2dev-ecd9559 \"Ikaros\" implementing API 2.0.0 for Minecraft: Pocket Edition v0.15.0 alpha (protocol version 81)\r\n* PHP: 7.0.2\r\n* OS: Ubuntu\r\n\r\n#### Crashdump, backtrace, Plugins list or other files\r\n```\r\nGenisys Crash Dump Mon Jul 4 18:07:47 AWST 2016\r\n\r\nError: syntax error, unexpected '$this' (T_VARIABLE)\r\nFile: /TestPlugin/src/Legoboy/TestPlugin/Loader\r\nLine: 15\r\nType: notice\r\n\r\nTHIS CRASH WAS CAUSED BY A PLUGIN\r\n此次出错由插件引起\r\n\r\nCode:\r\n[6] \r\n[7] class Loader extends PluginBase{\r\n[8] \r\n[9]     public function onLoad(){\r\n[10]         $this->getLogger()->info(\"onLoad() has been called!\");\r\n[11]     }\r\n[12] \r\n[13]     public function onEnable(){\r\n[14] \t\tblah\r\n[15]         $this->getLogger()->info(\"onEnable() has been called!\");\r\n[16]     }\r\n[17] \r\n[18]     public function onDisable(){\r\n[19]         $this->getLogger()->info(\"onDisable() has been called!\");\r\n[20]     }\r\n[21] }\r\n[22] \r\n[23] \r\n[24] \r\n[25] \r\n\r\nBacktrace:\r\n#0 (): pocketmine\\Server->crashDump(boolean)\r\n\r\nGenisys version: 1.2dev #0 [Protocol 81; API 2.0.0]\r\nuname -a: Linux legoboy0215 2.6.32-042stab116.1 #1 SMP Wed May 4 16:21:02 MSK 2016 x86_64 x86_64 x86_64 GNU/Linux\r\nPHP version: 7.0.2\r\nZend version: 3.0.0\r\nOS : Linux, Linux\r\n\r\nServer uptime: 17 seconds\r\nNumber of loaded worlds: 1\r\nPlayers online: 0/20\r\n\r\nLoaded plugins:\r\nManyWorlds 2.0.3 by aliuly for API(s) 1.13.0, 2.0.0\r\nTestPlugin 1.0 by Legoboy for API(s) 2.0.0\r\n```\r\nIn PHP 5, this is what appears (without xDebug too):\r\n```\r\n#0 (): spl_autoload_call(string Legoboy\\TestPlugin\\Loader)\r\n#1 /src/pocketmine/plugin/FolderPluginLoader(48): class_exists(string Legoboy\\TestPlugin\\Loader, boolean 1)\r\n#2 /src/pocketmine/plugin/PluginManager(155): pocketmine\\plugin\\FolderPluginLoader->loadPlugin(string /root/pm/plugins/TestPlugin)\r\n#3 /src/pocketmine/plugin/PluginManager(333): pocketmine\\plugin\\PluginManager->loadPlugin(string /root/pm/plugins/TestPlugin, array Array())\r\n#4 /src/pocketmine/Server(2023): pocketmine\\plugin\\PluginManager->loadPlugins(string /root/pm/plugins/)\r\n#5 /src/pocketmine/PocketMine(467): pocketmine\\Server->__construct(pocketmine\\CompatibleClassLoader object, pocketmine\\utils\\MainLogger object, string phar:///root/pm/PocketMine-MP.phar, string /root/pm/, string /root/pm/plugins, string unknown)\r\n#6 (1): require_once(string phar:///root/pm/PocketMine-MP.phar/src/pocketmine/PocketMine.php)\r\n```\r\nThis serves as a placeholder for the issue that has not been solved yet."},"comment":{"url":"https://api.github.com/repos/iTXTech/Genisys/issues/comments/230261453","html_url":"https://github.com/iTXTech/Genisys/issues/1358#issuecomment-230261453","issue_url":"https://api.github.com/repos/iTXTech/Genisys/issues/1358","id":230261453,"user":{"login":"legoboy0215","id":12031248,"avatar_url":"https://avatars.githubusercontent.com/u/12031248?v=3","gravatar_id":"","url":"https://api.github.com/users/legoboy0215","html_url":"https://github.com/legoboy0215","followers_url":"https://api.github.com/users/legoboy0215/followers","following_url":"https://api.github.com/users/legoboy0215/following{/other_user}","gists_url":"https://api.github.com/users/legoboy0215/gists{/gist_id}","starred_url":"https://api.github.com/users/legoboy0215/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/legoboy0215/subscriptions","organizations_url":"https://api.github.com/users/legoboy0215/orgs","repos_url":"https://api.github.com/users/legoboy0215/repos","events_url":"https://api.github.com/users/legoboy0215/events{/privacy}","received_events_url":"https://api.github.com/users/legoboy0215/received_events","type":"User","site_admin":false},"created_at":"2016-07-04T10:41:49Z","updated_at":"2016-07-04T10:41:49Z","body":"lol... That is just plain weird. "}}
{"actor":{"display_login":"legoboy0215"}}