Error: generated notifications are larger than 128k (132510) (reference: GS1 08\/10 20:21:13)

Game development with Board Game Arena Studio
Post Reply
User avatar
Mumbly
Posts: 6
Joined: 26 November 2022, 19:25

Error: generated notifications are larger than 128k (132510) (reference: GS1 08\/10 20:21:13)

Post by Mumbly »

Hello,

In Memoir44 game only for 2 players, I developped a Campaign mode, in this mode, sometimes some player are complaining about this error that happen only at end of round when the player are seeing their stats results. When pressing the Proceed to next round , takeAction 'actProceed' is launched for each player, both players are active.

I just could reproduce this error when the second player clicked on proceed to next round button.
{"status":"0","exception":"feException","error":"Error: generated notifications are larger than 128k (132510) (reference: GS1 08\/10 20:21:13)","expected":0,"code":100,"args":null,"stack":"
#0 \/var\/tournoi\/release\/tournoi-251003-0935-gs\/www\/Bga\/GameFramework\/Table.php(3356): Bga\\GameFramework\\Table->sendNotificationPacket('...', 29, Array)\n
#1 \/var\/tournoi\/release\/tournoi-251003-0935-gs\/www\/Bga\/GameFramework\/GamePage.php(315): Bga\\GameFramework\\Table->sendNotifications()\n
#2 \/var\/tournoi\/release\/tournoi-251003-0935-gs\/www\/Bga\/GameFramework\/GamePageAction.php(133): Bga\\GameFramework\\GamePage->getAjaxResponseResult(NULL)\n
#3 \/var\/tournoi\/release\/tournoi-251003-0935-gs\/www\/Bga\/GameFramework\/GameAction.php(44): Bga\\GameFramework\\GamePageAction->ajaxResponseWithResult(NULL)\n
#4 \/var\/tournoi\/release\/games\/memoir\/999999-9999\/memoir.action.php(68): Bga\\GameFramework\\GameAction->ajaxResponse()\n
#5 \/var\/tournoi\/release\/tournoi-251003-0935-gs\/www\/Bga\/GameFramework\/GameAction.php(127): action_memoir->actProceed()\n
#6 \/var\/tournoi\/release\/tournoi-251003-0935-gs\/www\/Bga\/GameFramework\/GamePageAction.php(332): Bga\\GameFramework\\GameAction->performServerAction('...')\n
#7 \/var\/tournoi\/release\/tournoi-251003-0935-gs\/www\/include\/webActionCore.inc.php(175): Bga\\GameFramework\\GamePageAction->performServerAction('...')\n
#8 \/var\/tournoi\/release\/tournoi-251003-0935-gs\/www\/index.php(262): launchWebAction('...', '...', '...', false, false, NULL, true, false)\n#9 {main}"}

Is it normal to have an Ajax response NULL, ajaxResponseWithResult(NULL), in act proceed function I don't send any notification in this state here is the code for long time :

in memoir.action
public function actProceed()
{
self::setAjaxMode();
$this->game->actProceed();
self::ajaxResponse();
}

in the RoundTrait Php
public function actProceed()
{
self::checkAction('actProceed');
$pId = $this->getCurrentPId();
$this->gamestate->setPlayerNonMultiactive($pId, 'done');
}
User avatar
thoun
Posts: 1620
Joined: 10 December 2020, 22:25

Re: Error: generated notifications are larger than 128k (132510) (reference: GS1 08\/10 20:21:13)

Post by thoun »

It sends all notifications resulting of the end of actProceed in 1 batch. So if the stats results sent are too big in the following notifications, you have this error.
User avatar
Mumbly
Posts: 6
Joined: 26 November 2022, 19:25

Re: Error: generated notifications are larger than 128k (132510) (reference: GS1 08\/10 20:21:13)

Post by Mumbly »

Hello OK thanks for the answer, let me try to reduce the numbers of stats.

Can I only select only a few stats to be notified ? or shall I remove some stats ? what is roughly the cost of 1 stat in terms of byte ?
Post Reply

Return to “Developers”