notifEnd js error

Game development with Board Game Arena Studio
Post Reply
User avatar
hersh
Posts: 76
Joined: 12 December 2013, 23:49

notifEnd js error

Post by hersh »

I'm noticing the following error message in javascript, but I'm not sure what it means.

Code: Select all

Received a notifEnd message while not waiting for a notification !!
It doesn't seem to have any impact on game play but first time I've seen it. It seems to occur when the UI is in a client_state.

has anyone else seen this error?

thanks
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

Re: notifEnd js error

Post by Victoria_La »

Its possible you have same race condition, i.e. in the middle of processing one noticiation, second happend or something like this.
User avatar
hersh
Posts: 76
Joined: 12 December 2013, 23:49

Re: notifEnd js error

Post by hersh »

It happens pretty frequently. Is there something I can do to resolve, or safe to ignore? I have a few synchronous notifications and do send some notifications back to back.

Thanks
User avatar
sourisdudesert
Administrateur
Posts: 4630
Joined: 23 January 2010, 22:02

Re: notifEnd js error

Post by sourisdudesert »

It should not happened, except if you are triggering manually notifend().

If you do, you should check that a synchronous notif has been triggered for each notifend() you are calling.
User avatar
hersh
Posts: 76
Joined: 12 December 2013, 23:49

Re: notifEnd js error

Post by hersh »

I don't call it manually, but debugged it some more.

It looks like the way I created the javascript module caused double construction of ebg.core.gamegui. Which caused double subscription of notifEnd, so first notif was fine, and the second kept reporting that error.

i've adjusted the module and the error no longer appears.

thanks
Post Reply

Return to “Developers”