Code Monkey home page Code Monkey logo

bedcoreprotect's Introduction

About me

I am a developer ๐Ÿ’ป (otherwise why would I be here?!) and gamer ๐ŸŽฎ.

My hobby is to write PocketMine-MP plugins, I have been in this community since 2014. Over the years I have developed and maintained several plugins including the most current BedcoreProtect and ServerTools.

I was the main developer at NetherGames Network. I am still part of the group and I intervene when necessary.

Programming languages

  • Java โ˜•
  • PHP ๐Ÿ˜
  • C#
  • Visual Basic
  • C++

My GitHub statitics

Other contacts

  • Discord: matcracker#5204

Donation

  • Bitcoin (BTC): 37BCe87gveKRNPzbcLLyAk2kLVqE53MSZc
  • Ethereum (ETH): 0x6C5c009d5EC990dA2bCFb7A7aeDD369E21C78087

bedcoreprotect's People

Contributors

hadvsc avatar kadthehunter avatar makspv avatar matcracker avatar poggit-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bedcoreprotect's Issues

crash server

Issue description

server crash randomly

  • Expected result: What were you expecting to happen?
  • Actual result: What actually happened?

Steps to reproduce the issue

server crash randomly

  1. ...
  2. ...

OS and versions

Plugins

  • If you remove all plugins, does the issue still occur?
  • If the issue is not reproducible without plugins:
    • Can you provide sample, minimal reproducing code for the issue? If so, paste it in the bottom section

Crashdump, backtrace or other files

2020-05-18 [13:20:01] [Server thread/CRITICAL]: matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitException: "Unhandled async exception" (EXCEPTION) in "plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await" at line 436
2020-05-18 [13:20:01] [Server thread/DEBUG]: #0 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(202): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
2020-05-18 [13:20:01] [Server thread/DEBUG]: #1 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(176): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure)
2020-05-18 [13:20:01] [Server thread/DEBUG]: #2 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(397): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure)
2020-05-18 [13:20:01] [Server thread/DEBUG]: #3 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(48): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild)
2020-05-18 [13:20:01] [Server thread/DEBUG]: #4 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(432): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
2020-05-18 [13:20:01] [Server thread/DEBUG]: #5 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(202): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
2020-05-18 [13:20:01] [Server thread/DEBUG]: #6 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(176): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure)
2020-05-18 [13:20:01] [Server thread/DEBUG]: #7 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(397): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure)
2020-05-18 [13:20:01] [Server thread/DEBUG]: #8 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(48): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild)
2020-05-18 [13:20:01] [Server thread/DEBUG]: #9 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(240): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError, NULL )
2020-05-18 [13:20:01] [Server thread/DEBUG]: #10 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(186): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->reportError(array[2], object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError, NULL )
2020-05-18 [13:20:01] [Server thread/DEBUG]: #11 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlThreadPool(112): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
2020-05-18 [13:20:01] [Server thread/DEBUG]: #12 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(268): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlThreadPool->readResults(array[12472])
2020-05-18 [13:20:01] [Server thread/DEBUG]: #13 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlThreadPool(65): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->checkResults()
2020-05-18 [13:20:01] [Server thread/DEBUG]: #14 vendor/pocketmine/snooze/src/SleeperHandler(123): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlThreadPool->matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}()
2020-05-18 [13:20:01] [Server thread/DEBUG]: #15 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
2020-05-18 [13:20:01] [Server thread/DEBUG]: #16 src/pocketmine/Server(2146): pocketmine\snooze\SleeperHandler->sleepUntil(double 1589800801.914)
2020-05-18 [13:20:01] [Server thread/DEBUG]: #17 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
2020-05-18 [13:20:01] [Server thread/DEBUG]: #18 src/pocketmine/Server(1584): pocketmine\Server->start()
2020-05-18 [13:20:01] [Server thread/DEBUG]: #19 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
2020-05-18 [13:20:01] [Server thread/DEBUG]: #20 src/pocketmine/PocketMine(295): pocketmine\server()
2020-05-18 [13:20:01] [Server thread/DEBUG]: #21 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
2020-05-18 [13:20:01] [Server thread/DEBUG]: Previous: matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError: "SQL EXECUTION error: cannot commit - no transaction is active, for query END TRANSACTION; | []" (EXCEPTION) in "plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/sqlite3/Sqlite3Thread" at line 91
2020-05-18 [13:20:01] [Server thread/DEBUG]:   #0 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlSlaveThread(85): matcracker\BedcoreProtect\libs\poggit\libasynql\sqlite3\Sqlite3Thread->executeQuery(string[15] object(SQLite3), integer 0, string[16] END TRANSACTION;, array[0])
2020-05-18 [13:20:01] [Server thread/DEBUG]:   #1 (): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlSlaveThread->run()
2020-05-18 [13:20:01] [Server thread/DEBUG]:   #2 Internal(0): Corrected generator stack trace()
2020-05-18 [13:20:01] [Server thread/DEBUG]:   #3 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/storage/queries/Query(118): executeGeneric()
2020-05-18 [13:20:01] [Server thread/DEBUG]:   #4 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/storage/queries/PluginQueries(134): matcracker\BedcoreProtect\storage\queries\{closure}()
2020-05-18 [13:20:01] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump
2020-05-18 [13:20:01] [Server thread/EMERGENCY]: Please upload the "/home/container/crashdumps/Mon_May_18-13.20.01-CEST_2020.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.
PocketMine-MP Crash Dump Mon May 18 13:20:01 CEST 2020

Error: Unhandled async exception
File: plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await
Line: 436
Type: matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitException

THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: BedcoreProtect v0.6.1

Code:
[427] 		}
[428] 
[429] 		parent::reject($throwable);
[430] 		foreach($this->catches as $class => $onError){
[431] 			if($class === "" || is_a($throwable, $class)){
[432] 				$onError($throwable);
[433] 				return;
[434] 			}
[435] 		}
[436] 		throw new AwaitException("Unhandled async exception", 0, $throwable);
[437] 	}
[438] 
[439] 	public function isSleeping() : bool{
[440] 		return $this->sleeping;
[441] 	}
[442] 
[443] 	public function isUltimate() : bool{
[444] 		return $this->ultimate;
[445] 	}
[446] 

Backtrace:
#0 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(202): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
#1 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(176): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure)
#2 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(397): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure)
#3 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(48): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild)
#4 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(432): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
#5 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(202): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
#6 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(176): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure)
#7 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(397): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure)
#8 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(48): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild)
#9 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(240): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError, NULL )
#10 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(186): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->reportError(array[2], object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError, NULL )
#11 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlThreadPool(112): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
#12 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(268): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlThreadPool->readResults(array[12472])
#13 plugins/BedcoreProtect_dev-291.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlThreadPool(65): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->checkResults()
#14 vendor/pocketmine/snooze/src/SleeperHandler(123): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlThreadPool->matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}()
#15 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
#16 src/pocketmine/Server(2146): pocketmine\snooze\SleeperHandler->sleepUntil(double 1589800801.914)
#17 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
#18 src/pocketmine/Server(1584): pocketmine\Server->start()
#19 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#20 src/pocketmine/PocketMine(295): pocketmine\server()
#21 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

PocketMine-MP version: 3.12.1 [Protocol 390]
Git commit: ded45bddfe4d458d5645e28a5ad2f6c683d61e8f
uname -a: Linux 643340b8-28d5-4090-bb05-7e3ac9a12b14 4.5.0-0.bpo.2-amd64 #1 SMP Debian 4.5.4-1~bpo8+1 (2016-05-13) x86_64
PHP Version: 7.3.16
Zend version: 3.3.16
OS : Linux, linux

timezone

Issue description

  • Expected result: What were you expecting to happen?
  • Actual result: What actually happened?

Steps to reproduce the issue

  1. Put plugin for plugins folder
  2. start server, watch console

OS and versions

  • BedcoreProtect:
  • PocketMine-MP:
  • PHP: 7.x
  • Server OS: Windws 10 64 Bit
  • Game version: Win10

Plugins

  • If you remove all plugins, does the issue still occur?
  • If the issue is not reproducible without plugins:
    • Can you provide sample, minimal reproducing code for the issue? If so, paste it in the bottom section

Crashdump, backtrace or other files

20:14:39 <Server thread/Critical> ErrorException: "Undefined index: timezone" (EXCEPTION) in "plugins/BedcoreProtect-experimental/src/matcracker/BedcoreProtect/utils/ConfigParser" at line 291
20:14:39 <Server thread/Debug> #0 plugins/BedcoreProtect-experimental/src/matcracker/BedcoreProtect/utils/ConfigParser(291): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[25] Undefined index: timezone, string[133] C:\Users\crypt\Desktop\Mapp..k\Altay2-master\plugins\BedcoreProtect-experimental, integer 291, array[0])
20:14:39 <Server thread/Debug> #1 plugins/BedcoreProtect-experimental/src/matcracker/BedcoreProtect/utils/ConfigParser(281): matcracker\BedcoreProtect\utils\ConfigParser->getTimezone()
20:14:39 <Server thread/Debug> #2 plugins/BedcoreProtect-experimental/src/matcracker/BedcoreProtect/Main(108): matcracker\BedcoreProtect\utils\ConfigParser->validate()
20:14:39 <Server thread/Debug> #3 src/pocketmine/plugin/PluginManager(180): matcracker\BedcoreProtect\Main->onLoad()
20:14:39 <Server thread/Debug> #4 src/pocketmine/plugin/PluginManager(335): pocketmine\plugin\PluginManager->loadPlugin(string[80] C:\Users\crypt\Desktop\Mapp..k\Altay2-master\plugins\BedcoreProtect-experimental, array[1])
20:14:39 <Server thread/Debug> #5 plugins/PocketMine-DevTools_dev-1.phar/src/DevTools/DevTools(49): pocketmine\plugin\PluginManager->loadPlugins(string[53] C:\Users\crypt\Desktop\Mapp..k\Altay2-master\plugins, array[1])
20:14:39 <Server thread/Debug> #6 src/pocketmine/plugin/PluginBase(115): DevTools\DevTools->onEnable()
20:14:39 <Server thread/Debug> #7 src/pocketmine/plugin/PluginManager(541): pocketmine\plugin\PluginBase->setEnabled(boolean 1)
20:14:39 <Server thread/Debug> #8 src/pocketmine/Server(1894): pocketmine\plugin\PluginManager->enablePlugin(object DevTools\DevTools)
20:14:39 <Server thread/Debug> #9 src/pocketmine/Server(1880): pocketmine\Server->enablePlugin(object DevTools\DevTools)
20:14:39 <Server thread/Debug> #10 src/pocketmine/Server(1605): pocketmine\Server->enablePlugins(integer 0)
20:14:39 <Server thread/Debug> #11 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[45] C:\Users\crypt\Desktop\Mapp..k\Altay2-master, string[53] C:\Users\crypt\Desktop\Mapp..k\Altay2-master\plugins)
20:14:39 <Server thread/Debug> #12 src/pocketmine/PocketMine(296): pocketmine\server()
20:14:39 <Server thread/Debug> #13 (11): require(string[100] phar://C:/Users/crypt/Desktop/Mapp..k/Altay2-master/PocketMine-MP.phar/src/pocke)
20:14:39 <Server thread/Critical> Could not load plugin 'BedcoreProtect'

