Can't try my experiment in the browser
Hello!
I'm new to OpenSesame, first of all thank you for this great program!
I'm trying to implement an experiment online, I had some inline scripts that I already converted to JavaScript, and it seems to work fine. However, when I try to run it in the browser (offline), I get an error message.
I copy here what I get (here you can't see the colors but I have in red u'standalone' and 'MemoryError'. Do you know what it could be? The dimension of my experiment is bigger than the one recommended (96MB, I have music and pictures in it). Could this be the problem?
Traceback (most recent call last): File "C:\Program Files (x86)\OpenSesame\share\opensesame_extensions\oswebext\oswebext_widget.py", line 117, in _test fullscreen=fullscreen File "C:\Program Files (x86)\OpenSesame\lib\site-packages\osweb\export.py", line 50, in standalone _html(osexp, dst, u'standalone', params) File "C:\Program Files (x86)\OpenSesame\lib\site-packages\osweb\export.py", line 161, in _html html = dom.prettify() File "C:\Program Files (x86)\OpenSesame\lib\site-packages\bs4\element.py", line 1222, in prettify return self.decode(True, formatter=formatter) File "C:\Program Files (x86)\OpenSesame\lib\site-packages\bs4\__init__.py", line 566, in decode indent_level, eventual_encoding, formatter) File "C:\Program Files (x86)\OpenSesame\lib\site-packages\bs4\element.py", line 1188, in decode indent_contents, eventual_encoding, formatter) File "C:\Program Files (x86)\OpenSesame\lib\site-packages\bs4\element.py", line 1257, in decode_contents formatter)) File "C:\Program Files (x86)\OpenSesame\lib\site-packages\bs4\element.py", line 1188, in decode indent_contents, eventual_encoding, formatter) File "C:\Program Files (x86)\OpenSesame\lib\site-packages\bs4\element.py", line 1257, in decode_contents formatter)) File "C:\Program Files (x86)\OpenSesame\lib\site-packages\bs4\element.py", line 1188, in decode indent_contents, eventual_encoding, formatter) File "C:\Program Files (x86)\OpenSesame\lib\site-packages\bs4\element.py", line 1257, in decode_contents formatter)) File "C:\Program Files (x86)\OpenSesame\lib\site-packages\bs4\element.py", line 1161, in decode + EntitySubstitution.quoted_attribute_value(text)) File "C:\Program Files (x86)\OpenSesame\lib\site-packages\bs4\dammit.py", line 136, in quoted_attribute_value return quote_with + value + quote_with MemoryError
Sorry if this is a stupid thing, but I'm quite new to programming language
Initially I thought to test participants in the lab, but due to the coronavirus restrictions I must do it online.
Thank you.
Francesca
Comments
Hi Francesca,
Memory could be the problem (particularly given that the error you report is a MemoryError). You can try to reduce the memory load to check whether this is indeed the problem. So, take out a good number of images and see whether it works. Another option would be to downscale the images
Good luck,
Eduard