survanetwork / BadWordBlocker

🤬 A Chat Filter which can block certain things
https://plugins.surva.net/#badwordblocker
MIT License
9 stars 12 forks source link

ErrorException: "Division by zero" (EXCEPTION) in "BadWordBlocker_dev-11.phar/src/surva/badwordblocker/BadWordBlocker" at line 78 #3

Closed teracube closed 7 years ago

teracube commented 7 years ago

Find an error thanks

2017-10-24 [13:54:03] [Server thread/CRITICAL]: Could not pass event 'pocketmine\event\player\PlayerCommandPreprocessEvent' to 'BadWordBlocker v1.1.0': Division by zero on surva\badwordblocker\EventListener 2017-10-24 [13:54:03] [Server thread/CRITICAL]: ErrorException: "Division by zero" (EXCEPTION) in "BadWordBlocker_dev-11.phar/src/surva/badwordblocker/BadWordBlocker" at line 78 2017-10-24 [13:54:03] [Server thread/DEBUG]: #0 BadWordBlocker_dev-11.phar/src/surva/badwordblocker/BadWordBlocker(78): pocketmine\error_handler(integer 2, string Division by zero, string phar:///home/gsp_XXXX/g3.hmserv.eu-19132/plugins/BadWordBlocker_dev-11.phar/src/surva/badwordblocker/BadWordBlocker.php, integer 78, array Array()) 2017-10-24 [13:54:03] [Server thread/DEBUG]: #1 BadWordBlocker_dev-11.phar/src/surva/badwordblocker/EventListener(32): surva\badwordblocker\BadWordBlocker->checkMessage(pocketmine\Player object, string ) 2017-10-24 [13:54:03] [Server thread/DEBUG]: #2 src/pocketmine/plugin/MethodEventExecutor(38): surva\badwordblocker\EventListener->onPlayerCommandPreprocess(pocketmine\event\player\PlayerCommandPreprocessEvent object) 2017-10-24 [13:54:03] [Server thread/DEBUG]: #3 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(surva\badwordblocker\EventListener object, pocketmine\event\player\PlayerCommandPreprocessEvent object) 2017-10-24 [13:54:03] [Server thread/DEBUG]: #4 src/pocketmine/plugin/PluginManager(721): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\player\PlayerCommandPreprocessEvent object) 2017-10-24 [13:54:03] [Server thread/DEBUG]: #5 src/pocketmine/Player(2119): pocketmine\plugin\PluginManager->callEvent(pocketmine\event\player\PlayerCommandPreprocessEvent object) 2017-10-24 [13:54:03] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(220): pocketmine\Player->chat(string /tell TheCyruss7 Telecharge serveur Maker for mcpe ) 2017-10-24 [13:54:03] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(47): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(pocketmine\network\mcpe\protocol\CommandRequestPacket object) 2017-10-24 [13:54:03] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object) 2017-10-24 [13:54:03] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/protocol/BatchPacket(115): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\CommandRequestPacket object) 2017-10-24 [13:54:03] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object) 2017-10-24 [13:54:03] [Server thread/DEBUG]: #11 src/pocketmine/Player(3012): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object) 2017-10-24 [13:54:03] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/RakLibInterface(143): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object) 2017-10-24 [13:54:03] [Server thread/DEBUG]: #13 src/raklib/server/ServerHandler(97): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string XX.XXX.XX.49:28279, raklib\protocol\EncapsulatedPacket object, integer 0) 2017-10-24 [13:54:03] [Server thread/DEBUG]: #14 src/pocketmine/network/mcpe/RakLibInterface(82): raklib\server\ServerHandler->handlePacket() 2017-10-24 [13:54:03] [Server thread/DEBUG]: #15 src/pocketmine/network/Network(89): pocketmine\network\mcpe\RakLibInterface->process() 2017-10-24 [13:54:03] [Server thread/DEBUG]: #16 src/pocketmine/Server(2497): pocketmine\network\Network->processInterfaces() 2017-10-24 [13:54:03] [Server thread/DEBUG]: #17 src/pocketmine/Server(2253): pocketmine\Server->tick() 2017-10-24 [13:54:03] [Server thread/DEBUG]: #18 src/pocketmine/Server(2132): pocketmine\Server->tickProcessor() 2017-10-24 [13:54:03] [Server thread/DEBUG]: #19 src/pocketmine/Server(1714): pocketmine\Server->start() 2017-10-24 [13:54:03] [Server thread/DEBUG]: #20 src/pocketmine/PocketMine(558): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar:///home/gsp_XXXX/g3.hmserv.eu-19132/PocketMine-MP.phar/, string /home/gsp_XXXX/g3.hmserv.eu-19132/, string /home/gsp_XXXX/g3.hmserv.eu-19132/plugins/) 2017-10-24 [13:54:03] [Server thread/DEBUG]: #21 /home/gsp_XXXX/g3.hmserv.eu-19132/PocketMine-MP.phar(1): require(string phar:///home/gsp_XXXX/g3.hmserv.eu-19132/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Linux PHP 7.2.0 RC4

PocketMine-MP 1.7dev-317: BadWordBlocker 1.1.0 latest version

Slapper 1.3.7; iProtector 3.1.0-3; ChatToDiscord 1.1.0; VoteReward 3.0.2-3; CustomAlerts 1.7.2; essentialsTP 1.2.0-2; ; Parkour 1.5.6-3; AllSigns 1.0.4; PiggyCustomEnchants 1.0.2-2; xyz 1.0.4; AlwaysSpawn 2.2.3-3; PurePerms 1.4.1-2; ItemCasePE 1.2.1; EconomyAPI 5.7.1-3; MagicTelePortal 1.3.2-3; BanItem 2.3.2-2.alpha8; EconomyShop 2.0.8-5; AdvancedKits 5.1.0-3; FactionsPro 1.4.5-5; PureChat 1.4.10-3

jarne commented 7 years ago

Did you found out how to reproduce this issue? Is there any specific chat message someone wrote before the server crashed (maybe an empty one)?

teracube commented 7 years ago

@jarne sorry i do not know how to duplicate. it's happened only one time sorry for my bad english

jarne commented 7 years ago

Should be fixed with the new version

teracube commented 7 years ago

@jarne thanks