empiricaly / empirica

Open source project to tackle the problem of long development cycles required to produce software to conduct multi-participant and real-time human experiments online.
https://empirica.ly/
Apache License 2.0
44 stars 8 forks source link

Error caught in `round.start` callback; cannot read properties of undefined (reading 'round') #473

Closed aliciamchen closed 4 months ago

aliciamchen commented 7 months ago

Is there an existing issue for this?

What happened?

I got another round.start callback error that is different from before (#467). After I got the error in the console, participants saw an infinite spinny circle and were not able to continue the game. I did receive a tiny bit of data on my console after I got this error (indicating some participants were still able to do the task), but after a few seconds the data stopped coming in and none of the participants were able to proceed.

This error does not happen every time I run the experiment.

The admin console also reset but if I waited long enough it would show the players and games (but sometimes it would reset again)

Steps To Reproduce

No response

Empirica Version

Version: v1.8.12
SHA:     656d19b
Build:   159
Branch:  main
Time:    2023-12-26T07:14:40Z

What OS are you seeing the problem on?

macOS

What browser are you seeing the problem on?

No response

Relevant log output

17:30:16.323 ERR Error caught in "round.start" callback:
17:30:16.506 ERR TypeError: Cannot read properties of undefined (reading 'round')
17:30:16.506 ERR   at <anonymous> (/tmp/2fe66e9b1d711942/src/callbacks.js:65:11)
17:30:16.506 ERR   at <anonymous> (/tmp/2fe66e9b1d711942/node_modules/@empirica/core/src/admin/classic/proxy.ts:54:9)
17:30:16.506 ERR   at Object.callback (/tmp/2fe66e9b1d711942/node_modules/@empirica/core/src/admin/events.ts:91:11)
17:30:16.506 ERR   at Object.next (/tmp/2fe66e9b1d711942/node_modules/@empirica/core/src/admin/cake.ts:322:30)
17:30:16.506 ERR   at runMicrotasks (<anonymous>)
17:30:16.506 ERR   at processTicksAndRejections (node:internal/process/task_queues:96:5)

Anything else?

No response

Code of Conduct

npaton commented 7 months ago

FYI, I am still working on this one and #467, which seem to be related.

aliciamchen commented 7 months ago

Thank you! I have also been getting this error, in 1.9.2:

00:36:20.490 ERR Error caught in "stage.ended" callback:
00:36:20.548 ERR TypeError: Cannot read properties of undefined (reading 'stage')
00:36:20.548 ERR   at <anonymous> (/tmp/220f55abc589d820/src/callbacks.js:110:13)
00:36:20.548 ERR   at <anonymous> (/tmp/220f55abc589d820/node_modules/@empirica/core/src/admin/classic/proxy.ts:82:9)
00:36:20.548 ERR   at Object.callback (/tmp/220f55abc589d820/node_modules/@empirica/core/src/admin/events.ts:91:11)
00:36:20.548 ERR   at Object.next (/tmp/220f55abc589d820/node_modules/@empirica/core/src/admin/cake.ts:322:30)
00:36:20.548 ERR   at runMicrotasks (<anonymous>)
00:36:20.548 ERR   at processTicksAndRejections (node:internal/process/task_queues:96:5)
npaton commented 7 months ago

Ok, thank you. Yeah, this is a big one I have left remaining. I'll get to it asap.

npaton commented 4 months ago

I don't think this is happening anymore. Please reopen if you're still seeing this.