# JSON File Error

**URL:** <https://discourse.stonehearth.net/t/json-file-error/25711>\
**Category:** Previous Build Reports\
**Created:** [September 22, 2016, 4:55pm UTC](https://discourse.stonehearth.net/t/json-file-error/25711 "2016-09-22T16:55:14Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lucia\_Cisneros](https://avatars.discourse-cdn.com/v4/letter/l/8e7dd6/32.png) [@Lucia\_Cisneros](https://discourse.stonehearth.net/u/Lucia_Cisneros)\
**Post date:** [September 22, 2016, 4:55pm UTC](https://discourse.stonehearth.net/t/json-file-error/25711/1 "2016-09-22T16:55:14Z")

</div>

I’m getting a pretty common error.

Error starting application:

Error reading file “C:/Program Files(x86)\Stream\steamapps\commono\Stonehearth\user\_settings.json”:  
Invalid JSON character detected (lo)  
Source:

Yes, I have followed the source and deleted the user\_settings.json file.

Yes, I have tried deleting the analytics file.

When I delete the user\_settings.json file, the game does run again, HOWEVER! the game only pulls up a really old save. Not my most recent save.

Is there any way I can restore my most recent save?

---

<div class="post-metadata">

**Author:** ![megashub](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/megashub/32/47769_2.png) [@megashub](https://discourse.stonehearth.net/u/megashub)\
**Post date:** [September 22, 2016, 4:57pm UTC](https://discourse.stonehearth.net/t/json-file-error/25711/2 "2016-09-22T16:57:55Z")

</div>

Hi @Lucia_Cisneros. Welcome to the Discourse!

What version of the game are you running?

---

<div class="post-metadata">

**Author:** ![Lucia\_Cisneros](https://avatars.discourse-cdn.com/v4/letter/l/8e7dd6/32.png) [@Lucia\_Cisneros](https://discourse.stonehearth.net/u/Lucia_Cisneros)\
**Post date:** [September 22, 2016, 5:05pm UTC](https://discourse.stonehearth.net/t/json-file-error/25711/4 "2016-09-22T17:05:56Z")

</div>

The last version I was able to run was Alpha 18 release 656. I can’t run release 663

---

<div class="post-metadata">

**Author:** ![megashub](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/megashub/32/47769_2.png) [@megashub](https://discourse.stonehearth.net/u/megashub)\
**Post date:** [September 22, 2016, 5:25pm UTC](https://discourse.stonehearth.net/t/json-file-error/25711/5 "2016-09-22T17:25:55Z")

</div>

By default, you can find stonehearth.log located in C:\Program Files (x86)\Steam\steamapps\common\Stonehearth\

Near the top of that file you’ll find a reference to the version number.

---

<div class="post-metadata">

**Author:** ![megashub](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/megashub/32/47769_2.png) [@megashub](https://discourse.stonehearth.net/u/megashub)\
**Post date:** [September 22, 2016, 5:27pm UTC](https://discourse.stonehearth.net/t/json-file-error/25711/6 "2016-09-22T17:27:31Z")

</div>

> [@Lucia\_Cisneros](#):
>
> The last version I was able to run was Alpha 18 release 656. I can’t run release 663

Thanks. @jomaxro @yshan @sdee Do we have a solution to this already, or does this look like something new?

---

<div class="post-metadata">

**Author:** ![jomaxro](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/jomaxro/32/47935_2.png) [@jomaxro](https://discourse.stonehearth.net/u/jomaxro)\
**Post date:** [September 22, 2016, 5:32pm UTC](https://discourse.stonehearth.net/t/json-file-error/25711/7 "2016-09-22T17:32:26Z")

</div>

Hmm. @Lucia_Cisneros, can you share an image of the contents in `C:\Program Files (x86)\Steam\steamapps\common\Stonehearth\saved_games` as well as your `stonehearth.log` from `C:\Program Files (x86)\Steam\steamapps\common\Stonehearth\`?

Thanks!

---

<div class="post-metadata">

**Author:** ![Lucia\_Cisneros](https://avatars.discourse-cdn.com/v4/letter/l/8e7dd6/32.png) [@Lucia\_Cisneros](https://discourse.stonehearth.net/u/Lucia_Cisneros)\
**Post date:** [September 22, 2016, 10:28pm UTC](https://discourse.stonehearth.net/t/json-file-error/25711/8 "2016-09-22T22:28:21Z")

</div>

saved\_games screenshot

 ![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/e/0/e072d9a84297e55196cc48c876740460d7d8f51a.PNG)

Stonehearth\_log pt 1

 ![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/6/e/6e4672091d82269f0594ccd6800ad9a482794f57.PNG)

Stonehearth\_log pt 2

 ![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/d/4/d465ec65a0dd44586e00db89ab6622db6b2af51d.PNG)

When I delete the user\_setttings file, the game does run but it only allows me to work with the save from 9/5, when my last save was on 9/20.

 ![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/1/9/19132bf64aab657491ff3662b8535a1917b3bab3.PNG)

---

<div class="post-metadata">

**Author:** ![sdee](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/sdee/32/65441_2.png) [@sdee](https://discourse.stonehearth.net/u/sdee)\
**Post date:** [September 22, 2016, 10:48pm UTC](https://discourse.stonehearth.net/t/json-file-error/25711/9 "2016-09-22T22:48:35Z")

</div>

Hm, sounds new to me; there could be several things happening.

- For some reason, the newer saves are being marked as invalid for loading, and therefore not showing up in the save window. @yshan is there a workaround for that?
- What was corrupted in your user settings file? If you still have it, could you post it too? You could also run it through jsonlint [http://jsonlint.com/](http://jsonlint.com/)
- If you upload one of your 9/20 saves, we can see if it runs on our machines

---

<div class="post-metadata">

**Author:** ![Lucia\_Cisneros](https://avatars.discourse-cdn.com/v4/letter/l/8e7dd6/32.png) [@Lucia\_Cisneros](https://discourse.stonehearth.net/u/Lucia_Cisneros)\
**Post date:** [September 22, 2016, 10:58pm UTC](https://discourse.stonehearth.net/t/json-file-error/25711/10 "2016-09-22T22:58:37Z")

</div>

user\_settings.json access

![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/stonehearth/original/3X/b/5/b5224a3b4c3a466b9634f3d6d1cc53f4d03ccf65.PNG)

![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/stonehearth/original/3X/e/6/e6cb3e579b7654e0e20b76de68886612c52f81ca.PNG)

![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/stonehearth/original/3X/5/c/5c6a21066c8b9887462211e79c29264a5611acfd.PNG)

---

<div class="post-metadata">

**Author:** ![Lucia\_Cisneros](https://avatars.discourse-cdn.com/v4/letter/l/8e7dd6/32.png) [@Lucia\_Cisneros](https://discourse.stonehearth.net/u/Lucia_Cisneros)\
**Post date:** [September 22, 2016, 11:07pm UTC](https://discourse.stonehearth.net/t/json-file-error/25711/11 "2016-09-22T23:07:21Z")

</div>

To upload a saved game from 9/20, do I upload this file?

 ![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/0/6/06017cbf68934208116cd504d96944876308c5ca.PNG)

---

<div class="post-metadata">

**Author:** ![megashub](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/megashub/32/47769_2.png) [@megashub](https://discourse.stonehearth.net/u/megashub)\
**Post date:** [September 22, 2016, 11:16pm UTC](https://discourse.stonehearth.net/t/json-file-error/25711/12 "2016-09-22T23:16:27Z")

</div>

Yes, in a nutshell.

Details:

To upload a save, locate the folder in  
`C:\Program Files (x86)\Steam\steamapps\common\Stonehearth\saved_games` (assuming a default Steam install), zip the individual save’s folder (not the entire `saved_games` folder), and upload it. If the `*.zip` is less than 10 MB, feel free to upload it directly to the Discourse. If larger, please upload it to a cloud storage site like Dropbox, Google Drive, File Dropper, etc. and post the sharing link here.

---

<div class="post-metadata">

**Author:** ![Lucia\_Cisneros](https://avatars.discourse-cdn.com/v4/letter/l/8e7dd6/32.png) [@Lucia\_Cisneros](https://discourse.stonehearth.net/u/Lucia_Cisneros)\
**Post date:** [September 22, 2016, 11:21pm UTC](https://discourse.stonehearth.net/t/json-file-error/25711/13 "2016-09-22T23:21:22Z")

</div>

[1474427954972 9 20 FILE SAVE .zip](https://discourse.stonehearth.net/uploads/short-url/3KbPxty5keEbry60JJiT3mAGzIO.zip) (7.2 MB)

---

<div class="post-metadata">

**Author:** ![sdee](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/sdee/32/65441_2.png) [@sdee](https://discourse.stonehearth.net/u/sdee)\
**Post date:** [September 23, 2016, 12:28am UTC](https://discourse.stonehearth.net/t/json-file-error/25711/14 "2016-09-23T00:28:46Z")

</div>

Hey @Lucia_Cisneros, I’m afraid your save has been corrupted, which is why it didn’t appear in the list. I’m not sure why this might have happened; I’ll let the rest of the team know. Basically, the metadata.json file got corrupted, and if I re-add metatada.json from another file, I get this in the stonehearth.log:

> 2016-09-22 17:25:26.548206 | server | 0 | simulation.core | Failed to load: could not parse object 406020 of 410419 (size:112).  
> 2016-09-22 17:25:26.548206 | client | 0 | client.core | server load save file failed. returning to stonehearth title screen.  
> 2016-09-22 17:25:26.548206 | client | 1 | mod radiant | lua controller lifetime tracking set to “nil”  
> 2016-09-22 17:25:26.728206 | server | 0 | lua.code | lua panic. forcing application exit  
> 2016-09-22 17:25:26.728206 | server | 2 | lua.code | generating traceback…  
> 2016-09-22 17:25:26.728206 | server | 0 | lua.code | – Script Error (lua) Begin -------------------------------  
> 2016-09-22 17:25:26.728206 | server | 0 | lua.code | events  
> 2016-09-22 17:25:26.728206 | server | 0 | lua.code | stack traceback:  
> 2016-09-22 17:25:26.728206 | server | 0 | lua.code | – Lua Error End -------------------------------  
> 2016-09-22 17:25:26.728206 | server | 0 | lua.memory | destroying lua caching allocator  
> 2016-09-22 17:25:26.728206 | client | 0 | sysinfo | Memory Stats: Fatal Exception  
> 2016-09-22 17:25:26.728206 | client | 0 | sysinfo | Total System Memory: 15.876 GB (17046401024 bytes)  
> 2016-09-22 17:25:26.728206 | client | 0 | sysinfo | Current Memory Usage: 411.855 MB (431861760 bytes)  
> 2016-09-22 17:25:26.728206 | client | 0 | sysinfo | Total Address Space: 8.000 TB (8796092891136 bytes)  
> 2016-09-22 17:25:26.728206 | client | 0 | sysinfo | Available Address Space: 7.999 TB (8794711007232 bytes)  
> 2016-09-22 17:25:26.728206 | client | 0 | sysinfo | Used Address Space: 1.287 GB (1381883904 bytes)  
> 2016-09-22 17:25:41.732244 | server | 0 | app | Assertion Failed: callbacks\_.size() == 0(c:\rb\ihome\root\sh-ob0-build\stonehearth\source\core\slot.h:28)

We’ll keep taking a look but for now, I’m afraid there is no workaround at this time. ☹

---

<div class="post-metadata">

**Author:** ![Lucia\_Cisneros](https://avatars.discourse-cdn.com/v4/letter/l/8e7dd6/32.png) [@Lucia\_Cisneros](https://discourse.stonehearth.net/u/Lucia_Cisneros)\
**Post date:** [September 23, 2016, 3:28pm UTC](https://discourse.stonehearth.net/t/json-file-error/25711/15 "2016-09-23T15:28:07Z")

</div>

okay thank you anyway
