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
47 stars 8 forks source link

8s stage occasionally takes longer (way longer) #570

Closed HuangHam closed 4 weeks ago

HuangHam commented 3 months ago

Is there an existing issue for this?

What happened?

I have a stage that should take 8s: round.addStage({name: "maintenance", duration:8}); but I receive feedback from some prolific participants that at some trials, it "freeze" at this stage but later it was able to proceed. When I looked at the duration data I recorded I indeed found that each subjects had some trials where this stage took extremely long: like over 1 min or 2 min sometimes. I don't know how to reproduce this problem because on my local server it works fine. I wonder maybe my digitalocean is not powerful enough so occasionally heavier traffic causes the server to "pause" a subject's task?

Steps To Reproduce

No response

Empirica Version

v1.11.3

What OS are you seeing the problem on?

No response

What browser are you seeing the problem on?

No response

Relevant log output

No response

Anything else?

No response

Code of Conduct

HuangHam commented 3 months ago

Follow-up: the "freezing" might be a separate issue from the timing. I made too many player.set or player.round.set in a stage and too many renders of url images which causes the freezing. But once I fixed all that the timing issue still persists (though not as extreme as before). It happens even in stages where I literally just present a string of text for 1 second.

npaton commented 4 weeks ago

I think this is fixed.