menu
#10626755 Call to undefined function AdvancedCosmetics\utils\imagecreatetruecolor()

Submitted by PocketMine-MP 5.13.0

General information

Version: 5.13.0
Git commit: f193a990
Plugin involvement: Direct
Report date: 2024-04-03 06:31:17 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 6 seconds

System Information

PHP version: 8.2.13
JIT status: Not available
Operating system: linux
System banner: Linux 92c7ea95-a1fa-4c56-9e32-dbe0e15c163d 5.15.0-1049-oracle #55-Ubuntu SMP Mon Nov 20 19:53:49 UTC 2023 aarch64

Error information

Warning: the AdvancedCosmetics plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Call to undefined function AdvancedCosmetics\utils\imagecreatetruecolor()
File: plugins/AdvancedCosmetics/src/AdvancedCosmetics/utils/SkinUtils
Line: #47
Type: Error
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
        $size = strlen($skinData);
if(!isset($this->skin_widget_map[$size]) || !isset($this->skin_height_map[$size])) {
copy(Path::join(\AdvancedCosmetics::getInstance()->getDataFolder(), "steve.png"), Path::join(\AdvancedCosmetics::getInstance()->getDataFolder() . "skins", "{$name}.png"));
return null;
}

$width = $this->skin_widget_map[$size];
$height = $this->skin_height_map[$size];
$skinPos = 0;
$image = imagecreatetruecolor($width, $height);
if ($image === false) return null;

imagefill($image, 0, 0, imagecolorallocatealpha($image, 0, 0, 0, 127));
for ($y = 0; $y < $height; $y++) {
for ($x = 0; $x < $width; $x++) {
if(isset($skinData[$skinPos])) {
$r = ord($skinData[$skinPos]);
$skinPos++;
$g = ord($skinData[$skinPos]);
$skinPos++;
#0 plugins/AdvancedCosmetics/src/AdvancedCosmetics/utils/SkinUtils(78): AdvancedCosmetics\utils\SkinUtils->skinDataToImage(string[16384] ................................*...*...$...*...*...$...$.......uG/.uG/.uG/.uG/., string[10] Mytiii1235)
#1 plugins/AdvancedCosmetics/src/AdvancedCosmetics/listeners/EventListener(42): AdvancedCosmetics\utils\SkinUtils->save(string[16384] ................................*...*...$...*...*...$...$.......uG/.uG/.uG/.uG/., string[10] Mytiii1235)
#2 pmsrc/src/event/RegisteredListener(61): AdvancedCosmetics\listeners\EventListener->onDataReceive(object pocketmine\event\server\DataPacketReceiveEvent#127273)
#3 pmsrc/src/event/Event(63): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\server\DataPacketReceiveEvent#127273)
#4 pmsrc/src/network/mcpe/NetworkSession(448): pocketmine\event\Event->call()
#5 pmsrc/src/network/mcpe/NetworkSession(394): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\LoginPacket#51637, string[42531] ............{"chain":["eyJhbGciOiJFUzM4NCIsIng1dSI6Ik1IWXdFQVlIS29aSXpqMENBUVlGS)
#6 pmsrc/src/network/mcpe/raklib/RakLibInterface(214): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[7962] ..}Mw...e......;[email protected]..)[email protected].......#.HCb.&_..\....a+Bg.}.)
#7 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[7963] ...}Mw...e......;[email protected]..)[email protected].......#.HCb.&_..\....a+Bg.})
#8 pmsrc/src/network/mcpe/raklib/RakLibInterface(107): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#128098)
#9 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#10 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\TimeTrackingSleeperHandler->pocketmine\{closure}()
#11 pmsrc/src/TimeTrackingSleeperHandler(77): pocketmine\snooze\SleeperHandler->processNotifications()
#12 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#13 pmsrc/src/Server(1696): pocketmine\snooze\SleeperHandler->sleepUntil(float 1712125877.4952)
#14 pmsrc/src/Server(1066): pocketmine\Server->tickProcessor()
#15 pmsrc/src/PocketMine(350): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#16 pmsrc/src/PocketMine(373): pocketmine\server()
#17 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show