Error Level: matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitException line #377

Issue description

-My server just crashes randomly and I think It has something to do with the plugin Burger Spawers but the crash archive says its at this directory matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitException in bedcore protect at line #377

Steps to reproduce the issue

IDK what this is lol.

OS and versions

< api is 3.14.2
os version is ubuntu linux desktop 18.04 running a webserver software for multiple servers

Crash Archive- https://crash.pmmp.io/view/4220160

Wrong natural break logging

Issue description

  1. Enable the natural break option
  2. Place the following blocks:
    image
  3. Break the torch.
  • Expected result: Ladder not logged
  • Actual result: Ladder logged.

Steps to reproduce the issue

The issues is reproducible with more transparent blocks.

OS and versions

  • BedcoreProtect: 0.5.x-0.6.x
  • PocketMine-MP: 3.12.0
  • PHP: 7.3
  • Server OS: Win10
  • Game version: PE/Win10

Crash when entity got killed by block

Issue description

  • Expected result: server donยดt crash
  • Actual result: Server crash

Steps to reproduce the issue

I canยดt figure what triggers the crash, only have logs

OS and versions

  • BedcoreProtect: 0.7.1
  • PocketMine-MP: 3.17.2
  • PHP: I'm using a host so I don't know this and the next answer
  • Server OS:
  • Game version: PE/Win10 (delete as appropriate)

Plugins

Plugins (27): AntiBlock v1.0.0, ArmorStandExpanded v1.2.3, BedcoreProtect v0.7.1, BlockSniper v3.2.3, BuilderTools v1.2.0-beta2, ByteMe v1.0.0, ChestShop v2.4.0, ClearPlayer v1.0.0, CrashFixer v1, CustomAreas v1.2.1, EC-TableUI v1.1.2-pre, EconomyAPI v5.7.2, LiveXYZ v0.7.0, LockMyStuff v1.1.0, Netherite v1.1, OnlineTime v1.3, PiggyFactions v1.1.3, PlayerInfo v2.1.4, PureChat v1.4.11, PureEntitiesX v0.6.7, PurePerms v1.4.3, SimpleHome v1.0.3, Sponges v1.1.0, Uncensor v0.2.1, VanillaCoordinates v1.0.0, XGTAntiXRay v1.0.0, essentialsTP v1.2.2

  • If you remove all plugins, does the issue still occur? Error occurs one or two times a day so would take too much time to test it, and I have active players, if possible I would want to do not disturb them
  • If the issue is not reproducible without plugins:
    • Can you provide sample, minimal reproducing code for the issue? If so, paste it in the bottom section

Crashdump, backtrace or other files

https://pastebin.com/05QAShM4

https://pastebin.com/PGBBJwmf

Inventory transition tracking not working correctly

Issue description

Sometimes the inventory transaction tracking system does not work properly with certain actions. It needs to be revised.

Steps to reproduce the issue

  1. Shift+Click+Mouse Drag

OS and versions

  • BedcoreProtect: 0.10.4/1.0.0
  • PocketMine-MP: 3.25.0/4.0.0-BETA12
  • PHP: 8.0
  • Server OS: Windows
  • Game version: Win10

Could not create a Tile on unloaded chunk during a rollback

Issue description

Issue reported by an user in Discord channel:

[19:02:44] [Server thread/CRITICAL]: matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitException: "Unhandled async exception: Attempted to create tile pocketmine\tile\Chest in unloaded chunk -32 10" (EXCEPTION) in "plugins/BedcoreProtect_dev-414.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await" at line 465
[19:02:44] [Server thread/CRITICAL]: #0 plugins/BedcoreProtect_dev-414.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(217): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->reject(object InvalidStateException)
[19:02:44] [Server thread/CRITICAL]: #1 plugins/BedcoreProtect_dev-414.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(200): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure)
[19:02:44] [Server thread/CRITICAL]: #2 plugins/BedcoreProtect_dev-414.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(422): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure)
[19:02:44] [Server thread/CRITICAL]: #3 plugins/BedcoreProtect_dev-414.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(63): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild)
[19:02:44] [Server thread/CRITICAL]: #4 plugins/BedcoreProtect_dev-414.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(461): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->reject(object InvalidStateException)
[19:02:44] [Server thread/CRITICAL]: #5 plugins/BedcoreProtect_dev-414.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(217): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->reject(object InvalidStateException)
[19:02:44] [Server thread/CRITICAL]: #6 plugins/BedcoreProtect_dev-414.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(200): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure)
[19:02:44] [Server thread/CRITICAL]: #7 plugins/BedcoreProtect_dev-414.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(432): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure)
[19:02:44] [Server thread/CRITICAL]: #8 plugins/BedcoreProtect_dev-414.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(52): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild)
[19:02:44] [Server thread/CRITICAL]: #9 plugins/BedcoreProtect_dev-414.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(448): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->resolve(array[646837])
[19:02:44] [Server thread/CRITICAL]: #10 plugins/BedcoreProtect_dev-414.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(223): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->resolve(array[646837])
[19:02:44] [Server thread/CRITICAL]: #11 plugins/BedcoreProtect_dev-414.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(200): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure)
[19:02:44] [Server thread/CRITICAL]: #12 plugins/BedcoreProtect_dev-414.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(432): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure)
[19:02:44] [Server thread/CRITICAL]: #13 plugins/BedcoreProtect_dev-414.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(52): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild)
[19:02:44] [Server thread/CRITICAL]: #14 plugins/BedcoreProtect_dev-414.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(159): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->resolve(array[646837], array[8])
[19:02:44] [Server thread/CRITICAL]: #15 plugins/BedcoreProtect_dev-414.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(189): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}(object matcracker\BedcoreProtect\libs\poggit\libasynql\result\SqlSelectResult)
[19:02:44] [Server thread/CRITICAL]: #16 plugins/BedcoreProtect_dev-414.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlThreadPool(112): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}(object matcracker\BedcoreProtect\libs\poggit\libasynql\result\SqlSelectResult)
[19:02:44] [Server thread/CRITICAL]: #17 plugins/BedcoreProtect_dev-414.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(268): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlThreadPool->readResults(array[1])
[19:02:44] [Server thread/CRITICAL]: #18 plugins/BedcoreProtect_dev-414.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlThreadPool(65): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->checkResults()
[19:02:44] [Server thread/CRITICAL]: #19 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlThreadPool->matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}()
[19:02:44] [Server thread/CRITICAL]: #20 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()
[19:02:44] [Server thread/CRITICAL]: #21 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1624647763.7865)
[19:02:44] [Server thread/CRITICAL]: #22 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
[19:02:44] [Server thread/CRITICAL]: #23 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
[19:02:44] [Server thread/CRITICAL]: #24 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
[19:02:44] [Server thread/CRITICAL]: #25 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
[19:02:44] [Server thread/CRITICAL]: #26 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
[19:02:44] [Server thread/CRITICAL]: Previous: InvalidStateException: "Attempted to create tile pocketmine\tile\Chest in unloaded chunk -32 10" (EXCEPTION) in "pmsrc/src/pocketmine/level/Level" at line 2609

Steps to reproduce the issue

  1. Rollback a Chest in an unloaded chunk

OS and versions

  • BedcoreProtect: 0.8.3
  • PocketMine-MP: 3.21.0
  • PHP: 7.4
  • Server OS: Win
  • Game version: PE/Win10 (delete as appropriate)

Plugins

  • If you remove all plugins, does the issue still occur?
  • If the issue is not reproducible without plugins:
    • Can you provide sample, minimal reproducing code for the issue? If so, paste it in the bottom section

Crashdump, backtrace or other files

libasynql error not supporting PHP 8.1

PocketMine-MP Crash Dump Thu May 18 15:32:35 UTC 2023

PocketMine-MP version: 4.21.0 [Protocol 582]
Git commit: ef40934d24748025d15d9b86acc28fbb82d6de6a
PHP version: 8.1.19
OS: Linux, linux

THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: BedcoreProtect

Error: During inheritance of JsonSerializable: Uncaught ErrorException: Return type of matcracker\BedcoreProtect\libs\poggit\libasynql\generic\GenericStatementImpl::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///home/container/plugins/BedcoreProtect (1).phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/generic/GenericStatementImpl.php:208
File: plugins/BedcoreProtect (1).phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/generic/GenericStatementImpl
Line: 41
Type: E_ERROR
Backtrace:

Double Chest logging

Issue description

  • Expected result: What were you expecting to happen?
    record found
  • Actual result: What actually happened?
    No data found

Steps to reproduce the issue

  1. place two chest adjacently
  2. double chest created
  3. click the left/right side of the double chest
  4. put/take some item from the chest
  5. "/bcp menu" -> Enable inspector
  6. click the opposite side of the double chest which you clicked in step 3

OS and versions

  • BedcoreProtect: 0.5.6
  • PocketMine-MP: 1.14.0
  • Game version: PE(delete as appropriate)

Plugins

AlwaysSpawn v2.2.4, DevTools v1.13.5, Sheep v5.2.3, BlockSniper v3.2.3, BedcoreProtect v0.5.6, essentialsTP v1.2.2, Specter v0.5

  • If you remove all plugins, does the issue still occur? YES

