BlockHorizons / BlockSniper

An advanced (brush) world editing plugin for PocketMine-MP
https://poggit.pmmp.io/p/BlockSniper/
Apache License 2.0
76 stars 41 forks source link

Crash on startup #143

Open ElectroGamesDev opened 3 years ago

ElectroGamesDev commented 3 years ago

18 ## Description

On server startup, this errors shows up in console then disables the plugin. It used to work fine.

Versions

Crashdump and/or console errors

[02:59:38] [Server thread/CRITICAL]: TypeError: "Argument 2 passed to Sandertv\Marshal\DataProcessor::put() must be of the type array, null given, called in phar:///home/container/plugins/BlockSniper (2) (1).phar/src/marshal/src/Sandertv/Marshal/Unmarshal.php on line 61" (EXCEPTION) in "plugins/BlockSniper (2) (1).phar/src/marshal/src/Sandertv/Marshal/DataProcessor" at line 22
[02:59:38] [Server thread/CRITICAL]: #0 plugins/BlockSniper (2) (1).phar/src/marshal/src/Sandertv/Marshal/Unmarshal(61): Sandertv\Marshal\DataProcessor->put(object BlockHorizons\BlockSniper\data\ConfigData, NULL )
[02:59:38] [Server thread/CRITICAL]: #1 plugins/BlockSniper (2) (1).phar/src/marshal/src/Sandertv/Marshal/Unmarshal(78): Sandertv\Marshal\Unmarshal::yaml(string[0] , object BlockHorizons\BlockSniper\data\ConfigData)
[02:59:38] [Server thread/CRITICAL]: #2 plugins/BlockSniper (2) (1).phar/src/BlockHorizons/BlockSniper/data/ConfigData(92): Sandertv\Marshal\Unmarshal::yamlFile(string[50] /home/container/plugin_data/BlockSniper/config.yml, object BlockHorizons\BlockSniper\data\ConfigData)
[02:59:38] [Server thread/CRITICAL]: #3 plugins/BlockSniper (2) (1).phar/src/BlockHorizons/BlockSniper/Loader(106): BlockHorizons\BlockSniper\data\ConfigData->__construct(object BlockHorizons\BlockSniper\Loader)
[02:59:38] [Server thread/CRITICAL]: #4 plugins/BlockSniper (2) (1).phar/src/BlockHorizons/BlockSniper/Loader(76): BlockHorizons\BlockSniper\Loader->load()
[02:59:38] [Server thread/CRITICAL]: #6 src/pocketmine/plugin/PluginManager(552): pocketmine\plugin\PluginBase->setEnabled(boolean 1)
[02:59:38] [Server thread/CRITICAL]: #7 src/pocketmine/Server(1787): pocketmine\plugin\PluginManager->enablePlugin(object BlockHorizons\BlockSniper\Loader)
[02:59:38] [Server thread/CRITICAL]: #8 src/pocketmine/Server(1773): pocketmine\Server->enablePlugin(object BlockHorizons\BlockSniper\Loader)
[02:59:38] [Server thread/CRITICAL]: #9 src/pocketmine/Server(1586): pocketmine\Server->enablePlugins(integer 1)
[02:59:38] [Server thread/CRITICAL]: #10 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
[02:59:38] [Server thread/CRITICAL]: #11 src/pocketmine/PocketMine(304): pocketmine\server()
[02:59:38] [Server thread/CRITICAL]: #12 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
[02:59:38] [Server thread/INFO]: Disabling BlockSniper v3.2.3
[02:59:38] [Server thread/CRITICAL]: TypeError: "Return value of BlockHorizons\BlockSniper\Loader::getPresetManager() must be an instance of BlockHorizons\BlockSniper\presets\PresetManager, null returned" (EXCEPTION) in "plugins/BlockSniper (2) (1).phar/src/BlockHorizons/BlockSniper/Loader" at line 100
[02:59:38] [Server thread/CRITICAL]: #0 plugins/BlockSniper (2) (1).phar/src/BlockHorizons/BlockSniper/Loader(86): BlockHorizons\BlockSniper\Loader->getPresetManager()
[02:59:38] [Server thread/CRITICAL]: #1 src/pocketmine/plugin/PluginBase(118): BlockHorizons\BlockSniper\Loader->onDisable()
[02:59:38] [Server thread/CRITICAL]: #2 src/pocketmine/plugin/PluginManager(639): pocketmine\plugin\PluginBase->setEnabled(boolean )
[02:59:38] [Server thread/CRITICAL]: #3 src/pocketmine/plugin/PluginManager(559): pocketmine\plugin\PluginManager->disablePlugin(object BlockHorizons\BlockSniper\Loader)
[02:59:38] [Server thread/CRITICAL]: #4 src/pocketmine/Server(1787): pocketmine\plugin\PluginManager->enablePlugin(object BlockHorizons\BlockSniper\Loader)
[02:59:38] [Server thread/CRITICAL]: #5 src/pocketmine/Server(1773): pocketmine\Server->enablePlugin(object BlockHorizons\BlockSniper\Loader)
[02:59:38] [Server thread/CRITICAL]: #6 src/pocketmine/Server(1586): pocketmine\Server->enablePlugins(integer 1)
[02:59:38] [Server thread/CRITICAL]: #7 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
[02:59:38] [Server thread/CRITICAL]: #8 src/pocketmine/PocketMine(304): pocketmine\server()
[02:59:38] [Server thread/CRITICAL]: #9 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
Sandertv commented 3 years ago

Please try removing the configuration while the server is stopped, then restarting the server.

lukeeey commented 3 years ago

Is this still an issue @ElectroGamesYT

ElectroGamesDev commented 3 years ago

Is this still an issue @ElectroGamesYT

I have not tried the latest version (if there is one)

lukeeey commented 3 years ago

Try sanders advice above