nhanaz-pm-pl / CustomJoinSound

You should hear "Welcome to the server!" when join server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ValueError: "Invalid or uninitialized Zip object"

NhanAZ opened this issue · comments

@DavidGlitch04 Can you help me fix this issues?
Looks like your PR still has a potential bug or it could be because of the jasonwynn10/libCustomPack library
I'm not sure anymore...
https://crash.pmmp.io/view/6988897

[12:47:34.693] [Server thread/CRITICAL]: ValueError: "Invalid or uninitialized Zip object" (EXCEPTION) in "D:/Dev/virions/libCustomPack-master/src/libCustomPack/libCustomPack" at line 28
--- Stack trace ---
  #0 D:/Dev/virions/libCustomPack-master/src/libCustomPack/libCustomPack(28): ZipArchive->close()
  #1 plugins/CustomJoinSound/src/NhanAZ/CustomJoinSound/Main(21): libCustomPack\libCustomPack::generatePackFromResources(object NhanAZ\CustomJoinSound\Main#25968)
  #2 pmsrc/src/plugin/PluginBase(117): NhanAZ\CustomJoinSound\Main->onEnable()
  #3 pmsrc/src/plugin/PluginManager(448): pocketmine\plugin\PluginBase->onEnableStateChange(true)
  #4 pmsrc/src/Server(1419): pocketmine\plugin\PluginManager->enablePlugin(object NhanAZ\CustomJoinSound\Main#25968)
  #5 pmsrc/src/Server(1024): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#25741)
  #6 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[7] D:\Dev\, string[15] D:\Dev\plugins\)
  #7 pmsrc/src/PocketMine(327): pocketmine\server()
  #8 pmsrc(11): require(string[51] phar://D:/Dev/PocketMine-MP.phar/src/PocketMine.php)
--- End of exception information ---
[12:47:34.693] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump
[12:47:34.704] [Server thread/EMERGENCY]: Please upload the "D:/Dev/crashdumps/Wed_Jun_15-12.47.34-WIB_2022.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.
[12:47:34.705] [Server thread/EMERGENCY]: Forcing server shutdown
[12:47:34.722] [Server thread/CRITICAL]: Error: "Typed property NhanAZ\CustomJoinSound\Main::$libRegRsp must not be accessed before initialization" (EXCEPTION) in "plugins/CustomJoinSound/src/NhanAZ/CustomJoinSound/Main" at line 26
--- Stack trace ---
  #0 pmsrc/src/plugin/PluginBase(119): NhanAZ\CustomJoinSound\Main->onDisable()
  #1 pmsrc/src/plugin/PluginManager(487): pocketmine\plugin\PluginBase->onEnableStateChange(false)
  #2 pmsrc/src/plugin/PluginManager(476): pocketmine\plugin\PluginManager->disablePlugin(object NhanAZ\CustomJoinSound\Main#25968)
  #3 pmsrc/src/Server(1487): pocketmine\plugin\PluginManager->disablePlugins()
  #4 pmsrc/src/Server(1672): pocketmine\Server->forceShutdown()
  #5 pmsrc/src/Server(1571): pocketmine\Server->crashDump()
  #6 pmsrc/src/Server(1066): pocketmine\Server->exceptionHandler(object ValueError#28974)
  #7 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[7] D:\Dev\, string[15] D:\Dev\plugins\)
  #8 pmsrc/src/PocketMine(327): pocketmine\server()
  #9 pmsrc(11): require(string[51] phar://D:/Dev/PocketMine-MP.phar/src/PocketMine.php)
--- End of exception information ---
[12:47:34.723] [Server thread/EMERGENCY]: Crashed while crashing, killing process

This problem only occurs on the first time the plugin is launched (That is, the plugin data of this plugin has not been created)

Most likely it's the jasonwynn10/libCustomPack library causing the error.

This problem will be solved by froce deleting commits since c63b281
The jasonwynn10/libCustomPack library is not ready for use yet