Does not load. :(

Issue description

  • Expected result: Updated bedcore protect loads.
  • Actual result: Error

Steps to reproduce the issue

  1. Go to https://poggit.pmmp.io/p/BedcoreProtect/0.6.1 and download bedcore protect.
  2. Install it into your server.
  3. Start the server.

OS and versions

  • BedcoreProtect: 0.6.1
  • PocketMine-MP: 3.12.2
  • PHP: 7.3
  • Server OS: Windows 10

Plugins

PlayerSelectors v1.0.7, EasyCommandAutofill v1.0.1, ModSpectate v0.0.1, PurePerms v1.4.3, DevTools v1.14.0, MaxEnchants v1.2.1, EssentialsPE v2.1.0, Worlds v2.0.3, MagicTelePortal v1.3.4, AutoClearLagg v3.0.0, SkyBlock v3.0.0, BedcoreProtect v0.6.1, BuilderTools v1.2.0-beta2, Slapper v1.4.0, FormAPI v1.3.0, InvSee v1.0.0, WorldBorder v1.0.0-3.0.0, iControlU v1.4.0, PureChat v1.4.11, FactionsPro v1.3.20, OnlineTime v1.3

  • If you remove all plugins, does the issue still occur? NO
  • If the issue is not reproducible without plugins:
    • Can you provide sample, minimal reproducing code for the issue? If so, paste it in the bottom section

Crashdump, backtrace or other files

=====START ERROR=====
[14:11:36] [Server thread/INFO]: Enabling BedcoreProtect v0.6.1
[14:11:36] [Server thread/CRITICAL]: InvalidArgumentException: "The query bcp.transaction.begin has not been loaded" (EXCEPTION) in "plugins/bedcoreprotect.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl" at line 174
[14:11:36] [Server thread/DEBUG]: #0 plugins/bedcoreprotect.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(109): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->executeImpl(string[21] bcp.transaction.begin, array[0], integer 0, object Closure, NULL )
[14:11:36] [Server thread/DEBUG]: #1 plugins/bedcoreprotect.phar/src/matcracker/BedcoreProtect/storage/queries/PluginQueries(51): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->executeGeneric(string[21] bcp.transaction.begin)
[14:11:36] [Server thread/DEBUG]: #2 plugins/bedcoreprotect.phar/src/matcracker/BedcoreProtect/Main(172): matcracker\BedcoreProtect\storage\queries\PluginQueries->beginTransaction()
[14:11:36] [Server thread/DEBUG]: #3 src/pocketmine/plugin/PluginBase(115): matcracker\BedcoreProtect\Main->onEnable()
[14:11:36] [Server thread/DEBUG]: #4 src/pocketmine/plugin/PluginManager(541): pocketmine\plugin\PluginBase->setEnabled(boolean 1)
[14:11:36] [Server thread/DEBUG]: #5 src/pocketmine/Server(1783): pocketmine\plugin\PluginManager->enablePlugin(object matcracker\BedcoreProtect\Main)
[14:11:36] [Server thread/DEBUG]: #6 src/pocketmine/Server(1769): pocketmine\Server->enablePlugin(object matcracker\BedcoreProtect\Main)
[14:11:36] [Server thread/DEBUG]: #7 src/pocketmine/Server(1852): pocketmine\Server->enablePlugins(integer 1)
[14:11:36] [Server thread/DEBUG]: #8 src/pocketmine/command/defaults/ReloadCommand(49): pocketmine\Server->reload()
[14:11:36] [Server thread/DEBUG]: #9 src/pocketmine/command/SimpleCommandMap(248): pocketmine\command\defaults\ReloadCommand->execute(object pocketmine\command\ConsoleCommandSender, string[6] reload, array[0])
[14:11:36] [Server thread/DEBUG]: #10 src/pocketmine/Server(1807): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[6] reload)
[14:11:36] [Server thread/DEBUG]: #11 src/pocketmine/Server(1419): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[6] reload)
[14:11:36] [Server thread/DEBUG]: #12 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\Server->pocketmine{closure}()
[14:11:36] [Server thread/DEBUG]: #13 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
[14:11:36] [Server thread/DEBUG]: #14 src/pocketmine/Server(2146): pocketmine\snooze\SleeperHandler->sleepUntil(double 1590185496.3764)
[14:11:36] [Server thread/DEBUG]: #15 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
[14:11:36] [Server thread/DEBUG]: #16 src/pocketmine/Server(1584): pocketmine\Server->start()
[14:11:36] [Server thread/DEBUG]: #17 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[81] C:\Users\zhang\OneDrive\Documents\Minecraft\Servers\Private_Server\PocketMine-MP, string[89] C:\Users\zhang\OneDrive\Documents\Minecraft\Servers\Private_Server\PocketMine-MP)
[14:11:36] [Server thread/DEBUG]: #18 src/pocketmine/PocketMine(295): pocketmine\server()
[14:11:36] [Server thread/DEBUG]: #19 (11): require(string[136] phar://C:/Users/zhang/OneDrive/Documents/Minecraft/Servers/Private_Server/Pocket)
[14:11:36] [Server thread/INFO]: Disabling BedcoreProtect v0.6.1
=====END ERROR=====

Broken Block is logged 7 times

Issue description

  • Expected result: Log broken block once
  • Actual result: Logged broken block 7 times

Steps to reproduce the issue

  1. Break a block
  2. Inspect block

OS and versions

  • BedcoreProtect: 0.7.2
  • PocketMine-MP: 3.18.0
  • PHP: 7 I think
  • Server OS: Linux - also im on a hosting site so its not my pc
  • Game version: PE/Win10

Plugins

Plugins (1): BedcoreProtect v0.7.2

  • If you remove all plugins, does the issue still occur?
    • Yes, I created a new server and tested it.
  • If the issue is not reproducible without plugins:
    • Can you provide sample, minimal reproducing code for the issue? If so, paste it in the bottom section

Crashdump, backtrace or other files

  • I burned a block with fire and it only logged once.

Tengo un error y es que hace que el servidor Crashee, no lo cierra ni nada, solo deshabilita algunos Plugins y no permite que entren usuarios.

Issue description

  • Expected result: What were you expecting to happen?
  • Actual result: What actually happened?

Steps to reproduce the issue

  1. ... Instalar el Complemento
  2. ... Y en un rato deberรญa suceder

OS and versions

  • BedcoreProtect:
  • PocketMine-MP:
  • PHP:
  • Server OS:
  • Game version: PE/Win10 (delete as appropriate)

Plugins

  • If you remove all plugins, does the issue still occur?
  • If the issue is not reproducible without plugins:
    • Can you provide sample, minimal reproducing code for the issue? If so, paste it in the bottom section

Crashdump, backtrace or other files

Inspector is not able to see "transactions" with item frames.

Issue description

The transaction is logged but when showing the log page, due to some filters between actions and the query, the transaction is not showed.

Steps to reproduce the issue

  1. Insert/remove an item to/from item frame
  2. Enable the inspector mode
  3. Click to the item frame
  4. The transaction will not appear.

Error onEnable

Issue description

  • Expected result: What were you expecting to happen?
    To enable this on load
  • Actual result: What actually happened?
    Doesnt loads, gives some config errors

Steps to reproduce the issue

  1. ... PUt the .phar in your plugins folder
  2. ... And start the server.

OS and versions

  • PocketMine-MP: 3.8.1
  • PHP: 7.2
  • Server OS: Windows
  • Game version: 1.11.3

Plugins

Devtools, BedcoreProtect

  • If you remove all plugins, does the issue still occur?
    Yes
  • If the issue is not reproducible without plugins:
    • Can you provide sample, minimal reproducing code for the issue?
      [Server thread/INFO]: Enabling BedcoreProtect v0.1.0
      [08:58:00] [Server thread/WARNING]: [BedcoreProtect] Configuration's file is not correct.
      [08:58:00] [Server thread/WARNING]: [BedcoreProtect] database.mysql.schema must not be empty
      [08:58:00] [Server thread/INFO]: Disabling BedcoreProtect v0.1.0

Crashdump, backtrace or other files

Unable to execute statement: cannot start a transaction within a transaction

Issue description

  • Expected result: What were you expecting to happen? Dont crash i think
  • Actual result: What actually happened? Crash

Steps to reproduce the issue

IDK

OS and versions

  • BedcoreProtect: dev 385
  • PocketMine-MP: 3.19.1
  • PHP: 7.4
  • Server OS: Linux
  • Game version: W10

Plugins

Cant share

  • If you remove all plugins, does the issue still occur?
    IDK

Crashdump, backtrace or other files

Warning: SQLite3Stmt::execute(): Unable to execute statement: cannot start a transaction within a transaction in phar:///home/container/plugins/BedcoreProtect_dev-385.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/sqlite3/Sqlite3Thread.php on line 89
[20:41:54] [Server thread/CRITICAL]: ErrorException: "Invalid argument supplied for foreach()" (EXCEPTION) in "plugins/BedcoreProtect_dev-385.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await" at line 459
[20:41:54] [Server thread/CRITICAL]: #0 plugins/BedcoreProtect_dev-385.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(459): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string[39] Invalid argument supplied for foreach(), string[123] phar:///home/container/plugins/BedcoreProtect_dev-385.phar/src/matcracker/Bedcor, integer 459, array[1])
[20:41:54] [Server thread/CRITICAL]: #1 plugins/BedcoreProtect_dev-385.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(217): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
[20:41:54] [Server thread/CRITICAL]: #2 plugins/BedcoreProtect_dev-385.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(200): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure)
[20:41:54] [Server thread/CRITICAL]: #3 plugins/BedcoreProtect_dev-385.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(422): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure)
[20:41:54] [Server thread/CRITICAL]: #4 plugins/BedcoreProtect_dev-385.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(63): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild)
[20:41:54] [Server thread/CRITICAL]: #5 plugins/BedcoreProtect_dev-385.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(461): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
[20:41:54] [Server thread/CRITICAL]: #6 plugins/BedcoreProtect_dev-385.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(217): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
[20:41:54] [Server thread/CRITICAL]: #7 plugins/BedcoreProtect_dev-385.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(200): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure)
[20:41:54] [Server thread/CRITICAL]: #8 plugins/BedcoreProtect_dev-385.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(422): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure)
[20:41:54] [Server thread/CRITICAL]: #9 plugins/BedcoreProtect_dev-385.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(63): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild)
[20:41:54] [Server thread/CRITICAL]: #10 plugins/BedcoreProtect_dev-385.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(240): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError, NULL )
[20:41:54] [Server thread/CRITICAL]: #11 plugins/BedcoreProtect_dev-385.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(186): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->reportError(object Closure, object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError, NULL )
[20:41:54] [Server thread/CRITICAL]: #12 plugins/BedcoreProtect_dev-385.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlThreadPool(112): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
[20:41:54] [Server thread/CRITICAL]: #13 plugins/BedcoreProtect_dev-385.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(268): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlThreadPool->readResults(array[8])
[20:41:54] [Server thread/CRITICAL]: #14 plugins/BedcoreProtect_dev-385.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlThreadPool(65): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->checkResults()
[20:41:54] [Server thread/CRITICAL]: #15 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlThreadPool->matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}()
[20:41:54] [Server thread/CRITICAL]: #16 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()
[20:41:54] [Server thread/CRITICAL]: #17 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1621370514.5678)
[20:41:54] [Server thread/CRITICAL]: #18 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
[20:41:54] [Server thread/CRITICAL]: #19 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
[20:41:54] [Server thread/CRITICAL]: #20 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
[20:41:54] [Server thread/CRITICAL]: #21 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
[20:41:54] [Server thread/CRITICAL]: #22 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Crash when interacting with ItemFrame without item in hand

Issue description

Crash when interacting with ItemFrame without item in hand

OS and versions

  • BedcoreProtect: 1.0.0
  • PocketMine-MP: 4.0.2
  • PHP: 8.0

Crashdump, backtrace or other files

https://crash.pmmp.io/view/5663535

#0 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/listeners/PlayerListener(169): matcracker\BedcoreProtect\storage\queries\BlocksQueries->addItemFrameLogByPlayer(object pocketmine\player\Player#114277, object pocketmine\block\ItemFrame#127540, NULL , object matcracker\BedcoreProtect\enums\Action#114474)
#1 pmsrc/src/event/RegisteredListener(75): matcracker\BedcoreProtect\listeners\PlayerListener->trackPlayerInteraction(object pocketmine\event\player\PlayerInteractEvent#135222)
#2 pmsrc/src/event/Event(62): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\player\PlayerInteractEvent#135222)
#3 pmsrc/src/world/World(1807): pocketmine\event\Event->call()
#4 pmsrc/src/player/Player(1611): pocketmine\world\World->useItemOn(object pocketmine\math\Vector3#135036, object pocketmine\item\ItemBlock#135172, integer 3, object pocketmine\math\Vector3#135221, object pocketmine\player\Player#114277, true)
#5 pmsrc/src/network/mcpe/handler/InGamePacketHandler(360): pocketmine\player\Player->interactBlock(object pocketmine\math\Vector3#135036, integer 3, object pocketmine\math\Vector3#135221)
#6 pmsrc/src/network/mcpe/handler/InGamePacketHandler(223): pocketmine\network\mcpe\handler\InGamePacketHandler->handleUseItemTransaction(object pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData#135211)
#7 pmsrc/vendor/pocketmine/bedrock-protocol/src/InventoryTransactionPacket(114): pocketmine\network\mcpe\handler\InGamePacketHandler->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#135096)
#8 pmsrc/src/network/mcpe/NetworkSession(395): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#122085)
#9 pmsrc/src/network/mcpe/NetworkSession(358): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#135096, string[40] ..............ek.C...C...C.68?.X.......%)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(192): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[195] ..c`b`........a.+#..X...............T..........r.rX.|A(....R..9.....e.\g.3.{..l{)
#11 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(integer 1, string[204] .Q.zX..P?['C.=...5X...d.B......2F..._..B......5pT.KRu..).A......#./B.e....nw.)..)
#12 pmsrc/src/network/mcpe/raklib/RakLibInterface(122): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#24584)
#13 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#14 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#15 pmsrc/src/Server(1651): pocketmine\snooze\SleeperHandler->sleepUntil(double 1640124007.0771)
#16 pmsrc/src/Server(1038): pocketmine\Server->tickProcessor()
#17 pmsrc/src/PocketMine(303): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#18 pmsrc/src/PocketMine(326): pocketmine\server()
#19 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Improve logic to get logs with lookup command

Issue description

Actually if you have a database with a lot of records and you run /bcp lookup t=5d, the server crashes due to memory limit. It's necessary to limit the number of records and change the behaviour of /bcp show command.

Steps to reproduce the issue

  1. Database with a large number of logs
  2. Running /bcp lookup t=5d
  3. Fatal error: Allowed memory size of 1073741824 bytes exhausted

OS and versions

  • BedcoreProtect: 0.9.0
  • PocketMine-MP: 3.21.0
  • PHP: 7.4
  • Server OS: Win
  • Game version: PE/Win10 (delete as appropriate)

Crashdump, backtrace or other files

Unhandled async exception

Issue description

crash server with defaut config.yml

  • Expected result: What were you expecting to happen?
  • Actual result: What actually happened?

Steps to reproduce the issue

  1. ...
  2. ...

OS and versions

  • BedcoreProtect:v0.6.2
  • PocketMine-MP: 3.12.5
  • PHP: 7.3.16
  • Server OS:
  • Game version: PE/Win10 (delete as appropriate)

Plugins

  • If you remove all plugins, does the issue still occur?
  • If the issue is not reproducible without plugins:
    • Can you provide sample, minimal reproducing code for the issue? If so, paste it in the bottom section

Crashdump, backtrace or other files

PocketMine-MP Crash Dump Thu Jun 4 20:47:52 WEST 2020

Error: Unhandled async exception
File: plugins/BedcoreProtect_dev-327.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await
Line: 436
Type: matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitException

THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: BedcoreProtect v0.6.2

Code:
[427] 		}
[428] 
[429] 		parent::reject($throwable);
[430] 		foreach($this->catches as $class => $onError){
[431] 			if($class === "" || is_a($throwable, $class)){
[432] 				$onError($throwable);
[433] 				return;
[434] 			}
[435] 		}
[436] 		throw new AwaitException("Unhandled async exception", 0, $throwable);
[437] 	}
[438] 
[439] 	public function isSleeping() : bool{
[440] 		return $this->sleeping;
[441] 	}
[442] 
[443] 	public function isUltimate() : bool{
[444] 		return $this->ultimate;
[445] 	}
[446] 

