Skip to content

Crash on startup #143

Description

@ElectroGamesDev

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

Versions

  • PocketMine version: 3.15.4
  • BlockSniper version: 3.2.3
  • Minecraft version: 1.16.40

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions