Page 1 of 1

notifEnd js error

Posted: 02 August 2020, 15:15
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

Re: notifEnd js error

Posted: 03 August 2020, 18:54
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.

Re: notifEnd js error

Posted: 03 August 2020, 23:40
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

Re: notifEnd js error

Posted: 05 August 2020, 15:00
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.

Re: notifEnd js error

Posted: 06 August 2020, 15:40
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