Backtrace:
#0 plugins/BedcoreProtect_dev-327.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(202): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
#1 plugins/BedcoreProtect_dev-327.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(176): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure)
#2 plugins/BedcoreProtect_dev-327.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(397): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure)
#3 plugins/BedcoreProtect_dev-327.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(48): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild)
#4 plugins/BedcoreProtect_dev-327.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(432): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
#5 plugins/BedcoreProtect_dev-327.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(202): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
#6 plugins/BedcoreProtect_dev-327.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(176): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure)
#7 plugins/BedcoreProtect_dev-327.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(397): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure)
#8 plugins/BedcoreProtect_dev-327.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(48): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild)
#9 plugins/BedcoreProtect_dev-327.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(240): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError, NULL )
#10 plugins/BedcoreProtect_dev-327.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(186): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->reportError(array[2], object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError, NULL )
#11 plugins/BedcoreProtect_dev-327.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlThreadPool(112): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
#12 plugins/BedcoreProtect_dev-327.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(268): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlThreadPool->readResults(array[478115])
#13 plugins/BedcoreProtect_dev-327.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlThreadPool(65): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->checkResults()
#14 vendor/pocketmine/snooze/src/SleeperHandler(123): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlThreadPool->matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}()
#15 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
#16 src/pocketmine/Server(2146): pocketmine\snooze\SleeperHandler->sleepUntil(double 1591300070.5792)
#17 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
#18 src/pocketmine/Server(1584): pocketmine\Server->start()
#19 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#20 src/pocketmine/PocketMine(295): pocketmine\server()
#21 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

PocketMine-MP version: 3.12.5 [Protocol 390]
Git commit: c32026333f8b86b99c7b1994a91f63a9687dd56e
uname -a: Linux 643340b8-28d5-4090-bb05-7e3ac9a12b14 4.19.0-0.bpo.6-amd64 #1 SMP Debian 4.19.67-2+deb10u2~bpo9+1 (2019-11-12) x86_64
PHP Version: 7.3.16
Zend version: 3.3.16
OS : Linux, linux

PM4

Can you update BedcoreProtect PM4 ?

Unhandled async exception: SQL EXECUTION error: Lock wait timeout exceeded; try restarting transaction

Issue description

This issue comes from this crashdump: https://crash.pmmp.io/view/5736302

Full error message: Unhandled async exception: SQL EXECUTION error: Lock wait timeout exceeded; try restarting transaction, for query INSERT INTO blocks_log(history_id, old_id, old_meta, old_nbt, new_id, new_meta, new_nbt) VALUES (4216, 46, 0, NULL, 0, 0, NULL); | []

Steps to reproduce the issue

Not yet known

OS and versions

  • BedcoreProtect: 1.0.1
  • PocketMine-MP: 4.0.5
  • PHP: 8.0.13
  • Server OS: Linux
  • Game version: PE/Win10 (delete as appropriate)

Plugins

Name Version State Author(s) Website
AlwaysSpawn 2.2.5 Enabled Philip Shilling ย 
AntiCombatLog 1.0.0 Enabled Electro ย 
AntiVoid 1.2.0 Enabled FiberglassCivic Visit
BedcoreProtect 1.0.1 Enabled matcracker Visit
BetterBan 4.0.2 Enabled supercrfafter333 ย 
ClearLag 1.0.0 Enabled tobias14 Visit
DevTools 1.15.0 Enabled PocketMine Team Visit
EasyEdit 2.0.1 Enabled platz1de ย 
EconomyAPI 5.7.3-PM4 Enabled onebone ย 
ImageOnMap 1.0.0 Enabled CzechPMDevs , VixikHD ย 
InvSee 2.0.1 Enabled BlockHorizons ย 
MultiWorld 1.7.0-beta4 Enabled CzechPMDevs , VixikCZ , fuyutsuki , kaliiks Visit
PureChat 2.0.0 Enabled Vecnavium , 64FF00 ย 
PurePerms 1.4.4 Enabled Vecnavium , 64FF00 & ProjectInfinity ย 
Sudo 1.1 Enabled ErikX ย 
VanillaHopper 1.3.0 Enabled ColinHDev Visit

Crashdump, backtrace or other files

#0 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(217): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError#135716)
#1 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(200): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure#138806)
#2 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(422): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure#138806)
#3 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(63): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild#129622)
#4 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(461): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError#135716)
#5 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(217): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError#135716)
#6 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(200): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure#134613)
#7 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(422): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure#134613)
#8 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(63): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild#91962)
#9 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(461): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError#135716)
#10 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(217): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError#135716)
#11 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(200): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure#129687)
#12 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(422): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure#129687)
#13 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(63): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild#113194)
#14 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(249): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError#135716, NULL )
#15 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(195): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->reportError(object Closure#90311, object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError#135716, NULL )
#16 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlThreadPool(112): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError#135716)
#17 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(277): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlThreadPool->readResults(array[1])
#18 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlThreadPool(65): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->checkResults()
#19 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlThreadPool->matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}()
#20 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#21 pmsrc/src/Server(1657): pocketmine\snooze\SleeperHandler->sleepUntil(double 1641409311.61)
#22 pmsrc/src/Server(1044): pocketmine\Server->tickProcessor()
#23 pmsrc/src/PocketMine(303): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#24 pmsrc/src/PocketMine(326): pocketmine\server()
#25 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

crash upon server start

Issue description

  • Expected result: plugin to work
  • Actual result: crashed the server every time it starts

Steps to reproduce the issue

  1. download latest phar from poggit (144)
  2. put it in plugins folder

OS and versions

  • BedcoreProtect: if i do /core status it gives me this error (matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitException: "Unhandled async exception" (EXCEPTION) in "plugins/BedcoreProtect_dev-144.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await" at line 358) but the version is the compiled #144 phar from poggit
  • PocketMine-MP: 3.9.1 protocol 361
  • PHP: 7.2
  • Server OS: windows
  • Game version: PE/Win10 (delete as appropriate)

Plugins

  • If you remove all plugins, does the issue still occur?
  • If the issue is not reproducible without plugins:
    • Can you provide sample, minimal reproducing code for the issue? If so, paste it in the bottom section

Crashdump, backtrace or other files

ErrorException: "yaml_parse(): end of stream reached without finding document 0" (EXCEPTION) in "plugins/BedcoreProtect_dev-144.phar/src/matcracker/BedcoreProtect/storage/PatchManager" at line 43

