Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on startup #143

Open
ElectroGamesDev opened this issue Nov 10, 2020 · 4 comments
Open

Crash on startup #143

ElectroGamesDev opened this issue Nov 10, 2020 · 4 comments

Comments

@ElectroGamesDev
Copy link

#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)
@Sandertv
Copy link
Member

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

@lukeeey
Copy link
Member

lukeeey commented Apr 28, 2021

Is this still an issue @ElectroGamesYT

@ElectroGamesDev
Copy link
Author

Is this still an issue @ElectroGamesYT

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

@lukeeey
Copy link
Member

lukeeey commented Apr 28, 2021

Try sanders advice above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants