I am running an experiment online using Google Chrome on Samsung tablets. About 3/4 of the way through the experiment, it crashes for most participants with an “Aw snap” error like this:

On the trial or two before it crashes, it is glitchy. The drawings the participants are making don’t show up where the stylus is or only show up intermittently. A couple of participants have gotten all the way through without issues.
What I’ve tried:
- I’ve tried this experiment on wifi that I know is reliable and still get the “Aw snap” error, so internet is not the problem
- The experiment involves the participant drawing a bunch of pictures. I’ve tried the experiment on Firefox but unfortunately the drawing is far less smooth than on Google Chrome so I can’t switch to that browser
- The experiment runs through to the end without issues if I don’t draw anything.
I am recording the stylus position every frame so that I can later re-create their drawings. I’m wondering if this is making the data file too large and causing the crash. Is there a way to save multiple smaller data files? Any ideas of other things that might be causing this?