Log players gt that opens a chest

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

Describe alternatives you've considered

Additional context

crashserver

Issue description

server crash

  • Expected result: What were you expecting to happen?
  • Actual result: What actually happened?
    server crash randomly

Steps to reproduce the issue

  1. ... server crash randomly in game
  2. ...

OS and versions

Plugins

  • If you remove all plugins, does the issue still occur?
  • If the issue is not reproducible without plugins:
    • Can you provide sample, minimal reproducing code for the issue? If so, paste it in the bottom section

Crashdump, backtrace or other files

PocketMine-MP Crash Dump Sun May 17 04:45:40 WEST 2020

Error: Unhandled async exception
File: plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await
Line: 377
Type: matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitException

THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: BedcoreProtect v0.6.0

Code:
[368] 		}
[369] 
[370] 		parent::reject($throwable);
[371] 		foreach($this->catches as $class => $onError){
[372] 			if($class === "" || is_a($throwable, $class)){
[373] 				$onError($throwable);
[374] 				return;
[375] 			}
[376] 		}
[377] 		throw new AwaitException("Unhandled async exception", 0, $throwable);
[378] 	}
[379] 
[380] 	public function isSleeping() : bool{
[381] 		return $this->sleeping;
[382] 	}
[383] 
[384] 	public function isUltimate() : bool{
[385] 		return $this->ultimate;
[386] 	}
[387] 

Backtrace:
#0 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(143): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
#1 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(117): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure)
#2 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(338): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure)
#3 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(48): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild)
#4 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(373): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
#5 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(143): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
#6 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(117): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure)
#7 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(338): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure)
#8 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(48): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild)
#9 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(240): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError, NULL )
#10 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(186): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->reportError(array[2], object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError, NULL )
#11 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlThreadPool(112): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
#12 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(268): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlThreadPool->readResults(array[1])
#13 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlThreadPool(65): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->checkResults()
#14 vendor/pocketmine/snooze/src/SleeperHandler(123): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlThreadPool->matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}()
#15 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
#16 src/pocketmine/Server(2146): pocketmine\snooze\SleeperHandler->sleepUntil(double 1589687140.7407)
#17 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
#18 src/pocketmine/Server(1584): pocketmine\Server->start()
#19 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#20 src/pocketmine/PocketMine(295): pocketmine\server()
#21 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

PocketMine-MP version: 3.12.1 [Protocol 390]
Git commit: ded45bddfe4d458d5645e28a5ad2f6c683d61e8f
uname -a: Linux 643340b8-28d5-4090-bb05-7e3ac9a12b14 4.5.0-0.bpo.2-amd64 #1 SMP Debian 4.5.4-1~bpo8+1 (2016-05-13) x86_64
PHP Version: 7.3.16
Zend version: 3.3.16
OS : Linux, linux

2020-05-17 [05:45:40] [Server thread/CRITICAL]: matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitException: "Unhandled async exception" (EXCEPTION) in "plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await" at line 377
2020-05-17 [05:45:40] [Server thread/DEBUG]: #0 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(143): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
2020-05-17 [05:45:40] [Server thread/DEBUG]: #1 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(117): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure)
2020-05-17 [05:45:40] [Server thread/DEBUG]: #2 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(338): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure)
2020-05-17 [05:45:40] [Server thread/DEBUG]: #3 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(48): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild)
2020-05-17 [05:45:40] [Server thread/DEBUG]: #4 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(373): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
2020-05-17 [05:45:40] [Server thread/DEBUG]: #5 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(143): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
2020-05-17 [05:45:40] [Server thread/DEBUG]: #6 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(117): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure)
2020-05-17 [05:45:40] [Server thread/DEBUG]: #7 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(338): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure)
2020-05-17 [05:45:40] [Server thread/DEBUG]: #8 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(48): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild)
2020-05-17 [05:45:40] [Server thread/DEBUG]: #9 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(240): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError, NULL )
2020-05-17 [05:45:40] [Server thread/DEBUG]: #10 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(186): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->reportError(array[2], object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError, NULL )
2020-05-17 [05:45:40] [Server thread/DEBUG]: #11 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlThreadPool(112): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
2020-05-17 [05:45:40] [Server thread/DEBUG]: #12 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(268): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlThreadPool->readResults(array[1])
2020-05-17 [05:45:40] [Server thread/DEBUG]: #13 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlThreadPool(65): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->checkResults()
2020-05-17 [05:45:40] [Server thread/DEBUG]: #14 vendor/pocketmine/snooze/src/SleeperHandler(123): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlThreadPool->matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}()
2020-05-17 [05:45:40] [Server thread/DEBUG]: #15 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
2020-05-17 [05:45:40] [Server thread/DEBUG]: #16 src/pocketmine/Server(2146): pocketmine\snooze\SleeperHandler->sleepUntil(double 1589687140.7407)
2020-05-17 [05:45:40] [Server thread/DEBUG]: #17 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
2020-05-17 [05:45:40] [Server thread/DEBUG]: #18 src/pocketmine/Server(1584): pocketmine\Server->start()
2020-05-17 [05:45:40] [Server thread/DEBUG]: #19 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
2020-05-17 [05:45:40] [Server thread/DEBUG]: #20 src/pocketmine/PocketMine(295): pocketmine\server()
2020-05-17 [05:45:40] [Server thread/DEBUG]: #21 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
2020-05-17 [05:45:40] [Server thread/DEBUG]: Previous: matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError: "SQL EXECUTION error: NOT NULL constraint failed: log_history.who, for query INSERT INTO "log_history"(who, x, y, z, world_name, action) VALUES ((SELECT uuid FROM entities WHERE uuid = 'still lava-uuid'), -5679, 13, 4745, 'faction', 0); | []" (EXCEPTION) in "plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/sqlite3/Sqlite3Thread" at line 91
2020-05-17 [05:45:40] [Server thread/DEBUG]:   #0 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlSlaveThread(85): matcracker\BedcoreProtect\libs\poggit\libasynql\sqlite3\Sqlite3Thread->executeQuery(string[15] object(SQLite3), integer 2, string[159] INSERT INTO "log_history"(who, x, y, z, world_name,.action).VALUES ((SELECT uuid, array[0])
2020-05-17 [05:45:40] [Server thread/DEBUG]:   #1 (): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlSlaveThread->run()
2020-05-17 [05:45:40] [Server thread/DEBUG]:   #2 Internal(0): Corrected generator stack trace()
2020-05-17 [05:45:40] [Server thread/DEBUG]:   #3 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/storage/queries/Query(148): executeInsert()
2020-05-17 [05:45:40] [Server thread/DEBUG]:   #4 plugins/BedcoreProtect_dev-285.phar/src/matcracker/BedcoreProtect/storage/queries/BlocksQueries(103): matcracker\BedcoreProtect\storage\queries\{closure}()
2020-05-17 [05:45:40] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump
2020-05-17 [05:45:40] [Server thread/EMERGENCY]: Please upload the "/home/container/crashdumps/Sun_May_17-04.45.40-WEST_2020.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.

Unhandled async exception: Another tile is already at this location

Issue description

Crashdump link: https://crash.pmmp.io/view/5763744

Steps to reproduce the issue

Not yet known

OS and versions

  • BedcoreProtect: 1.0.1
  • PocketMine-MP: 4.0.5
  • PHP: 8.0.13
  • Server OS: linux
  • Game version: PE/Win10 (delete as appropriate)

Plugins

Name Version State Author(s) Website
BedcoreProtect 1.0.1 Enabled matcracker Visit
BuilderTools 1.3.1 Enabled CzechPMDevs , VixikHD Visit
EconomyAPI 5.7.3-PM4 Enabled onebone ย 
KeepInventory 1.0.0 Enabled NhanAZ , KhoaGamingVN Visit
Netherite 2.0 Enabled Wertzui123 Visit
PureChat 2.0.0 Enabled Vecnavium , 64FF00 ย 
PurePerms 1.4.5 Enabled Vecnavium , 64FF00 & ProjectInfinity ย 
SimpleHome 1.1.0 Enabled CzechPMDevs , VixikCZ Visit
VanillaCoordinates 1.1.0 Enabled Shelly7w7 ย 
WorldProtect 2.3.10 Enabled aliuly Visit

Crashdump, backtrace or other files

#0 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(217): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->reject(object InvalidArgumentException#134463)
#1 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(200): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure#136390)
#2 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(422): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure#136390)
#3 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(63): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild#128719)
#4 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(461): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->reject(object InvalidArgumentException#134463)
#5 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(217): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->reject(object InvalidArgumentException#134463)
#6 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(200): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure#136755)
#7 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(432): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure#136755)
#8 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(52): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild#137505)
#9 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(448): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->resolve(array[86])
#10 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(223): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->resolve(array[86])
#11 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(200): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure#140174)
#12 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(432): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure#140174)
#13 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(52): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild#139776)
#14 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(168): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->resolve(array[86], array[8])
#15 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(198): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl::matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}(object matcracker\BedcoreProtect\libs\poggit\libasynql\result\SqlSelectResult#141518)
#16 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlThreadPool(112): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}(object matcracker\BedcoreProtect\libs\poggit\libasynql\result\SqlSelectResult#141518)
#17 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(277): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlThreadPool->readResults(array[1])
#18 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlThreadPool(65): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->checkResults()
#19 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlThreadPool->matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}()
#20 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#21 pmsrc/src/Server(1657): pocketmine\snooze\SleeperHandler->sleepUntil(double 1641917186.5017)
#22 pmsrc/src/Server(1044): pocketmine\Server->tickProcessor()
#23 pmsrc/src/PocketMine(303): pocketmine\Server->__construct(object BaseClassLoader#3, object pocketmine\utils\MainLogger#2, string[8] /server/, string[16] /server/plugins/)
#24 pmsrc/src/PocketMine(326): pocketmine\server()
#25 pmsrc(11): require(string[45] phar:///server/server.phar/src/PocketMine.php)

Enforcement of new Poggit rule against SQL injection

Dear plugin developer,

We have updated the Poggit plugin rules, and your plugin BedcoreProtect appears to be affected.

The new rule is as follows:

B8: SQL parameters must be escaped

Data must NEVER be interpolated into SQL strings using interpolation, unless they are explicitly escaped using the mysqli::escape_string/SQLite3::escapeString function. No exceptions even if you are sure they are integers, player names or validated otherwise. Using libasynql or using bind_param()/bindValue() would be even better.

We detected the following line of code (and probably others) from your plugin that seems to breach the rule:

$query .= "((SELECT uuid FROM entities WHERE uuid = '{$this->uuid}'), '{$x}', '{$y}', '{$z}', '{$position->getWorldName()}', '{$this->action->getType()}', {$qTime}),";

