JavierLeon9966 / BlockLagFix

Reduce block placement lag
MIT License
24 stars 15 forks source link

Crash at server startup #4

Closed MrBlasyMSK closed 2 years ago

MrBlasyMSK commented 2 years ago
PocketMine-MP Crash Dump Tue Mar 15 22:52:58 UTC 2022

Error: Class "JavierLeon9966\BlockLagFix\libs\muqsit\simplepackethandler\SimplePacketHandler" not found
File: plugins/BlockLagFix_dev-5.phar/src/BlockLagFix
Line: 27
Type: Error

THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: BlockLagFix

Code:
[18] use pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData;
[19] use pocketmine\network\mcpe\protocol\UpdateBlockPacket;
[20] use pocketmine\plugin\PluginBase;
[21] use pocketmine\world\World;
[22] use pocketmine\utils\AssumptionFailedError;
[23] 
[24] final class BlockLagFix extends PluginBase{
[25] 
[26]    public function onEnable(): void{
[27]        $handler = SimplePacketHandler::createInterceptor($this, EventPriority::HIGHEST);
[28] 
[29]        /**
[30]         * @var Block[] $lastBlocks
[31]         * @phpstan-var array<int, Block> $lastBlocks
[32]         */
[33]        $lastBlocks = [];
[34]        $lastNetworkSession = null;
[35]        $handleUpdateBlock = static function(UpdateBlockPacket $packet, NetworkSession $target) use(&$lastBlocks, &$lastNetworkSession): bool{
[36]            /** @var NetworkSession $lastNetworkSession */
[37]            if($target !== $lastNetworkSession){

Backtrace:
#0 pmsrc/src/plugin/PluginBase(137): JavierLeon9966\BlockLagFix\BlockLagFix->onEnable()
#1 pmsrc/src/plugin/PluginManager(437): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#2 pmsrc/src/Server(1385): pocketmine\plugin\PluginManager->enablePlugin(object JavierLeon9966\BlockLagFix\BlockLagFix#25330)
#3 pmsrc/src/Server(1011): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#24904)
#4 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#5 pmsrc/src/PocketMine(327): pocketmine\server()
#6 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

PocketMine-MP version: 4.2.3 [Protocol 486]
Git commit: 6c1c0c867e178f8da8b266e962ca13f4b4280ab4
uname -a: Linux 40988d2c-8e2a-4b5a-ab32-2bc6e7d3056e 5.4.0-100-generic #113-Ubuntu SMP Thu Feb 3 18:43:29 UTC 2022 x86_64
PHP Version: 8.0.16
Zend version: 4.0.16
OS: Linux, linux
Composer libraries: 
- adhocore/json-comment 1.1.2@fc2f76979f0a44a5f5bc2a2b600d0762fe0e78e7
- brick/math 0.9.3@ca57d18f028f84f777b2168cd1911b0dee2343ae
- daverandom/callback-validator unknown@unknown
- fgrosse/phpasn1 v2.4.0@eef488991d53e58e60c9554b09b1201ca5ba9296
- netresearch/jsonmapper v4.0.0@8bbc021a8edb2e4a7ea2f8ad4fa9ec9dce2fcb8d
- pocketmine/bedrock-data 1.6.0+bedrock-1.18.10@e98c511584a7bd58a95986374d2df4b04c6a2ba0
- pocketmine/bedrock-protocol 8.0.1+bedrock-1.18.10@a740f6095b35278c0e0dac6db84a5e4d2456b113
- pocketmine/binaryutils 0.2.4@5ac7eea91afbad8dc498f5ce34ce6297d5e6ea9a
- pocketmine/callback-validator 1.0.3@64787469766bcaa7e5885242e85c23c25e8c55a2
- pocketmine/classloader 0.2.0@49ea303993efdfb39cd302e2156d50aa78209e78
- pocketmine/color 0.2.0@09be6ea6d76f2e33d6813c39d29c22c46c17e1d2
- pocketmine/errorhandler 0.6.0@dae214a04348b911e8219ebf125ff1c5589cc878
- pocketmine/locale-data 2.4.3@4d0b081f1a79407e087968ea76aaf330db6ea2b5
- pocketmine/log 0.4.0@e6c912c0f9055c81d23108ec2d179b96f404c043
- pocketmine/log-pthreads 0.4.0@61f709e8cf36bcc24e4efe02acded680a1ce23cd
- pocketmine/math 0.4.2@aacc3759a508a69dfa5bc4dfa770ab733c5c94bf
- pocketmine/nbt 0.3.2@3e0d9ef6b6c5fb45e3745a121296e75631b3eefe
- pocketmine/pocketmine-mp 4.2.3@6c1c0c867e178f8da8b266e962ca13f4b4280ab4
- pocketmine/raklib 0.14.3@4798576fec0364266dce23b368a7fec5e5de7927
- pocketmine/raklib-ipc 0.1.1@922a6444b0c6c7daaa5aa5a832107e1ec4738aed
- pocketmine/snooze 0.3.1@0ac8fc2a781c419a1f64ebca4d5835028f59e29b
- ramsey/collection 1.2.2@cccc74ee5e328031b15640b51056ee8d3bb66c0a
- ramsey/uuid 4.2.3@fc9bb7fb5388691fd7373cd44dcb4d63bbcf24df
- rhumsaa/uuid unknown@unknown
- symfony/polyfill-ctype v1.25.0@30885182c981ab175d4d034db0f6f469898070ab
- symfony/polyfill-php80 v1.25.0@4407588e0d3f1f52efb65fbe92babe41f37fe50c
- symfony/polyfill-php81 v1.25.0@5de4ba2d41b15f9bd0e19b2ab9674135813ec98f
- webmozart/assert 1.10.0@6964c76c7804814a842473e0c8fd15bab0f18e25
- webmozart/path-util 2.3.0@d939f7edc24c9a1bb9c0dee5cb05d8e859490725