# Windows 10: Runtime Error Thread got too far behind time

**URL:** <https://in-thread.sonic-pi.net/t/windows-10-runtime-error-thread-got-too-far-behind-time/1513>\
**Category:** Support, Help & Resources\
**Created:** [September 30, 2018, 1:20pm UTC](https://in-thread.sonic-pi.net/t/windows-10-runtime-error-thread-got-too-far-behind-time/1513 "2018-09-30T13:20:36Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![jelka](https://avatars.discourse-cdn.com/v4/letter/j/57b2e6/32.png) [@jelka](https://in-thread.sonic-pi.net/u/jelka)\
**Post date:** [September 30, 2018, 1:20pm UTC](https://in-thread.sonic-pi.net/t/windows-10-runtime-error-thread-got-too-far-behind-time/1513/1 "2018-09-30T13:20:36Z")

</div>

Hello there,  
I am new to Sonic Pi. After a great Presentation from Sam in Eindhoven, I wanted to try for myself. So I installed Sonic Pi on my Windows 10 Machine. But unfortunately it won’t work. I keep getting Runtime Error, Thread got too far behind time. I already read somewhere that I might have something to do with power saving settings. I tried fiddling with those, but it will not solve the problems. Can anyone tell me what the magic buttons are to press, here?  
Thanx,

Jelka

---

<div class="post-metadata">

**Author:** ![Martin](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/martin/32/157_2.png) [@Martin](https://in-thread.sonic-pi.net/u/Martin)\
**Post date:** [September 30, 2018, 2:18pm UTC](https://in-thread.sonic-pi.net/t/windows-10-runtime-error-thread-got-too-far-behind-time/1513/2 "2018-09-30T14:18:56Z")

</div>

Hi @jelka,

it is probably helpful to see some example of code where this happens.

Just copy the code, insert three backticks, return, then the code, return and three more backticks and it’ll be nicely formated for anyone to check (see [Sam’s remarks about formating](http://in-thread.sonic-pi.net/t/read-first-welcome-the-sonic-pi-community/8) if my description is not clear enough).

Martin

---

<div class="post-metadata">

**Author:** ![luxo242](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/luxo242/32/775_2.png) [@luxo242](https://in-thread.sonic-pi.net/u/luxo242)\
**Post date:** [November 1, 2018, 5:08pm UTC](https://in-thread.sonic-pi.net/t/windows-10-runtime-error-thread-got-too-far-behind-time/1513/3 "2018-11-01T17:08:46Z")

</div>

I’m getting the same error message. I’m a teacher and I’ve now installed Sonic-Pi on several computers in my school. While I’m in my administrator mode I am able to use Sonic-Pi (that’s how I have to install it), but when I switch to my regular account I get this exact error. Not on every computer but on some. It’s not the code. It can be as simple as “Play 70” and I get this error. I have uninstalled and re-installed the program twice. The data seems to remain. Meaning that when I re-start Sonic-Pi, the code, “Play 70” still appears. So maybe if I could clear the cache somehow, but I’m not sure how to do that. Help please!

---

<div class="post-metadata">

**Author:** ![Martin](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/martin/32/157_2.png) [@Martin](https://in-thread.sonic-pi.net/u/Martin)\
**Post date:** [November 1, 2018, 6:01pm UTC](https://in-thread.sonic-pi.net/t/windows-10-runtime-error-thread-got-too-far-behind-time/1513/4 "2018-11-01T18:01:16Z")

</div>

Sorry, I won’t be able to answer this question. Seems to be some problem with access rights and/or network. I guess there must be someone around here having experience with installing Sonic Pi in a similar environement.

---

<div class="post-metadata">

**Author:** ![luxo242](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/luxo242/32/775_2.png) [@luxo242](https://in-thread.sonic-pi.net/u/luxo242)\
**Post date:** [November 1, 2018, 6:11pm UTC](https://in-thread.sonic-pi.net/t/windows-10-runtime-error-thread-got-too-far-behind-time/1513/5 "2018-11-01T18:11:19Z")

</div>

Thanks for the quick reply.

---

<div class="post-metadata">

**Author:** ![samaaron](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/samaaron/32/7_2.png) [@samaaron](https://in-thread.sonic-pi.net/u/samaaron)\
**Post date:** [November 1, 2018, 6:25pm UTC](https://in-thread.sonic-pi.net/t/windows-10-runtime-error-thread-got-too-far-behind-time/1513/6 "2018-11-01T18:25:25Z")

</div>

Hi @luxo242,

I’ve recently switched to a Windows machine for my live performances. One thing I noticed is that I got unexpected timing errors until I disabled all the energy saving optimisations in the OS. Once I did, the errors stopped.

Are you running Sonic Pi on laptops? Perhaps you might want to try doing the same 🙂

---

<div class="post-metadata">

**Author:** ![luxo242](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/luxo242/32/775_2.png) [@luxo242](https://in-thread.sonic-pi.net/u/luxo242)\
**Post date:** [November 1, 2018, 7:32pm UTC](https://in-thread.sonic-pi.net/t/windows-10-runtime-error-thread-got-too-far-behind-time/1513/7 "2018-11-01T19:32:16Z")

</div>

I will try that. I’m not sure it’s the issue as it has happened both when plugged in an unplugged. It happened on another laptop (Windows 10) and I uninstalled and re-installed and it seemed to work after that. Is there a way to clear the buffer? On this computer when I re-installed Sonic-Pi, the code I had written previously was still there. So it’s not a complete wipe when it’s uninstalled. Some data clearly remains. Thank you.

---

<div class="post-metadata">

**Author:** ![Martin](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/martin/32/157_2.png) [@Martin](https://in-thread.sonic-pi.net/u/Martin)\
**Post date:** [November 1, 2018, 7:44pm UTC](https://in-thread.sonic-pi.net/t/windows-10-runtime-error-thread-got-too-far-behind-time/1513/8 "2018-11-01T19:44:12Z")

</div>

Hi @luxo242,

Sonic Pi stores preferences as well as the buffer states and logs within a `.sonic-pi` folder (here again, I am working not with Windows but probably something like `C:\Users\[username]\AppData\.sonic-pi`); if you delete that folder you’ll get a fresh Sonic Pi (it will create a fresh `.sonic-pi` folder after the initial start).

---

<div class="post-metadata">

**Author:** ![luxo242](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/luxo242/32/775_2.png) [@luxo242](https://in-thread.sonic-pi.net/u/luxo242)\
**Post date:** [November 2, 2018, 4:24pm UTC](https://in-thread.sonic-pi.net/t/windows-10-runtime-error-thread-got-too-far-behind-time/1513/9 "2018-11-02T16:24:09Z")

</div>

I’m still not having any luck. I have changed the power settings to high-performance so there are no energy saving features on and it’s plugged in. I have found the log files and managed to delete them so when I load Sonic-Pi there is nothing there (although I notice some of my preferences were their, like the volume level). I re-installed and still get the same runtime error. I am going to uninstall, delete the logs and then pull the battery to see if that makes any difference. As you may have discerned, I’m not computer expert, but I can’t call the school boards IT department because it’s unsupported software. I’ll let you know how it goes.

---

<div class="post-metadata">

**Author:** ![luxo242](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/luxo242/32/775_2.png) [@luxo242](https://in-thread.sonic-pi.net/u/luxo242)\
**Post date:** [November 2, 2018, 5:10pm UTC](https://in-thread.sonic-pi.net/t/windows-10-runtime-error-thread-got-too-far-behind-time/1513/10 "2018-11-02T17:10:49Z")

</div>

Still the same problem. Deleted everything. Uninstalled. Example:

=\> Starting run 2

{run: 2, time: 0.0}

└─ synth :beep, {note: 50.0, cheese: 1}

=\> Completed run 2

=\> All runs completed

=\> Pausing SuperCollider Audio Server

Doesn’t matter what I do I keep getting this error message. Ugh!

---

<div class="post-metadata">

**Author:** ![din](https://avatars.discourse-cdn.com/v4/letter/d/ccd318/32.png) [@din](https://in-thread.sonic-pi.net/u/din)\
**Post date:** [November 9, 2021, 5:07am UTC](https://in-thread.sonic-pi.net/t/windows-10-runtime-error-thread-got-too-far-behind-time/1513/11 "2021-11-09T05:07:35Z")

</div>

Don’t mean to bump a old thread but I can say as of 11/9/2021

This issue has come back.

None of my old scripts work and I have no clue why

---

<div class="post-metadata">

**Author:** ![cubicinfinity](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/cubicinfinity/32/2355_2.png) [@cubicinfinity](https://in-thread.sonic-pi.net/u/cubicinfinity)\
**Post date:** [May 9, 2023, 2:00am UTC](https://in-thread.sonic-pi.net/t/windows-10-runtime-error-thread-got-too-far-behind-time/1513/12 "2023-05-09T02:00:51Z")

</div>

I’ve started having problems with this. The ‘Blockgame’ example by DJ\_Dave has always had a little lag, but now it’s impossible to run the `:hhc1` loop. I haven’t been able to find the source of this.