You are required to update the code to conform to the rules in 14 days. Otherwise, your plugin may be removed from Poggit and a security advisory will be issued to recommend users to remove your plugin.

A simple fix is to use SQLite3::escapeString or mysqli::real_escape_string to escape your data, but we recommend that you use SQLite3::prepare() and bindValue or mysqli::prepare() and bind_param instead. Even better, we recommend that you migrate to libasynql, although this is not a strict requirement. (But async database access may become a strict requirement in the future).

Shall you have any enquiries, please post your question on the #poggit channel on the PMMP Community Discord.

Best regards,
SOFe
Poggit Team

Can't keep up! Is the server overloaded?

Issue description

high consumption of CPU and RAM using BedcoreProtect on my server

tested on a server with 40 players connected and 40 plugins
With BedcoreProtect
lag server
CPU at 150%/200% permanently
RAM 6000 MB of 8000 MB

Without BedcoreProtect
CPU at 30%/50%
RAM 700 MB of 8000 MB
no lag

  • Expected result: What were you expecting to happen?
  • Actual result: What actually happened?

Steps to reproduce the issue

  1. ... test a server with and without BedcoreProtect
  2. ...compare performance

OS and versions

Plugins

  • If you remove all plugins, does the issue still occur?
  • If the issue is not reproducible without plugins:
    • Can you provide sample, minimal reproducing code for the issue? If so, paste it in the bottom section

Crashdump, backtrace or other files

YAML

Hello can you add YAML support?

High Resource Usage

Issue description

  • Expected result: For the plugin to not use 100% CPU usage on a Ryzen 3600 CPU @ 4.0Ghz
  • Actual result: Uses 100%+ CPU when nothing seems to be going on.

Steps to reproduce the issue

  1. Put plugin in server
  2. Start server
  3. View CPU usage at 100% or MUCH higher than it used to be

OS and versions

  • BedcoreProtect: 0.5.2
  • PocketMine-MP: 3.11.1
  • PHP: 7.3
  • Server OS: Ubuntu 1.18 (PHP inside Docker Container)
  • Game version: PE/Win10

Plugins

  • BedcoreProtect

Crashdump, backtrace or other files

Screen Shot 12-23-19 at 12 33 AM

Extra

Tested on:
CPU's:

  • Ryzen 3600X @ 4.0Ghz
  • AMD Phenom X4 @5.0Ghz (OverClocked)
  • Intel Xeon-E 2136
  • Intel i7-7700K
    (I own WitherHosting and have alot of hardware)
    Ram:
  • Samsung DDR3 1666mhz
  • Micron DDR3 and DDR4 2600Mhz
  • Gigabyte DDR4 3000Mhz ECC and non ECC

Included for reference to show they are not like 1 core garbage CPU or Ram setups I have not looked into the plugin but i would assume that it has something to do with a loop getting stuck. or a really rapid listener.

issue upgrading db with a new build

Issue description

I try upgrade plugin
BedcoreProtect_dev-299.phar =) BedcoreProtect_dev-305.phar
new build enable then disable with message error :
"Your database is running a higher version than BedcoreProtect. Please update the plugin if you want to use it."

  • Expected result: What were you expecting to happen?
  • Actual result: What actually happened?
    db refuse to upgrade

Steps to reproduce the issue

  1. ...update BedcoreProtect_dev-299.phar =) BedcoreProtect_dev-302.phar
  2. ...start server

OS and versions

  • BedcoreProtect: 0.6.1
  • PocketMine-MP: 3.12.2
  • PHP:
  • Server OS:
  • Game version: PE/Win10 (delete as appropriate)

Plugins

  • If you remove all plugins, does the issue still occur?
  • If the issue is not reproducible without plugins:
    • Can you provide sample, minimal reproducing code for the issue? If so, paste it in the bottom section

Crashdump, backtrace or other files

2020-05-22 [07:15:33] [Server thread/INFO]: Loading BedcoreProtect v0.6.1
2020-05-22 [07:15:33] [Server thread/INFO]: Enabling BedcoreProtect v0.6.1
2020-05-22 [07:15:33] [Server thread/WARNING]: [BedcoreProtect] Your database is running a higher version than BedcoreProtect. Please update the plugin if you want to use it.
2020-05-22 [07:15:33] [Server thread/INFO]: Disabling BedcoreProtect v0.6.1

Issues for PMMP5

Issue description

I didn't want anything to happen and I wanted it to work

Steps to reproduce the issue

  1. Install the block
  2. Enter /bcpit to check the log
  3. After that, try to erase the installed block after entering /bcpit again, and an error will occur

OS and versions

  • BedcoreProtect: 1.1.0
  • PocketMine-MP: 5.0.0-BETA4
  • PHP: 8.2.6
  • Server OS: Linux
  • Game version: Win10

Plugins

  • If you remove all plugins, does the issue still occur?
  • If the issue is not reproducible without plugins:
    • Can you provide sample, minimal reproducing code for the issue? If so, paste it in the bottom section
      image

Crashdump, backtrace or other files

Error: "Call to undefined method pocketmine\block\Op
aque::isSameType()" (EXCEPTION) in "plugins/BedcoreProtect-pm5.phar/src/matcracker/BedcoreProtect/storage/queries/BlocksQueries" at line 157
--- Stack trace ---
#0 pmsrc/src/scheduler/ClosureTask(57): matcracker\BedcoreProtect\storage\queries\BlocksQueries->matcracker\BedcoreProtect\storage\queries{closure}()
#1 pmsrc/src/scheduler/TaskHandler(113): pocketmine\scheduler\ClosureTask->onRun()
#2 pmsrc/src/scheduler/TaskScheduler(137): pocketmine\scheduler\TaskHandler->run()
#3 pmsrc/src/plugin/PluginManager(530): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(int 190)
#4 pmsrc/src/Server(1782): pocketmine\plugin\PluginManager->tickSchedulers(int 190)
#5 pmsrc/src/Server(1671): pocketmine\Server->tick()
#6 pmsrc/src/Server(1063): pocketmine\Server->tickProcessor()
#7 pmsrc/src/PocketMine(334): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#3, object pocketmine\utils\MainLogger#6, string[9] /root/pm/, string[17] /root/pm/plugins/)
#8 pmsrc/src/PocketMine(357): pocketmine\server()
#9 pmsrc(11): require(string[53] phar:///root/pm/PocketMine-MP.phar/src/PocketMine.php)
--- End of exception information ---

Item meta goes out of range

Issue description

