Crash #3185
pmsrc/src/world/World:2106 · HuniTest (indirect)
2097 * @throws \InvalidArgumentException if the position is out of the world bounds
2098 */
2099 public function setBlockAt(int $x, int $y, int $z, Block $block, bool $update = true) : void{
2100 if(!$this->isInWorld($x, $y, $z)){
2101 throw new \InvalidArgumentException("Pos x=$x,y=$y,z=$z is outside of the world bounds");
2102 }
2103 $chunkX = $x >> Chunk::COORD_BIT_SIZE;
2104 $chunkZ = $z >> Chunk::COORD_BIT_SIZE;
2105 if($this->loadChunk($chunkX, $chunkZ) === null){ //current expected behaviour is to try to load the terrain synchronously
2106 throw new WorldException("Cannot set a block in un-generated terrain");
2107 }
2108
2109 //TODO: this computes state ID twice (we do it again in writeStateToWorld()). Not great for performance :(
2110 $stateId = $block->getStateId();
2111 if(!$this->blockStateRegistry->hasStateId($stateId)){
2112 throw new \LogicException("Block state ID not known to RuntimeBlockStateRegistry (probably not registered)");
2113 }
2114 if(!GlobalBlockStateHandlers::getSerializer()->isRegistered($block)){
2115 throw new \LogicException("Block not registered with GlobalBlockStateHandlers serializer");
2116 }
#0 C:/Users/Administrator/AppData/Local/Temp/huni_yama/test/plugins2/HuniTest.phar/src/huni/Main(17): pocketmine\world\World->setBlockAt(int 0, int 100, int 0, object pocketmine\block\Hopper#40620)
#1 pmsrc/src/scheduler/ClosureTask(59): huni\Main->huni\{closure}()
#2 pmsrc/src/scheduler/TaskHandler(124): pocketmine\scheduler\ClosureTask->onRun()
#3 pmsrc/src/scheduler/TaskScheduler(177): pocketmine\scheduler\TaskHandler->run()
#4 pmsrc/src/plugin/PluginManager(594): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(int 20)
#5 pmsrc/src/Server(2133): pocketmine\plugin\PluginManager->tickSchedulers(int 20)
#6 pmsrc/src/Server(2021): pocketmine\Server->tick()
#7 pmsrc/src/Server(1120): pocketmine\Server->tickProcessor()
#8 pmsrc/src/PocketMine(371): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#2, string[62], string[66])
#9 pmsrc/src/PocketMine(394): pocketmine\server()
#10 pmsrc(171): require(string[110])| Server | Altay 5.45.1+2316 | build 2316 |
|---|---|---|
| Commit | 60bdbc9fb46c | |
| PHP | 8.2.29 | Zend 4.2.29 |
| System | Windows NT EIEN-MC 10.0 build 20348 (Windows Server 2022) AMD64 | |
| Protocol | 2225 |
{
"format_version": 4,
"time": 1794956577.66507,
"uptime": 2.0100350379943848,
"lastError": {
"type": "pocketmine\\world\\WorldException",
"message": "Cannot set a block in un-generated terrain",
"file": "pmsrc/src/world/World",
"line": 2106,
"trace": [
"#0 C:/Users/Administrator/AppData/Local/Temp/huni_yama/test/plugins2/HuniTest.phar/src/huni/Main(17): pocketmine\\world\\World->setBlockAt(int 0, int 100, int 0, object pocketmine\\block\\Hopper#40620)",
"#1 pmsrc/src/scheduler/ClosureTask(59): huni\\Main->huni\\{closure}()",
"#2 pmsrc/src/scheduler/TaskHandler(124): pocketmine\\scheduler\\ClosureTask->onRun()",
"#3 pmsrc/src/scheduler/TaskScheduler(177): pocketmine\\scheduler\\TaskHandler->run()",
"#4 pmsrc/src/plugin/PluginManager(594): pocketmine\\scheduler\\TaskScheduler->mainThreadHeartbeat(int 20)",
"#5 pmsrc/src/Server(2133): pocketmine\\plugin\\PluginManager->tickSchedulers(int 20)",
"#6 pmsrc/src/Server(2021): pocketmine\\Server->tick()",
"#7 pmsrc/src/Server(1120): pocketmine\\Server->tickProcessor()",
"#8 pmsrc/src/PocketMine(371): pocketmine\\Server->__construct(object pocketmine\\thread\\ThreadSafeClassLoader#6, object pocketmine\\utils\\MainLogger#2, string[62], string[66])",
"#9 pmsrc/src/PocketMine(394): pocketmine\\server()",
"#10 pmsrc(171): require(string[110])"
],
"thread": "Main"
},
"error": {
"type": "pocketmine\\world\\WorldException",
"message": "Cannot set a block in un-generated terrain",
"file": "pmsrc/src/world/World",
"line": 2106,
"thread": "Main"
},
"thread": "Main",
"plugin_involvement": "indirect",
"plugin": "HuniTest",
"code": {
"2097": "\t * @throws \\InvalidArgumentException if the position is out of the world bounds",
"2098": "\t */",
"2099": "\tpublic function setBlockAt(int $x, int $y, int $z, Block $block, bool $update = true) : void{",
"2100": "\t\tif(!$this->isInWorld($x, $y, $z)){",
"2101": "\t\t\tthrow new \\InvalidArgumentException(\"Pos x=$x,y=$y,z=$z is outside of the world bounds\");",
"2102": "\t\t}",
"2103": "\t\t$chunkX = $x >> Chunk::COORD_BIT_SIZE;",
"2104": "\t\t$chunkZ = $z >> Chunk::COORD_BIT_SIZE;",
"2105": "\t\tif($this->loadChunk($chunkX, $chunkZ) === null){ //current expected behaviour is to try to load the terrain synchronously",
"2106": "\t\t\tthrow new WorldException(\"Cannot set a block in un-generated terrain\");",
"2107": "\t\t}",
"2108": "",
"2109": "\t\t//TODO: this computes state ID twice (we do it again in writeStateToWorld()). Not great for performance :(",
"2110": "\t\t$stateId = $block->getStateId();",
"2111": "\t\tif(!$this->blockStateRegistry->hasStateId($stateId)){",
"2112": "\t\t\tthrow new \\LogicException(\"Block state ID not known to RuntimeBlockStateRegistry (probably not registered)\");",
"2113": "\t\t}",
"2114": "\t\tif(!GlobalBlockStateHandlers::getSerializer()->isRegistered($block)){",
"2115": "\t\t\tthrow new \\LogicException(\"Block not registered with GlobalBlockStateHandlers serializer\");",
"2116": "\t\t}"
},
"trace": [
"#0 C:/Users/Administrator/AppData/Local/Temp/huni_yama/test/plugins2/HuniTest.phar/src/huni/Main(17): pocketmine\\world\\World->setBlockAt(int 0, int 100, int 0, object pocketmine\\block\\Hopper#40620)",
"#1 pmsrc/src/scheduler/ClosureTask(59): huni\\Main->huni\\{closure}()",
"#2 pmsrc/src/scheduler/TaskHandler(124): pocketmine\\scheduler\\ClosureTask->onRun()",
"#3 pmsrc/src/scheduler/TaskScheduler(177): pocketmine\\scheduler\\TaskHandler->run()",
"#4 pmsrc/src/plugin/PluginManager(594): pocketmine\\scheduler\\TaskScheduler->mainThreadHeartbeat(int 20)",
"#5 pmsrc/src/Server(2133): pocketmine\\plugin\\PluginManager->tickSchedulers(int 20)",
"#6 pmsrc/src/Server(2021): pocketmine\\Server->tick()",
"#7 pmsrc/src/Server(1120): pocketmine\\Server->tickProcessor()",
"#8 pmsrc/src/PocketMine(371): pocketmine\\Server->__construct(object pocketmine\\thread\\ThreadSafeClassLoader#6, object pocketmine\\utils\\MainLogger#2, string[62], string[66])",
"#9 pmsrc/src/PocketMine(394): pocketmine\\server()",
"#10 pmsrc(171): require(string[110])"
],
"plugins": {
"HuniTest": {
"name": "HuniTest",
"version": "1.0.0",
"authors": [],
"api": [
"5.0.0"
],
"enabled": true,
"depends": [],
"softDepends": [],
"main": "huni\\Main",
"load": "POSTWORLD",
"website": ""
}
},
"parameters": [
"PocketMine-MP.phar",
"--data=C:/Users/ADMINI~1/AppData/Local/Temp/huni_yama/test/data",
"--plugins=C:/Users/ADMINI~1/AppData/Local/Temp/huni_yama/test/plugins2",
"--no-wizard",
"--disable-ansi"
],
"extensions": {
"Core": "8.2.29",
"bcmath": "8.2.29",
"calendar": "8.2.29",
"com_dotnet": "8.2.29",
"ctype": "8.2.29",
"curl": "8.2.29",
"date": "8.2.29",
"morton": "0.1.2",
"xxhash": "0.2.0",
"filter": "8.2.29",
"gmp": "8.2.29",
"hash": "8.2.29",
"iconv": "8.2.29",
"json": "8.2.29",
"pcre": "8.2.29",
"standard": "8.2.29",
"mbstring": "8.2.29",
"yaml": "2.2.5",
"random": "8.2.29",
"Reflection": "8.2.29",
"sockets": "8.2.29",
"sodium": "8.2.29",
"SPL": "8.2.29",
"mysqlnd": "mysqlnd 8.2.29",
"tokenizer": "8.2.29",
"zip": "1.21.1",
"zlib": "8.2.29",
"libxml": "8.2.29",
"dom": "20031129",
"PDO": "8.2.29",
"pdo_mysql": "8.2.29",
"pdo_sqlite": "8.2.29",
"openssl": "8.2.29",
"SimpleXML": "8.2.29",
"xml": "8.2.29",
"xmlreader": "8.2.29",
"xmlwriter": "8.2.29",
"pmmpthread": "6.2.0",
"Phar": "8.2.29",
"chunkutils2": "0.3.5",
"igbinary": "3.2.16",
"leveldb": "0.3.0",
"crypto": "0.3.2",
"libdeflate": "0.2.1",
"encoding": "1.0.0",
"fileinfo": "8.2.29",
"gd": "8.2.29",
"mysqli": "8.2.29",
"sqlite3": "8.2.29",
"recursionguard": "0.1.0",
"Zend OPcache": "8.2.29"
},
"jit_mode": null,
"phpinfo": "",
"general": {
"name": "Altay",
"base_version": "5.45.1",
"build": 2316,
"is_dev": false,
"protocol": 2225,
"git": "60bdbc9fb46c80559fd8413e3966bdaed9a20eb1-eien",
"uname": "Windows NT EIEN-MC 10.0 build 20348 (Windows Server 2022) AMD64",
"php": "8.2.29",
"zend": "4.2.29",
"php_os": "WINNT",
"os": "win",
"composer_libraries": {
"adhocore/json-comment": "1.2.1@651023f9fe52e9efa2198cbaf6e481d1968e2377",
"altayofficial/altay": "dev-master@60bdbc9fb46c80559fd8413e3966bdaed9a20eb1",
"altayofficial/bedrock-data": "6.10.0+bedrock-1.26.60@41c9f2e622681a36fdd073f6b19fcf0bc6a8d9cc",
"altayofficial/bedrock-protocol": "61.0.0+bedrock-1.26.60@3f074f2a0b02bffcfdb116b60c0159d7dd88950b",
"altayofficial/dtls": "1.0.2@0c405b1311619449778dd937bb4f2c9d706ce1ba",
"altayofficial/nbt": "1.3.0@2b1399b905db2937478435d596417c47e4120437",
"altayofficial/network": "1.6.0@8d5dbf6d77eae07848a014e4e79b0bf382fd713d",
"altayofficial/webrtc": "1.9.1@f786109361ae5b485cb03f03ae5f3f1e90824ed4",
"altayofficial/worldupgraderschemas": "1.19.0+bedrock-1.26.60@1db36ebd9c90fbada1aae1393538a6056f4913c6",
"brick/math": "0.13.1@fc7ed316430118cc7836bf45faff18d5dfc8de04",
"daverandom/callback-validator": "unknown@unknown",
"evenement/evenement": "v3.0.2@0a16b0d71ab13284339abb99d9d2bd813640efbc",
"fig/http-message-util": "1.1.5@9d94dc0154230ac39e5bf89398b324a86f63f765",
"netresearch/jsonmapper": "v5.0.1@980674efdda65913492d29a8fd51c82270dd37bb",
"pocketmine/binaryutils": "0.2.7@14c044afa33cb581b4a6d1ea04a87e0bc99e824b",
"pocketmine/callback-validator": "1.0.4@143fa6e13254f1ab90c31b223982016f95635c37",
"pocketmine/color": "0.3.1@a0421f1e9e0b0c619300fb92d593283378f6a5e1",
"pocketmine/errorhandler": "0.7.1@84c9ec829163f21ced425d8f3b27d32f908e87fb",
"pocketmine/log": "0.4.0@e6c912c0f9055c81d23108ec2d179b96f404c043",
"pocketmine/math": "1.0.0@dc132d93595b32e9f210d78b3c8d43c662a5edbf",
"pocketmine/snooze": "0.5.0@a86d9ee60ce44755d166d3c7ba4b8b8be8360915",
"psr/http-message": "1.1@cb6ce4845ce34a8ad9e68117c10ee90a29919eba",
"psr/log": "3.0.2@f16e1d5863e37f8d8c2a01719f5b34baa2b714d3",
"quasarstream/datachannel": "unknown@unknown",
"quasarstream/dtls": "unknown@unknown",
"quasarstream/exception": "unknown@unknown",
"quasarstream/ice": "unknown@unknown",
"quasarstream/mdns": "unknown@unknown",
"quasarstream/mixin": "unknown@unknown",
"quasarstream/ntp": "unknown@unknown",
"quasarstream/rtp-parameter": "unknown@unknown",
"quasarstream/sctp": "unknown@unknown",
"quasarstream/sdp": "unknown@unknown",
"quasarstream/stats": "unknown@unknown",
"quasarstream/stun": "unknown@unknown",
"quasarstream/turn": "unknown@unknown",
"quasarstream/webrtc": "unknown@unknown",
"ramsey/collection": "2.1.1@344572933ad0181accbf4ba763e85a0306a8c5e2",
"ramsey/uuid": "4.9.4@75d73f48d02797c2c285a7e9f348fadc0102ffe2",
"react/async": "v4.3.0@635d50e30844a484495713e8cb8d9e079c0008a5",
"react/cache": "v1.2.0@d47c472b64aa5608225f47965a484b75c7817d5b",
"react/datagram": "v1.10.0@9236e1f5a67a6029be17d551e9858c487836c301",
"react/dns": "v1.14.0@7562c05391f42701c1fccf189c8225fece1cd7c3",
"react/event-loop": "v1.6.0@ba276bda6083df7e0050fd9b33f66ad7a4ac747a",
"react/http": "v1.11.1@e5b8eb2654dec6cbbc692a39f05ea4ecd40c8cc1",
"react/promise": "v3.3.0@23444f53a813a3296c1368bb104793ce8d88f04a",
"react/socket": "v1.17.0@ef5b17b81f6f60504c539313f94f2d826c5faa08",
"react/stream": "v1.4.0@1e5b0acb8fe55143b5b426817155190eb6f5b18d",
"rhumsaa/uuid": "unknown@unknown",
"symfony/filesystem": "v6.4.48@e3ff48b19ac71ee79f89021122211710b892ae0b",
"symfony/polyfill-ctype": "unknown@unknown",
"symfony/polyfill-mbstring": "unknown@unknown",
"symfony/polyfill-php84": "v1.43.0@22c6548499cbe5c5bb072fc0c42312dff062a015"
}
},
"server.properties": "",
"pocketmine.yml": ""
}