﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 6  » Inquisit crashes while trying to load large audio files</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sun, 05 Apr 2026 01:33:09 GMT</lastBuildDate><ttl>20</ttl><item><title>Inquisit crashes while trying to load large audio files</title><link>https://forums.millisecond.com/Topic31690.aspx</link><description>I have an experiment that contains two mp3 files of roughly 15 minutes each, one 6 MB and another 16 MB. If I try to run the experiment with either one individually, it works fine, but if I add a branch that directs the participant to either the experimental or the control group, I get an "Internet timeout error. Files pending: 1". A few seconds later the program crashes entirely. Occasionally it does manage to run, even when I've made no changes to the script. &lt;br/&gt;&lt;br/&gt;However, after I closed about a dozen browser tabs and open programs, it does work consistently. This freed up about 1 GB of memory, going from 2 to 3 GB available. It seems that if there's not enough memory available, Inquisit crashes, but I'm not sure about that, because when I run the experiment, memory usage goes up by 1 GB at most. But given that I had no problems loading either the 6 MB or the 16 MB audio file alone, that suggests that trying to load them both into memory is what's causing problems. So what's actually going on here?&lt;br/&gt;&lt;br/&gt;The script is a modified version of a task from the Inquisit library. A test version that only plays a few seconds of the audio is running at &lt;a href="https://mili2nd.eu/ln2b"&gt;https://mili2nd.eu/ln2b&lt;/a&gt; and the script is attached.</description><pubDate>Tue, 08 Jun 2021 17:09:34 GMT</pubDate><dc:creator>LTK</dc:creator></item><item><title>RE: Inquisit crashes while trying to load large audio files</title><link>https://forums.millisecond.com/Topic31693.aspx</link><description>&lt;blockquote data-id="31692" class="if-quote-wrapper" unselectable="on" data-guid="1623171914122" id="if_insertedNode_1623171913689" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31692" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31692" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31692" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;LTK - 6/8/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31692"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="31691" class="if-quote-wrapper" unselectable="on" data-guid="1623171914122" id="if_insertedNode_1623170767847" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31691" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31691" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31691" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 6/8/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31691"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;br/&gt;Quick thing you should try: Change the &amp;lt;sound&amp;gt; elements you use to play back the MP3s to &amp;lt;video&amp;gt; (see attached).&lt;br/&gt;&lt;br/&gt;&amp;lt;sound&amp;gt; and &amp;lt;video&amp;gt; work and behave slightly differently. &amp;lt;sound&amp;gt; will attempt to stuff everything into memory, which is very demanding when the recordings are long. &amp;lt;video&amp;gt; will "stream" the audio file from disk, i.e. does not require it to fully reside in memory at all times.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="31691"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Ah thank you, that does make a huge difference. Cuts the load time from a minute to a few seconds. So it's definitely a memory problem, then? I'd expect Inquisit to handle this more gracefully than just crashing without a word.&lt;a class="if-quote-goto quote-link" href="#" data-id="31692"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;It's definitely a memory problem. As a rule of thumb:&lt;br/&gt;- Use &amp;lt;sound&amp;gt; for short bits of uncompressed WAV files, when timing is critical (e.g. when doing auditory priming or dichotic listening work). All audio will be buffered into memory and is quickly accessible, thereby minimizing startup latency.&lt;br/&gt;- Use &amp;lt;video&amp;gt; with compressed audio for everything else, such as spoken instructions or long pieces of audio running in the background.&lt;br/&gt;&lt;br/&gt;I've added the crashing to our tracker, perhaps there is a way to bail out more gracefully. Ultimately, though, any application will crash if it or one of the components it relies on runs out of memory.&lt;br/&gt;</description><pubDate>Tue, 08 Jun 2021 17:09:34 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Inquisit crashes while trying to load large audio files</title><link>https://forums.millisecond.com/Topic31692.aspx</link><description>&lt;blockquote data-id="31691" class="if-quote-wrapper" unselectable="on" data-guid="1623170769021" contenteditable="false" id="if_insertedNode_1623170767847"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31691" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31691" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31691" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 6/8/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31691"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;br/&gt;Quick thing you should try: Change the &amp;lt;sound&amp;gt; elements you use to play back the MP3s to &amp;lt;video&amp;gt; (see attached).&lt;br/&gt;&lt;br/&gt;&amp;lt;sound&amp;gt; and &amp;lt;video&amp;gt; work and behave slightly differently. &amp;lt;sound&amp;gt; will attempt to stuff everything into memory, which is very demanding when the recordings are long. &amp;lt;video&amp;gt; will "stream" the audio file from disk, i.e. does not require it to fully reside in memory at all times.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="31691"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Ah thank you, that does make a huge difference. Cuts the load time from a minute to a few seconds. So it's definitely a memory problem, then? I'd expect Inquisit to handle this more gracefully than just crashing without a word.</description><pubDate>Tue, 08 Jun 2021 16:50:09 GMT</pubDate><dc:creator>LTK</dc:creator></item><item><title>RE: Inquisit crashes while trying to load large audio files</title><link>https://forums.millisecond.com/Topic31691.aspx</link><description>&lt;blockquote data-id="31690" class="if-quote-wrapper" unselectable="on" data-guid="1623170034599" id="if_insertedNode_1623170033584" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="31690" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="31690" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="31690" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;LTK - 6/8/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-31690"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;I have an experiment that contains two mp3 files of roughly 15 minutes each, one 6 MB and another 16 MB. If I try to run the experiment with either one individually, it works fine, but if I add a branch that directs the participant to either the experimental or the control group, I get an "Internet timeout error. Files pending: 1". A few seconds later the program crashes entirely. Occasionally it does manage to run, even when I've made no changes to the script. &lt;br/&gt;&lt;br/&gt;However, after I closed about a dozen browser tabs and open programs, it does work consistently. This freed up about 1 GB of memory, going from 2 to 3 GB available. It seems that if there's not enough memory available, Inquisit crashes, but I'm not sure about that, because when I run the experiment, memory usage goes up by 1 GB at most. But given that I had no problems loading either the 6 MB or the 16 MB audio file alone, that suggests that trying to load them both into memory is what's causing problems. So what's actually going on here?&lt;br/&gt;&lt;br/&gt;The script is a modified version of a task from the Inquisit library. A test version that only plays a few seconds of the audio is running at &lt;a href="https://mili2nd.eu/ln2b"&gt;&lt;a href="https://mili2nd.eu/ln2b"&gt;https://mili2nd.eu/ln2b&lt;/a&gt;&lt;/a&gt; and the script is attached.&lt;a class="if-quote-goto quote-link" href="#" data-id="31690"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Quick thing you should try: Change the &amp;lt;sound&amp;gt; elements you use to play back the MP3s to &amp;lt;video&amp;gt; (see attached).&lt;br/&gt;&lt;br/&gt;&amp;lt;sound&amp;gt; and &amp;lt;video&amp;gt; work and behave slightly differently. &amp;lt;sound&amp;gt; will attempt to stuff everything into memory, which is very demanding when the recordings are long. &amp;lt;video&amp;gt; will "stream" the audio file from disk, i.e. does not require it to fully reside in memory at all times.&lt;br/&gt;&lt;br/&gt;(Note: The /file attributes in &amp;lt;data&amp;gt; and &amp;lt;summarydata&amp;gt; are commented out in the attached script, since I did not want to needlessly spam your data upload service.)&lt;br/&gt;</description><pubDate>Tue, 08 Jun 2021 16:40:50 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>