Hi there! I hope you're doing well. Unfortunately, I don't know how to contact your support. I have installed your plugin (https://github.com/matcracker/BedcoreProtect) and unfortunately get the following error message:

https://pastebin.com/EX2cEaF2

Could you please help me out?
Thank you in advance.

Steps to reproduce the issue

  1. Installation and use of the plugin

OS and versions

  • BedcoreProtect:
  • PocketMine-MP: 3.19.0
  • PHP: 7.3
  • Server OS:
  • Game version:Win10 (delete as appropriate)

Plugins

  • If you remove all plugins, does the issue still occur?
  • If the issue is not reproducible without plugins:
    • Can you provide sample, minimal reproducing code for the issue? If so, paste it in the bottom section

Crashdump, backtrace or other files

Crash when rollback a double chest

Issue description

I was doing a rollback and the server stopped, but I did one a few seconds before and it worked fine, it's weird

  • Expected result: What were you expecting to happen? Let the rollback be done
  • Actual result: What actually happened? Crash the server

Steps to reproduce the issue

  1. Try to rollback
  2. Freeze

OS and versions

  • BedcoreProtect: 0.10.2
  • PocketMine-MP: 3.22.2
  • PHP: 7.4
  • Server OS: Windows 10
  • Game version: Win10

Plugins

I disabled /pl

  • If you remove all plugins, does the issue still occur? I dont test it
  • If the issue is not reproducible without plugins:
    • Can you provide sample, minimal reproducing code for the issue? If so, paste it in the bottom section

Crashdump, backtrace or other files

[23:53:26] [Server thread/CRITICAL]: #0 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(217): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->reject(object RuntimeException)
[23:53:26] [Server thread/CRITICAL]: #1 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(200): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure)
[23:53:26] [Server thread/CRITICAL]: #2 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(422): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure)
[23:53:26] [Server thread/CRITICAL]: #3 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(63): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild)
[23:53:26] [Server thread/CRITICAL]: #4 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(461): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->reject(object RuntimeException)
[23:53:26] [Server thread/CRITICAL]: #5 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(217): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->reject(object RuntimeException)
[23:53:26] [Server thread/CRITICAL]: #6 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(200): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure)
[23:53:26] [Server thread/CRITICAL]: #7 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(432): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure)
[23:53:26] [Server thread/CRITICAL]: #8 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(52): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild)
[23:53:26] [Server thread/CRITICAL]: #9 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(448): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->resolve(array[554])
[23:53:26] [Server thread/CRITICAL]: #10 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(223): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->resolve(array[554])
[23:53:26] [Server thread/CRITICAL]: #11 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(200): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure)
[23:53:26] [Server thread/CRITICAL]: #12 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(432): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure)
[23:53:26] [Server thread/CRITICAL]: #13 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(52): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild)
[23:53:26] [Server thread/CRITICAL]: #14 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(159): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->resolve(array[554], array[9])
[23:53:26] [Server thread/CRITICAL]: #15 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(189): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}(object matcracker\BedcoreProtect\libs\poggit\libasynql\result\SqlSelectResult)
[23:53:26] [Server thread/CRITICAL]: #16 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlThreadPool(112): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}(object matcracker\BedcoreProtect\libs\poggit\libasynql\result\SqlSelectResult)
[23:53:26] [Server thread/CRITICAL]: #17 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(268): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlThreadPool->readResults(array[1])
[23:53:26] [Server thread/CRITICAL]: #18 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlThreadPool(65): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->checkResults()
[23:53:26] [Server thread/CRITICAL]: #19 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlThreadPool->matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}()
[23:53:26] [Server thread/CRITICAL]: #20 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()
[23:53:26] [Server thread/CRITICAL]: #21 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1629417206.9271)
[23:53:26] [Server thread/CRITICAL]: #22 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
[23:53:26] [Server thread/CRITICAL]: #23 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
[23:53:26] [Server thread/CRITICAL]: #24 pmsrc/src/pocketmine/PocketMine(314): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
[23:53:26] [Server thread/CRITICAL]: #25 pmsrc/src/pocketmine/PocketMine(344): pocketmine\server()
[23:53:26] [Server thread/CRITICAL]: #26 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
[23:53:26] [Server thread/CRITICAL]: Previous: RuntimeException: "Index invalid or out of range" (EXCEPTION) in "pmsrc/src/pocketmine/inventory/BaseInventory" at line 101
[23:53:26] [Server thread/CRITICAL]:   #0 pmsrc/src/pocketmine/inventory/BaseInventory(166): pocketmine\inventory\BaseInventory->getItem(integer 32)
[23:53:26] [Server thread/CRITICAL]:   #1 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/storage/queries/InventoriesQueries(204): pocketmine\inventory\BaseInventory->setItem(integer 32, object pocketmine\item\ItemBlock)
[23:53:26] [Server thread/CRITICAL]:   #2 (): matcracker\BedcoreProtect\storage\queries\InventoriesQueries->onRollback(object JackMD\NameSpaceRemover\CustomPlayer, object pocketmine\level\Level, boolean 1, array[920])
[23:53:26] [Server thread/CRITICAL]:   #3 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(431): Generator->send(array[554])
[23:53:26] [Server thread/CRITICAL]:   #4 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(215): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\{closure}()
[23:53:26] [Server thread/CRITICAL]:   #5 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(200): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure)
[23:53:26] [Server thread/CRITICAL]:   #6 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(432): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure)
[23:53:26] [Server thread/CRITICAL]:   #7 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(52): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild)
[23:53:26] [Server thread/CRITICAL]:   #8 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(448): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->resolve(array[554])
[23:53:26] [Server thread/CRITICAL]:   #9 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(223): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->resolve(array[554])
[23:53:26] [Server thread/CRITICAL]:   #10 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(200): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure)
[23:53:26] [Server thread/CRITICAL]:   #11 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(432): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure)
[23:53:26] [Server thread/CRITICAL]:   #12 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(52): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild)
[23:53:26] [Server thread/CRITICAL]:   #13 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(159): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->resolve(array[554], array[9])
[23:53:26] [Server thread/CRITICAL]:   #14 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(189): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}(object matcracker\BedcoreProtect\libs\poggit\libasynql\result\SqlSelectResult)
[23:53:26] [Server thread/CRITICAL]:   #15 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlThreadPool(112): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}(object matcracker\BedcoreProtect\libs\poggit\libasynql\result\SqlSelectResult)
[23:53:26] [Server thread/CRITICAL]:   #16 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(268): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlThreadPool->readResults(array[1])
[23:53:26] [Server thread/CRITICAL]:   #17 plugins/BedcoreProtect_dev-452.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlThreadPool(65): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->checkResults()
[23:53:26] [Server thread/CRITICAL]:   #18 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlThreadPool->matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}()
[23:53:26] [Server thread/CRITICAL]:   #19 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()
[23:53:26] [Server thread/CRITICAL]:   #20 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1629417206.9271)
[23:53:26] [Server thread/CRITICAL]:   #21 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
[23:53:26] [Server thread/CRITICAL]:   #22 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
[23:53:26] [Server thread/CRITICAL]:   #23 pmsrc/src/pocketmine/PocketMine(314): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
[23:53:26] [Server thread/CRITICAL]:   #24 pmsrc/src/pocketmine/PocketMine(344): pocketmine\server()
[23:53:26] [Server thread/CRITICAL]:   #25 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Server crashes with new update

Issue description

I just updated the plugin to 0.7.0. Previous version have not led the server to crash, however this version causes a crash for me.

  • Expected result: Use the server with BCP v0.7.0 installed.
  • Actual result: I was able to join but the server crashed moments after.

Steps to reproduce the issue

  1. Join a 3.13.0 PocketMine server with BCP v0.7.0 installed.
  2. Wait for some time to pass.

OS and versions

  • BedcoreProtect: 0.7.0
  • PocketMine-MP: 3.13.0
  • PHP: 7.3
  • Server OS: sqlite
  • Game version: PE/Win10 (delete as appropriate)

Plugins

Plugins (43): DoorBell v1.0.0, OnlineTime v1.3, BuilderTools v1.2.0-beta2, SizePlayer v1.1.0, JukeBox v1.0.1, MailPlugin v3.5, LockMyStuff v1.1.0, ServerChannels v2.3, DevTools v1.14.0, MCPEToDiscord v1.4.1, CustomAlerts v2.1, Broadcaster v1.5, PlayerSelectors v1.0.7, MaxEnchants v1.2.1, GroupsUI v1.0.0, aDvaNceDmOcK v0.0.1, Slapper v1.5.30, iProtector v3.1.1, AutoClearLagg v3.0.1, WorldProtect v2.3.8, WorldBackup v1.0, WorldStyler v1.1, RenameItems v1.1, ShulkerBox v1.0.1, MultiWorld v1.5.2, PersonaToSkin v0.0.1, BanItem v2.3.3, PurePerms v1.4.3, essentialsTP v1.2.2, ChatMuffler v1.1.0, VanillaCoordinates v1.0.0, AllSigns v1.0.13, PlayerAdmin v1.0.0, StairSeat v1.4.2, DEVirion v1.2.7, StaffChat v1.1.4, VanishV2 v1.7, GrapplingHook v1.0.3, PureChat v1.4.11, Backpack v0.2.1, MyPlot v1.7.0, BlockSniper v3.2.3, BedcoreProtect v0.7.0

  • If you remove all plugins, does the issue still occur?
    • Have not tested
  • If the issue is not reproducible without plugins:
    • Can you provide sample, minimal reproducing code for the issue? If so, paste it in the bottom section

Crashdump, backtrace or other files

Crash Archive Link: https://crash.pmmp.io/view/4291574
Console Log:

Warning: SQLite3::prepare(): Unable to prepare statement: 1, no such table: main.entities_old in phar:///home/container/plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/sqlite3/Sqlite3Thread.php on line 79
[07:18:23] [Server thread/CRITICAL]: matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitException: "Unhandled async exception" (EXCEPTION) in "plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await" at line 436
[07:18:23] [Server thread/DEBUG]: #0 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(202): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
[07:18:23] [Server thread/DEBUG]: #1 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(176): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure)
[07:18:23] [Server thread/DEBUG]: #2 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(397): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure)
[07:18:23] [Server thread/DEBUG]: #3 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(48): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild)
[07:18:23] [Server thread/DEBUG]: #4 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(432): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
[07:18:23] [Server thread/DEBUG]: #5 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(202): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
[07:18:23] [Server thread/DEBUG]: #6 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(176): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure)
[07:18:23] [Server thread/DEBUG]: #7 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(397): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure)
[07:18:23] [Server thread/DEBUG]: #8 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(48): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild)
[07:18:23] [Server thread/DEBUG]: #9 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(432): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
[07:18:23] [Server thread/DEBUG]: #10 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(202): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
[07:18:23] [Server thread/DEBUG]: #11 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(176): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure)
[07:18:23] [Server thread/DEBUG]: #12 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(397): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure)
[07:18:23] [Server thread/DEBUG]: #13 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(48): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild)
[07:18:23] [Server thread/DEBUG]: #14 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(240): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError, NULL )
[07:18:23] [Server thread/DEBUG]: #15 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(186): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->reportError(array[2], object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError, NULL )
[07:18:23] [Server thread/DEBUG]: #16 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlThreadPool(112): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
[07:18:23] [Server thread/DEBUG]: #17 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(268): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlThreadPool->readResults(array[1])
[07:18:23] [Server thread/DEBUG]: #18 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlThreadPool(65): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->checkResults()
[07:18:23] [Server thread/DEBUG]: #19 vendor/pocketmine/snooze/src/SleeperHandler(123): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlThreadPool->matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}()
[07:18:23] [Server thread/DEBUG]: #20 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
[07:18:23] [Server thread/DEBUG]: #21 src/pocketmine/Server(2154): pocketmine\snooze\SleeperHandler->sleepUntil(double 1592205503.7405)
[07:18:23] [Server thread/DEBUG]: #22 src/pocketmine/Server(1991): pocketmine\Server->tickProcessor()
[07:18:23] [Server thread/DEBUG]: #23 src/pocketmine/Server(1585): pocketmine\Server->start()
[07:18:23] [Server thread/DEBUG]: #24 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
[07:18:23] [Server thread/DEBUG]: #25 src/pocketmine/PocketMine(296): pocketmine\server()
[07:18:23] [Server thread/DEBUG]: #26 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
[07:18:23] [Server thread/DEBUG]: Previous: matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError: "SQL PREPARE error: no such table: main.entities_old, for query INSERT INTO "log_history"(who, x, y, z, world_name, action, time) VALUES ((SELECT uuid FROM entities WHERE uuid = 'e45ca4ff-b3aa-3789-888d-7dee05584f5d'), 18, 65, 103, 'plots3', 0, STRFTIME('%Y-%m-%d %H:%M:%f', 1592205503.6907, 'unixepoch', 'localtime')); | []" (EXCEPTION) in "plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/sqlite3/Sqlite3Thread" at line 81
[07:18:23] [Server thread/DEBUG]: #0 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlSlaveThread(85): matcracker\BedcoreProtect\libs\poggit\libasynql\sqlite3\Sqlite3Thread->executeQuery(string[15] object(SQLite3), integer 2, string[255] INSERT INTO "log_history"(who, x, y, z, world_name, action, time).VALUES ((SELEC, array[0])
[07:18:23] [Server thread/DEBUG]: #1 (): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlSlaveThread->run()
[07:18:23] [Server thread/DEBUG]: #2 Internal(0): Corrected generator stack trace()
[07:18:23] [Server thread/DEBUG]: #3 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/storage/queries/Query(145): executeInsert()
[07:18:23] [Server thread/DEBUG]: #4 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/storage/queries/BlocksQueries(138): addRawBlockLog()
[07:18:23] [Server thread/DEBUG]: #5 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/storage/queries/BlocksQueries(97): matcracker\BedcoreProtect\storage\queries\{closure}()
[07:18:23] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump

Need a Guide

I want You Guys to make a Guide on How to Get the Logs of the Server which are there in your Plugin.

[Question]

Do you plan to continue with this plugin for API 4? I have seen that you have reported 2 crash and I would like to know if it is stable.

Error on start : TypeError: "str_replace(): Argument #3 ($subject) must be of type array|string, null given

Issue description

  • Expected result: Starting fine ? :)
  • Actual result: Crash on start

Steps to reproduce the issue

  • Install Plugin
  • Configure SQL Credentials
  • Let it crash
    --> Do not crash if you remove patch SQL file

OS and versions

  • BedcoreProtect: Cannot, crash before
    version: 0.10.4
    api: 3.21.0
  • PocketMine-MP: 3.25.2
  • PHP: 8
  • Server OS: W11 21H2
  • Game version: Win10

Plugins

More than 70 Plugins installed

  • If you remove all plugins, does the issue still occur? N/A
  • If the issue is not reproducible without plugins: N/A
    • Can you provide sample, minimal reproducing code for the issue? If so, paste it in the bottom section

Crashdump, backtrace or other files

