DaPigGuy / PiggyCustomEnchants

An open source custom enchantment plugin for PocketMine-MP
https://piggydocs.aericio.net/PiggyCustomEnchants.html
Apache License 2.0
103 stars 118 forks source link

Remote Enchant Disabler Error #225

Closed jennocool closed 4 years ago

jennocool commented 4 years ago
okay Please make sure your issue complies with these guidelines: - * [x] Server Software must be the official PMMP w/o vanilla patching plugins (i.e. TeaSpoon) - * [x] Issue must have not been reported previously - * [x] Make sure you are on the latest version of PMMP & PiggyCustomEnchants - * [x] Have a detailed title, like "CustomEnchants::getName() must be..." - * [x] If possible, provide crashdumps/errors related to the issue. #### **General** I uploaded Plugin to server instantly crashed #### **Version:** I have latest - PiggyCustomEnchants: I have latest - PMMP: #### **Steps to Reproduce the Issue**

1.upload plugin and start server

Extra Information

That is crashes my server and I need to kill it

[07:32:35] [Asynchronous Worker #1 thread/CRITICAL]: TypeError: "json_decode() expects parameter 1 to be string, bool given" (EXCEPTION) in "plugins/PiggyCustomEnchants.phar/src/DaPigGuy/PiggyCustomEnchants/tasks/CheckUpdatesTask" at line 38
[07:32:35] [Asynchronous Worker #1 thread/DEBUG]: #0 plugins/PiggyCustomEnchants.phar/src/DaPigGuy/PiggyCustomEnchants/tasks/CheckUpdatesTask(38): json_decode(boolean , boolean 1)
[07:32:35] [Asynchronous Worker #1 thread/DEBUG]: #1 src/pocketmine/scheduler/AsyncTask(75): DaPigGuy\PiggyCustomEnchants\tasks\CheckUpdatesTask->onRun()
[07:32:35] [Asynchronous Worker #1 thread/DEBUG]: #2 (): pocketmine\scheduler\AsyncTask->run()
[07:32:35] [Server thread/CRITICAL]: Could not execute asynchronous task CheckUpdatesTask: Task crashed
[07:32:35] [Server thread/CRITICAL]: TypeError: "json_decode() expects parameter 1 to be string, bool given" (EXCEPTION) in "plugins/PiggyCustomEnchants.phar/src/DaPigGuy/PiggyCustomEnchants/tasks/CheckDisabledEnchantsTask" at line 37
[07:32:35] [Server thread/DEBUG]: #0 plugins/PiggyCustomEnchants.phar/src/DaPigGuy/PiggyCustomEnchants/tasks/CheckDisabledEnchantsTask(37): json_decode(boolean , boolean 1)
[07:32:35] [Server thread/DEBUG]: #1 src/pocketmine/scheduler/AsyncPool(321): DaPigGuy\PiggyCustomEnchants\tasks\CheckDisabledEnchantsTask->onCompletion(object pocketmine\Server)
[07:32:35] [Server thread/DEBUG]: #2 src/pocketmine/Server(2571): pocketmine\scheduler\AsyncPool->collectTasks()
[07:32:35] [Server thread/DEBUG]: #3 src/pocketmine/Server(2343): pocketmine\Server->tick()
[07:32:35] [Server thread/DEBUG]: #4 src/pocketmine/Server(2203): pocketmine\Server->tickProcessor()
[07:32:35] [Server thread/DEBUG]: #5 src/pocketmine/Server(1785): pocketmine\Server->start()
[07:32:35] [Server thread/DEBUG]: #6 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[34] /storage/emulated/0/PocketMine-MP/, string[42] /storage/emulated/0/PocketMine-MP/plugins/)
[07:32:35] [Server thread/DEBUG]: #7 src/pocketmine/PocketMine(295): pocketmine\server()
[07:32:35] [Server thread/DEBUG]: #8 (1): require(string[89] phar:///storage/emulated/0/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/Pocke)
[07:32:35] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump
[07:32:35] [Server thread/EMERGENCY]: Please upload the "/storage/emulated/0/PocketMine-MP/crashdumps/Thu_Dec_12-07.32.35-UTC_2019.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.
Aericio commented 4 years ago

@vort3xzz seems to have had the same problem and the OS shows Android.

PocketMine-MP Crash Dump Fri Dec 20 00:38:51 UTC 2019

Error: json_decode() expects parameter 1 to be string, bool given
File: plugins/PiggyCustomEnchants.phar/src/DaPigGuy/PiggyCustomEnchants/tasks/CheckDisabledEnchantsTask
Line: 37
Type: TypeError

THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: PiggyCustomEnchants v2.0.3

PocketMine-MP version: 3.11.1 [Protocol 389]
Git commit: 40a2211a5a93af7a587debb4efed2332f564193c
uname -a: Linux localhost 4.4.111-15516145 #1 SMP PREEMPT Tue May 21 19:29:52 KST 2019 aarch64
PHP Version: 7.3.7
Zend version: 3.3.7
OS : Linux, android

Loaded plugins:
PiggyCustomEnchants 2.0.3 by DaPigGuy for API(s) 3.2.0

As a result, we cannot provide a fix for this because hosting PMMP on Android is not supported. This issue will not be fixed.