CustomiesDevs / Customies

A PocketMine-MP plugin that implements support for custom blocks, items and entities.
MIT License
107 stars 48 forks source link

Non-thread-safe #113

Closed Nexus9w9 closed 7 months ago

Nexus9w9 commented 7 months ago

[00:46:18.378] [Server thread/CRITICAL]: pmmp\thread\NonThreadSafeValueError: "Closures with non-thread-safe $this cannot be made thread-safe" (EXCEPTION) in "plugins/Customies.phar/src/task/AsyncRegisterBlocksTask" at line 29 --- Stack trace ---

0 plugins/Customies.phar/src/block/CustomiesBlockFactory(53): customiesdevs\customies\task\AsyncRegisterBlocksTask->__construct(string[67] /home/allyson/Documentos/Trapa-Server/plugin_data/Customies/idcache, array[1])

1 pmsrc/src/scheduler/AsyncPool(98): customiesdevs\customies\block\CustomiesBlockFactory::customiesdevs\customies\block{closure}(int 0)

2 plugins/Customies.phar/src/block/CustomiesBlockFactory(54): pocketmine\scheduler\AsyncPool->addWorkerStartHook(object Closure#186155)

3 plugins/Customies.phar/src/Customies(19): customiesdevs\customies\block\CustomiesBlockFactory->addWorkerInitHook(string[67] /home/allyson/Documentos/Trapa-Server/plugin_data/Customies/idcache)

4 pmsrc/src/scheduler/ClosureTask(57): customiesdevs\customies\Customies::customiesdevs\customies{closure}()

5 pmsrc/src/scheduler/TaskHandler(113): pocketmine\scheduler\ClosureTask->onRun()

6 pmsrc/src/scheduler/TaskScheduler(137): pocketmine\scheduler\TaskHandler->run()

7 pmsrc/src/plugin/PluginManager(533): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(int 1)

8 pmsrc/src/Server(1791): pocketmine\plugin\PluginManager->tickSchedulers(int 1)

9 pmsrc/src/Server(1680): pocketmine\Server->tick()

10 pmsrc/src/Server(1065): pocketmine\Server->tickProcessor()

11 pmsrc/src/PocketMine(334): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#3, object pocketmine\utils\MainLogger#6, string[38] /home/allyson/Documentos/Trapa-Server/, string[46] /home/allyson/Documentos/Trapa-Server/plugins/)

12 pmsrc/src/PocketMine(357): pocketmine\server()

13 pmsrc(11): require(string[82] phar:///home/allyson/Documentos/Trapa-Server/PocketMine-MP.phar/src/PocketMine.p)

--- End of exception information --- [00:46:18.379] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump [00:46:18.404] [Server thread/EMERGENCY]: Please upload the "/home/allyson/Documentos/Trapa-Server/crashdumps/Sat_Nov_18-00.46.18-UTC_2023.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can. [00:46:18.153] [EasyEdit editing thread/NOTICE]: Couldn't find data for this pocketmine version, using latest (1.20.30.50) [00:46:19.596] [Server thread/EMERGENCY]: The crash dump has been automatically submitted to the Crash Archive. You can view it on https://crash.pmmp.io/view/9618992 or use the ID #9618992. [00:46:19.596] [Server thread/EMERGENCY]: Forcing server shutdown