[20:59:10] [Server thread/CRITICAL]: TypeError: "str_replace(): Argument #3 ($subject) must be of type array|string, null given" (EXCEPTION) in "FOLDERPMMP/virions/libasynql/src/poggit/libasynql/generic/GenericStatementImpl" at line 106
[20:59:10] [Server thread/CRITICAL]: #0 FOLDERPMMP/virions/libasynql/src/poggit/libasynql/generic/GenericStatementImpl(106): str_replace(string[1] \, string[1] /, NULL )
[20:59:10] [Server thread/CRITICAL]: #1 FOLDERPMMP/virions/libasynql/src/poggit/libasynql/generic/GenericStatementImpl(98): poggit\libasynql\generic\GenericStatementImpl->__construct(string[13] patch.0.6.0.1, string[44] ALTER TABLE log_history.ADD UNIQUE (log_id);, string[0] , array[0], NULL , integer 7)
[20:59:10] [Server thread/CRITICAL]: #2 FOLDERPMMP/virions/libasynql/src/poggit/libasynql/generic/GenericStatementFileParser(200): poggit\libasynql\generic\GenericStatementImpl::forDialect(string[5] mysql, string[13] patch.0.6.0.1, string[44] ALTER TABLE log_history.ADD UNIQUE (log_id);, string[0] , array[0], NULL , integer 7)
[20:59:10] [Server thread/CRITICAL]: #3 FOLDERPMMP/virions/libasynql/src/poggit/libasynql/generic/GenericStatementFileParser(145): poggit\libasynql\generic\GenericStatementFileParser->endCommand()
[20:59:10] [Server thread/CRITICAL]: #4 FOLDERPMMP/virions/libasynql/src/poggit/libasynql/generic/GenericStatementFileParser(107): poggit\libasynql\generic\GenericStatementFileParser->tryCommand(string[1] })
[20:59:10] [Server thread/CRITICAL]: #5 FOLDERPMMP/virions/libasynql/src/poggit/libasynql/generic/GenericStatementFileParser(82): poggit\libasynql\generic\GenericStatementFileParser->readLine(integer 7, string[13] -- #        })
[20:59:10] [Server thread/CRITICAL]: #6 FOLDERPMMP/virions/libasynql/src/poggit/libasynql/base/DataConnectorImpl(95): poggit\libasynql\generic\GenericStatementFileParser->parse()
[20:59:10] [Server thread/CRITICAL]: #7 plugins/BedcoreProtect-stable/src/matcracker/BedcoreProtect/storage/DatabaseManager(71): poggit\libasynql\base\DataConnectorImpl->loadQueryFile(resource (closed) Resource id #1909)
[20:59:10] [Server thread/CRITICAL]: #8 plugins/BedcoreProtect-stable/src/matcracker/BedcoreProtect/Main(132): matcracker\BedcoreProtect\storage\DatabaseManager->connect()
[20:59:10] [Server thread/CRITICAL]: #9 pmsrc/src/pocketmine/plugin/PluginBase(116): matcracker\BedcoreProtect\Main->onEnable()
[20:59:10] [Server thread/CRITICAL]: #10 pmsrc/src/pocketmine/plugin/PluginManager(552): pocketmine\plugin\PluginBase->setEnabled(boolean 1)
[20:59:10] [Server thread/CRITICAL]: #11 pmsrc/src/pocketmine/Server(1785): pocketmine\plugin\PluginManager->enablePlugin(object matcracker\BedcoreProtect\Main)
[20:59:10] [Server thread/CRITICAL]: #12 pmsrc/src/pocketmine/Server(1771): pocketmine\Server->enablePlugin(object matcracker\BedcoreProtect\Main)
[20:59:10] [Server thread/CRITICAL]: #13 pmsrc/src/pocketmine/Server(1584): pocketmine\Server->enablePlugins(integer 1)
[20:59:10] [Server thread/CRITICAL]: #14 pmsrc/src/pocketmine/PocketMine(314): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[39] C:\Users\Benjamin\Documents\PMMP-Rapto\, string[47] C:\Users\Benjamin\Documents\PMMP-Rapto\plugins\)
[20:59:10] [Server thread/CRITICAL]: #15 pmsrc/src/pocketmine/PocketMine(344): pocketmine\server()
[20:59:10] [Server thread/CRITICAL]: #16 pmsrc(11): require(string[94] phar://FOLDERPMMP/PocketMine-MP.phar/src/pocketmine/)

TIMESTAMP precision not working on older MySQL versions.

Issue description

  • Expected result: Start without errors?
  • Actual result: Start with errors?

Steps to reproduce the issue

  1. Change database to mysql
    • MySQL version: 5.5.62
    • Protocol version: 10
  2. Start the server

OS and versions

  • BedcoreProtect: 0.5.2
  • PocketMine-MP: 3.11.3
  • PHP: 7.3.13
  • Server OS: Ubuntu 19.10
  • Game version: PE

Plugins

Plugins: AlwaysSpawn v2.2.4, FileManager v1.0.1, DevTools v1.13.5, BedcoreProtect v0.5.2, EconomyAPI v2.0.9, EconomyLand v2.0.9, SimpleAuth v2.1.3

Crashdump, backtrace or other files

I'm getting following non-fatal error:

[Server thread/ERROR]: [BedcoreProtect] SQL EXECUTION error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(6)        DEFAULT CURRENT_TIMESTAMP NOT NULL,
CHECK (only_one_row)
)' at line 5, for query CREATE TABLE IF NOT EXISTS status
(
only_one_row BOOLEAN PRIMARY KEY DEFAULT TRUE              NOT NULL,
version      VARCHAR(20)                                   NOT NULL,
upgraded_on  TIMESTAMP(6)        DEFAULT CURRENT_TIMESTAMP NOT NULL,
CHECK (only_one_row)
); | []

I'm getting this error for all queries that have TIMESTAMP(x) inside.

My solution: copy queries, remove (x) part and execute them on SQL server. After starting you will still have that errors, but at least plugin will work.

Undefined behavior with SQLite transaction using a worker limit > 1

Issue description

Using more than 1 worker with SQLite causes strange behavior with transactions.

Steps to reproduce the issue

  1. Set the worker-limit to 2
  2. Wait different minutes because the SQLiteTransaction task need to be executed.

OS and versions

  • BedcoreProtect: 0.6.0
  • PocketMine-MP: 3.12.1
  • PHP: 7.3
  • Server OS: Win10
  • Game version: PE/Win10 (delete as appropriate)

Crashdump, backtrace or other files

2020-05-16 [01:50:23] [Server thread/CRITICAL]: matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitException: "Unhandled async exception" (EXCEPTION) in "plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await" at line 377
2020-05-16 [01:50:23] [Server thread/DEBUG]: #0 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(143): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
2020-05-16 [01:50:23] [Server thread/DEBUG]: #1 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(117): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure)
2020-05-16 [01:50:23] [Server thread/DEBUG]: #2 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(338): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure)
2020-05-16 [01:50:23] [Server thread/DEBUG]: #3 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(48): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild)
2020-05-16 [01:50:23] [Server thread/DEBUG]: #4 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(373): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
2020-05-16 [01:50:23] [Server thread/DEBUG]: #5 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(143): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
2020-05-16 [01:50:23] [Server thread/DEBUG]: #6 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(117): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeup(object Closure)
2020-05-16 [01:50:23] [Server thread/DEBUG]: #7 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/Await(338): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->wakeupFlat(object Closure)
2020-05-16 [01:50:23] [Server thread/DEBUG]: #8 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/SOFe/AwaitGenerator/AwaitChild(48): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\Await->recheckPromiseQueue(object matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild)
2020-05-16 [01:50:23] [Server thread/DEBUG]: #9 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(240): matcracker\BedcoreProtect\libs\SOFe\AwaitGenerator\AwaitChild->reject(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError, NULL )
2020-05-16 [01:50:23] [Server thread/DEBUG]: #10 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(186): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->reportError(array[2], object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError, NULL )
2020-05-16 [01:50:23] [Server thread/DEBUG]: #11 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlThreadPool(112): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}(object matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError)
2020-05-16 [01:50:23] [Server thread/DEBUG]: #12 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/DataConnectorImpl(268): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlThreadPool->readResults(array[17428])
2020-05-16 [01:50:23] [Server thread/DEBUG]: #13 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlThreadPool(65): matcracker\BedcoreProtect\libs\poggit\libasynql\base\DataConnectorImpl->checkResults()
2020-05-16 [01:50:23] [Server thread/DEBUG]: #14 vendor/pocketmine/snooze/src/SleeperHandler(123): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlThreadPool->matcracker\BedcoreProtect\libs\poggit\libasynql\base\{closure}()
2020-05-16 [01:50:23] [Server thread/DEBUG]: #15 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
2020-05-16 [01:50:23] [Server thread/DEBUG]: #16 src/pocketmine/Server(2146): pocketmine\snooze\SleeperHandler->sleepUntil(double 1589583023.4922)
2020-05-16 [01:50:23] [Server thread/DEBUG]: #17 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
2020-05-16 [01:50:23] [Server thread/DEBUG]: #18 src/pocketmine/Server(1584): pocketmine\Server->start()
2020-05-16 [01:50:23] [Server thread/DEBUG]: #19 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[17] /home/admin/mcpe/, string[25] /home/admin/mcpe/plugins/)
2020-05-16 [01:50:23] [Server thread/DEBUG]: #20 src/pocketmine/PocketMine(295): pocketmine\server()
2020-05-16 [01:50:23] [Server thread/DEBUG]: #21 (11): require(string[72] phar:///home/admin/mcpe/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
2020-05-16 [01:50:23] [Server thread/DEBUG]: Previous: matcracker\BedcoreProtect\libs\poggit\libasynql\SqlError: "SQL EXECUTION error: cannot commit - no transaction is active, for query END TRANSACTION; | []" (EXCEPTION) in "plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/sqlite3/Sqlite3Thread" at line 91
2020-05-16 [01:50:23] [Server thread/DEBUG]:   #0 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/libs/poggit/libasynql/base/SqlSlaveThread(85): matcracker\BedcoreProtect\libs\poggit\libasynql\sqlite3\Sqlite3Thread->executeQuery(string[15] object(SQLite3), integer 0, string[16] END TRANSACTION;, array[0])
2020-05-16 [01:50:23] [Server thread/DEBUG]:   #1 (): matcracker\BedcoreProtect\libs\poggit\libasynql\base\SqlSlaveThread->run()
2020-05-16 [01:50:23] [Server thread/DEBUG]:   #2 Internal(0): Corrected generator stack trace()
2020-05-16 [01:50:23] [Server thread/DEBUG]:   #3 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/storage/queries/Query(118): executeGeneric()
2020-05-16 [01:50:23] [Server thread/DEBUG]:   #4 plugins/BedcoreProtect.phar/src/matcracker/BedcoreProtect/storage/queries/PluginQueries(134): matcracker\BedcoreProtect\storage\queries\{closure}()

Command Log

Is your feature request related to a problem? Please describe.
Suggest a system for recording command commands

Describe the solution you'd like
Through the log, which user used which command
Or I think it'd be good to have a function where you can search while showing the overall log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.