iTXTech / Genisys

Feature-rich server software for Minecraft: Pocket Edition & Windows 10 Edition Beta
https://itxtech.org/genisys/
GNU General Public License v3.0
431 stars 246 forks source link

It Crashed... #2306

Closed the-eric-kwok closed 7 years ago

the-eric-kwok commented 7 years ago

Issue description

我一打开他就崩掉了……我也不知道怎么回事 It just crashed when I run it. No idea what's happening.

Steps to reproduce the issue

Don't know...

OS and versions

Crashdump, backtrace, memory dumps, plugins list or other files

Genisys Crash Dump Thu Jan 5 14:13:32 UTC 2017

Error: pthreads detected an attempt to connect to an object which has already been destroyed
File: /src/pocketmine/scheduler/AsyncTask
Line: 166
Type: notice

Code:
[157]    * @param Server $server
[158]    *
[159]    * @return void
[160]    */
[161]   public function onCompletion(Server $server){
[162] 
[163]   }
[164] 
[165]   public function cleanObject(){
[166]       foreach($this as $p => $v){
[167]           if(!($v instanceof \Threaded) and !in_array($p, ["isFinished", "isGarbage", "cancelRun"])){
[168]               $this->{$p} = null;
[169]           }
[170]       }
[171]   }
[172] 
[173] }
[174] 
[175] 
[176] 

Backtrace:
#0 /src/pocketmine/scheduler/AsyncPool(154): pocketmine\scheduler\AsyncPool->removeTask(pocketmine\level\generator\GeneratorRegisterTask object)
#1 /src/pocketmine/scheduler/ServerScheduler(268): pocketmine\scheduler\AsyncPool->collectTasks(boolean)
#2 /src/pocketmine/Server(2768): pocketmine\scheduler\ServerScheduler->mainThreadHeartbeat(integer 1)
#3 /src/pocketmine/Server(2466): pocketmine\Server->tick(boolean)
#4 /src/pocketmine/Server(2344): pocketmine\Server->tickProcessor(boolean)
#5 /src/pocketmine/Server(1934): pocketmine\Server->start(boolean)
#6 /src/pocketmine/PocketMine(476): pocketmine\Server->__construct(pocketmine\CompatibleClassLoader object, pocketmine\utils\MainLogger object, string phar:///home/Eric/Genisys/Genisys_78ed5e1_2017-01-05_05-19-24.phar/, string /home/Eric/Genisys/, string /home/Eric/Genisys/plugins/, string chs)
#7 (1): require_once(string phar:///home/Eric/Genisys/Genisys_78ed5e1_2017-01-05_05-19-24.phar/src/pocketmine/PocketMine.php)

Genisys version: 78ed5e17a79445da9892b8e3428fcea5e677c494 [Protocol 91; API 2.1.0]
uname -a: Linux QCloud-Debian 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19) x86_64
PHP version: 7.0.12
Zend version: 3.0.0
OS : Linux, linux

Server uptime: 2 分 2 秒
Number of loaded worlds: 2
Players online: 0/20

Loaded plugins:

CrashDump_Thu_Jan_5-14.13.32-UTC_2017.log.txt

the-eric-kwok commented 7 years ago

It crash again... when I try to restart it. Here's the CrashDump:

Genisys Crash Dump Thu Jan 5 14:33:15 UTC 2017

Error: Out of memory (allocated 31457280) (tried to allocate 262144 bytes)
File: /src/spl/BaseClassLoader
Line: 128
Type: E_ERROR

THIS CRASH WAS CAUSED BY A PLUGIN

Code:
[119]      * Called when there is a class to load
[120]      *
[121]      * @param string $name
[122]      *
[123]      * @return bool
[124]      */
[125]     public function loadClass($name){
[126]         $path = $this->findClass($name);
[127]         if($path !== null){
[128]             include($path);
[129]             if(!class_exists($name, false) and !interface_exists($name, false) and !trait_exists($name, false)){
[130]               if($this->getParent() === null){
[131]                   throw new ClassNotFoundException("Class $name not found");
[132]               }
[133]                 return false;
[134]             }
[135] 
[136]           if(method_exists($name, "onClassLoaded") and (new ReflectionClass($name))->getMethod("onClassLoaded")->isStatic()){
[137]               $name::onClassLoaded();
[138]           }

Backtrace:
#0 (): pocketmine\Server->crashDump(boolean)

Genisys version: 78ed5e17a79445da9892b8e3428fcea5e677c494 [Protocol 91; API 2.1.0]
uname -a: Linux QCloud-Debian 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19) x86_64
PHP version: 7.0.12
Zend version: 3.0.0
OS : Linux, linux

Server uptime: 1 秒
Number of loaded worlds: 2
Players online: 0/20

Loaded plugins:

CrashDump_Thu_Jan_5-14.33.15-UTC_2017.log.txt

ishitatsuyuki commented 7 years ago

The second one looks like a simple out of memory. Please run on a better server.

the-eric-kwok commented 7 years ago

@ishitatsuyuki yes it is out of memory, but I can run Pocketmine on my server smoothly... That's really confuse me.

the-eric-kwok commented 7 years ago

@ishitatsuyuki it works fine now! I'm gonna close this issue now. Thank you for answering :D