Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

BIG issue #269

Closed
darkadams opened this issue Jan 30, 2020 · 9 comments
Closed

BIG issue #269

darkadams opened this issue Jan 30, 2020 · 9 comments
Labels
can not reproduce question Further information is requested

Comments

@darkadams
Copy link

Idk what happened but my areas got deleted and this is what it shows in my console
23:45:25] [Server thread/CRITICAL]: ErrorException: "Undefined offset: 0" (EXCEPTION) in "plugins/Festival.phar/src/genboy/Festival/FormUI" at line 288

[23:45:25] [Server thread/DEBUG]: #0 plugins/Festival.phar/src/genboy/Festival/FormUI(288): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[19] Undefined offset: 0, string[75] phar:///home/minecraft/plugins/Festival.phar/src/genboy/Festival/FormUI.php, integer 288, array[4])

[23:45:25] [Server thread/DEBUG]: #1 plugins/Festival.phar/src/genboy/Festival/FormUI(364): genboy\Festival\FormUI->areaEditForm(object pocketmine\Player, array[1])

[23:45:25] [Server thread/DEBUG]: #2 plugins/Festival.phar/src/xenialdan/customui/Form(48): genboy\Festival\FormUI->genboy\Festival{closure}(object pocketmine\Player, array[1])

[23:45:25] [Server thread/DEBUG]: #3 src/pocketmine/Player(3639): xenialdan\customui\Form->handleResponse(object pocketmine\Player, array[1])

[23:45:25] [Server thread/DEBUG]: #4 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(265): pocketmine\Player->onFormSubmit(integer 2, array[1])

[23:45:25] [Server thread/DEBUG]: #5 src/pocketmine/network/mcpe/protocol/ModalFormResponsePacket(49): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleModalFormResponse(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket)

[23:45:25] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(111): pocketmine\network\mcpe\protocol\ModalFormResponsePacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)

[23:45:25] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/protocol/BatchPacket(130): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket)

[23:45:25] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(111): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)

[23:45:25] [Server thread/DEBUG]: #9 src/pocketmine/Player(3276): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)

[23:45:25] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)

[23:45:25] [Server thread/DEBUG]: #11 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[19] 24.193.71.235 38749, object raklib\protocol\EncapsulatedPacket, integer 0)

[23:45:25] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()

[23:45:25] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()

[23:45:25] [Server thread/DEBUG]: #14 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}()

[23:45:25] [Server thread/DEBUG]: #15 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()

[23:45:25] [Server thread/DEBUG]: #16 src/pocketmine/Server(2406): pocketmine\snooze\SleeperHandler->sleepUntil(double 1580424325.195)

[23:45:25] [Server thread/DEBUG]: #17 src/pocketmine/Server(2250): pocketmine\Server->tickProcessor()

[23:45:25] [Server thread/DEBUG]: #18 src/pocketmine/Server(1811): pocketmine\Server->start()

[23:45:25] [Server thread/DEBUG]: #19 src/pocketmine/PocketMine(274): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/minecraft/, string[24] /home/minecraft/plugins/)

[23:45:25] [Server thread/DEBUG]: #20 src/pocketmine/PocketMine(297): pocketmine\server()

[23:45:25] [Server thread/DEBUG]: #21 (1): require(string[68] phar:///home/minecraft/pocketmine.phar/src/pocketmine/PocketMine.php)

,

@genboy
Copy link
Owner

genboy commented Jan 31, 2020

Hi @darkadams this happenend while using the Festival menu i suppose, i will look into to this.
what versions are u using? (pmmp and Festival)
Could you check if this problem remains also with a recent dev version

@genboy genboy added the question Further information is requested label Jan 31, 2020
@darkadams
Copy link
Author

darkadams commented Jan 31, 2020 via email

@genboy
Copy link
Owner

genboy commented Jan 31, 2020

From the log i guess the areas were already gone resulting in this error. (the offset:0 points to 0 areas)
Could you elaborate a bit on what happened before this error took place?

@darkadams
Copy link
Author

darkadams commented Feb 1, 2020 via email

@genboy
Copy link
Owner

genboy commented Feb 1, 2020

Hmmm, thats bad. I'll have to check each step to see where the code got stuck.
So you use the UI to start creating an area; could you pinpoint wich step didn't go right;
1- hold magic item, select create area in the menu and then tab pos1 and pos2 (or rad/dia)
2 - then in the form add the area name and settings and save.
3- Then back to the UI menu and select manage area?
4 - select area to edit?
5 - enter settings and save?

@darkadams
Copy link
Author

darkadams commented Feb 1, 2020 via email

@genboy
Copy link
Owner

genboy commented Feb 2, 2020

Thank you, i'm gonna check some code parts used in your actions and try to reproduce the error. Will let you know what i find.

@genboy genboy added In progress Extra attention is needed and removed question Further information is requested labels Feb 3, 2020
@genboy
Copy link
Owner

genboy commented Feb 15, 2020

Hi @darkadams i'm sorry but i was not able to reproduce this error/exception so it is very difficult to get to a solution. The area's data is saved in the areas.json file in the Festival plugin folder so there are many things that can cause this problem. I've just released an update, could you backup your areas.json, config.json and levels.json files and see the error comes back with this version 2.1.2?

@genboy genboy added can not reproduce and removed In progress Extra attention is needed labels Feb 15, 2020
@genboy genboy added the question Further information is requested label Mar 14, 2020
@genboy
Copy link
Owner

genboy commented May 16, 2020

Hi i'm closing this for now, please see if the latest dev version has the same problem. https://poggit.pmmp.io/ci/genboy/Festival/Festival

@genboy genboy closed this as completed May 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can not reproduce question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants