Crash to desktop on item placement

Summary:
I had been playing the game without issue for a good while immediately before this crash. Suddenly, the game immediately crashes to desktop. No errors, dialogue boxes, etc. I load up the autosave and the game crashes after a second of gameplay- this time I notice that it crashed right when a Hearthling places a picket fence item. I reloaded a few more times and I believe the placement and crash happen at the same time.

It’s my best guess as to the cause of the crash because if I mash 1 to pause the game when i’m loading, the game won’t crash before the fence is placed. Once I unpause things, the fence is placed and I get the crash again. Please let me know if I can provide any more context or information, i’d really like to salvage this save!

Stonehearth.log:
2016-10-09 17:21:00.142064 | server | 1 | app | Stonehearth Version 0.18.0.663 (x64)
2016-10-09 17:21:00.142564 | server | 1 | core.config | user id is 86803de8-892f-11e6-89de-d050996869bd
2016-10-09 17:21:00.142564 | server | 1 | core.config | session id is 6bc497d8-8e7f-11e6-be53-d050996869bd
2016-10-09 17:21:00.143130 | server | 0 | core.system | Initializing crash reporter
2016-10-09 17:21:00.646302 | server | 0 | lua.data | lua jit is disabled
2016-10-09 17:21:00.674823 | server | 1 | resources | Module rayyas_children_ui version 3 is deferred load)
2016-10-09 17:21:02.375532 | server | 1 | resources | Modules are verified pristine.
2016-10-09 17:21:02.397033 | server | 1 | app | Running Stonehearth server on port 48413
2016-10-09 17:21:02.397033 | client | 1 | renderer.renderer | Initializing OpenGL
2016-10-09 17:21:02.397033 | server | 0 | physics.navgrid | subspace pathfinder is enabled
2016-10-09 17:21:02.402536 | client | 1 | renderer.renderer | Determining window placement
2016-10-09 17:21:02.402536 | client | 1 | renderer.renderer | Selecting monitor at 0, 0
2016-10-09 17:21:02.403037 | client | 1 | renderer.renderer | Creating OpenGL Window
2016-10-09 17:21:02.410052 | server | 1 | mod radiant | lua controller lifetime tracking set to "nil"
2016-10-09 17:21:02.425052 | server | 0 | mod stonehearth.ai.service | [] enable_cpp_compound_action is on
2016-10-09 17:21:02.769297 | server | 1 | lua.memory | lua shared heap size: 8.094 MB.
2016-10-09 17:21:02.769297 | server | 1 | lua.memory | o: outstanding allocs
2016-10-09 17:21:02.769297 | server | 1 | lua.memory | 64 bytes (o: 13119) : ########################################
2016-10-09 17:21:02.769797 | server | 1 | lua.memory | 40 bytes (o: 9830) : #############################
2016-10-09 17:21:02.769797 | server | 1 | lua.memory | 48 bytes (o: 5560) : ################
2016-10-09 17:21:02.769797 | server | 1 | lua.memory | 72 bytes (o: 3036) : #########
2016-10-09 17:21:02.769797 | server | 1 | lua.memory | … remaining allocs are each < 5% of the count
2016-10-09 17:21:03.380741 | client | 1 | renderer.renderer | Creating OpenGL Context
2016-10-09 17:21:03.392750 | client | 1 | renderer.renderer | Finished OpenGL Initialization
2016-10-09 17:21:03.393256 | client | 1 | horde.general | Initializing GL2 backend using OpenGL driver ‘4.5.13447 Compatibility Profile Context 20.19.0.32837’ by ‘ATI Technologies Inc.’ on 'AMD Radeon ™ R9 390 Series’
2016-10-09 17:21:03.531354 | server | 2 | network | server allocating new send buffer (total: 0)
2016-10-09 17:21:03.547365 | client | 1 | browser | cef started.
2016-10-09 17:21:03.547365 | client | 2 | browser | Navigate called without an existing browser!
2016-10-09 17:21:03.547866 | thread21764 | 2 | browser | Doing a buffered navigation…
2016-10-09 17:21:03.559859 | client | 0 | physics.navgrid | subspace pathfinder is enabled
2016-10-09 17:21:03.572367 | client | 1 | mod radiant | lua controller lifetime tracking set to "nil"
2016-10-09 17:21:03.576370 | client | 2 | network | client allocating new send buffer (total: 0)
2016-10-09 17:21:03.579872 | server | 1 | simulation.remote_client | started buffering client updates. (seq:16 ack:0)
2016-10-09 17:21:03.603890 | client | 1 | client.core | user feedback is on
2016-10-09 17:21:03.790522 | server | 1 | simulation.remote_client | stopped buffering client updates. (seq:16 ack:16)
2016-10-09 17:21:05.654346 | server | 2 | simulation.core | game loop exhausted before any jobs processed!
2016-10-09 17:21:10.239314 | client | 0 | client.core | loading save “auto_save”:
2016-10-09 17:21:10.239314 | client | 0 | client.core | {
2016-10-09 17:21:10.239314 | client | 0 | client.core | “name” : "Auto save: ",
2016-10-09 17:21:10.239314 | client | 0 | client.core | “town_name” : “Ironwood”,
2016-10-09 17:21:10.239314 | client | 0 | client.core | “game_date” : {
2016-10-09 17:21:10.239314 | client | 0 | client.core | “day” : 21,
2016-10-09 17:21:10.239314 | client | 0 | client.core | “month” : 3,
2016-10-09 17:21:10.239314 | client | 0 | client.core | “year” : 1000,
2016-10-09 17:21:10.239314 | client | 0 | client.core | “hour” : 8,
2016-10-09 17:21:10.239314 | client | 0 | client.core | “minute” : 8
2016-10-09 17:21:10.239314 | client | 0 | client.core | },
2016-10-09 17:21:10.239314 | client | 0 | client.core | “timestamp” : 1476057202568,
2016-10-09 17:21:10.239314 | client | 0 | client.core | “time” : “10/9/2016, 4:53:22 PM”,
2016-10-09 17:21:10.239314 | client | 0 | client.core | “jobs” : {
2016-10-09 17:21:10.239314 | client | 0 | client.core | “crafters” : 7,
2016-10-09 17:21:10.239314 | client | 0 | client.core | “workers” : 15,
2016-10-09 17:21:10.239314 | client | 0 | client.core | “soldiers” : 3
2016-10-09 17:21:10.239314 | client | 0 | client.core | },
2016-10-09 17:21:10.239314 | client | 0 | client.core | “version” : “0.18.0.663”,
2016-10-09 17:21:10.239314 | client | 0 | client.core | “save_version” : 10
2016-10-09 17:21:10.239314 | client | 0 | client.core | }
2016-10-09 17:21:10.279855 | client | 1 | lua.code | Shutting down script host.
2016-10-09 17:21:10.284859 | client | 1 | lua.code | Script host destroyed.
2016-10-09 17:21:10.288362 | client | 0 | physics.navgrid | subspace pathfinder is enabled
2016-10-09 17:21:10.366417 | server | 0 | simulation.core | Restarting game.
2016-10-09 17:21:10.371921 | server | 0 | om.entity | Reference still exists to (1) after destroy_entity was called
2016-10-09 17:21:10.372921 | server | 1 | simulation.core | All entities have been destroyed.
2016-10-09 17:21:10.372921 | server | 1 | simulation.core | Shutting down traces.
2016-10-09 17:21:10.372921 | server | 1 | simulation.core | Shutting down game objects.
2016-10-09 17:21:10.372921 | server | 1 | simulation.core | All entities and datastores have been destroyed.
2016-10-09 17:21:10.372921 | server | 1 | lua.code | Shutting down script host.
2016-10-09 17:21:10.384930 | server | 1 | lua.code | Script host destroyed.
2016-10-09 17:21:10.384930 | server | 1 | simulation.core | Shutting down data objects.
2016-10-09 17:21:10.386431 | server | 0 | physics.navgrid | subspace pathfinder is enabled
2016-10-09 17:21:10.391435 | server | 0 | simulation.core | Loading save
2016-10-09 17:21:12.000077 | server | 1 | dm.store | load progress 74%…
2016-10-09 17:21:12.000578 | client | 1 | client.core | server reported load progress of 74%
2016-10-09 17:21:12.538460 | server | 2 | network | server allocating new send buffer (total: 0)
2016-10-09 17:21:12.538960 | server | 1 | dm.store | load progress 99%…
2016-10-09 17:21:12.539461 | client | 1 | client.core | server reported load progress of 99%
2016-10-09 17:21:12.562977 | server | 1 | dm.store | load objects finished!

2016-10-09 17:21:12.578488 | server | 0 | dm.store | took 2.187 seconds to load
2016-10-09 17:21:12.578988 | server | 2 | network | server allocating new send buffer (total: 0)
2016-10-09 17:21:12.579989 | client | 0 | client.core | server load save file finished. loading client state.
2016-10-09 17:21:12.579989 | client | 0 | client.core | starting loading… "C:\Program Files (x86)\Steam\steamapps\common\Stonehearth\saved_games\auto_save"
2016-10-09 17:21:12.620518 | client | 1 | dm.store | load progress 99%…
2016-10-09 17:21:12.621018 | client | 1 | dm.store | load objects finished!

2016-10-09 17:21:12.621018 | client | 0 | dm.store | took 0.041 seconds to load
2016-10-09 17:21:12.621018 | client | 1 | client.core | restoring datastores…
2016-10-09 17:21:12.622019 | client | 1 | client.core | recreating data objects…
2016-10-09 17:21:12.622019 | client | 1 | client.core | creating error browser…
2016-10-09 17:21:12.622019 | client | 1 | client.core | initializing data object traces…
2016-10-09 17:21:12.622019 | client | 1 | client.core | requiring radiant.client…
2016-10-09 17:21:12.625521 | client | 1 | mod radiant | lua controller lifetime tracking set to "nil"
2016-10-09 17:21:12.628524 | client | 1 | client.core | loading script host…
2016-10-09 17:21:12.757630 | client | 0 | sysinfo | Memory Stats: Finished Loading Client
2016-10-09 17:21:12.757630 | client | 0 | sysinfo | Total System Memory: 7.936 GB (8521732096 bytes)
2016-10-09 17:21:12.757630 | client | 0 | sysinfo | Current Memory Usage: 659.262 MB (691286016 bytes)
2016-10-09 17:21:12.757630 | client | 0 | sysinfo | Total Address Space: 128.000 TB (140737488224256 bytes)
2016-10-09 17:21:12.757630 | client | 0 | sysinfo | Available Address Space: 127.998 TB (140735615885312 bytes)
2016-10-09 17:21:12.757630 | client | 0 | sysinfo | Used Address Space: 1.744 GB (1872338944 bytes)
2016-10-09 17:21:13.039316 | server | 1 | mod radiant | lua controller lifetime tracking set to "nil"
2016-10-09 17:21:13.959469 | server | 0 | mod stonehearth | ai slow start is enabled
2016-10-09 17:21:13.959969 | server | 0 | mod ai | cpp ai is enabled.
2016-10-09 17:21:16.083978 | server | 0 | mod stonehearth.ai.service | [] enable_cpp_compound_action is on
2016-10-09 17:21:16.090483 | server | 0 | mod stonehearth.terrain | [] goblins explored region contains 118 rects
2016-10-09 17:21:16.090483 | server | 0 | mod stonehearth.terrain | [] rabbit explored region contains 0 rects
2016-10-09 17:21:16.090483 | server | 0 | mod stonehearth.terrain | [] player_1 explored region contains 123 rects
2016-10-09 17:21:16.090483 | server | 0 | mod stonehearth.terrain | [] animals explored region contains 0 rects
2016-10-09 17:21:16.090983 | server | 0 | mod stonehearth.terrain | [] undead explored region contains 111 rects
2016-10-09 17:21:16.090983 | server | 0 | mod stonehearth.terrain | [] orcs explored region contains 117 rects
2016-10-09 17:21:16.090983 | server | 0 | mod stonehearth.terrain | [] human_npcs explored region contains 13 rects
2016-10-09 17:21:16.090983 | server | 0 | mod stonehearth.terrain | [] forest explored region contains 175 rects
2016-10-09 17:21:19.180199 | server | 2 | network | server allocating new send buffer (total: 0)
2016-10-09 17:21:19.657038 | server | 2 | network | server allocating new send buffer (total: 1)
2016-10-09 17:21:20.231946 | server | 2 | network | server allocating new send buffer (total: 2)
2016-10-09 17:21:20.884409 | server | 0 | simulation.core | took 1704 ms to flush streamer
2016-10-09 17:21:20.926440 | server | 1 | simulation.core | finished loading game
2016-10-09 17:21:20.926440 | server | 0 | sysinfo | Memory Stats: Finished Loading Simulation
2016-10-09 17:21:20.926440 | server | 0 | sysinfo | Total System Memory: 7.936 GB (8521732096 bytes)
2016-10-09 17:21:20.926440 | server | 0 | sysinfo | Current Memory Usage: 1.226 GB (1316294656 bytes)
2016-10-09 17:21:20.926440 | server | 0 | sysinfo | Total Address Space: 128.000 TB (140737488224256 bytes)
2016-10-09 17:21:20.926440 | server | 0 | sysinfo | Available Address Space: 127.998 TB (140734830067712 bytes)
2016-10-09 17:21:20.926440 | server | 0 | sysinfo | Used Address Space: 2.476 GB (2658156544 bytes)
2016-10-09 17:21:20.948956 | server | 2 | network | server allocating new send buffer (total: 0)
2016-10-09 17:21:21.053030 | server | 2 | network | server allocating new send buffer (total: 0)
2016-10-09 17:21:21.103074 | server | 2 | network | server allocating new send buffer (total: 0)
2016-10-09 17:21:21.154104 | server | 2 | network | server allocating new send buffer (total: 0)
2016-10-09 17:21:21.204637 | server | 2 | network | server allocating new send buffer (total: 0)
2016-10-09 17:21:21.254679 | server | 2 | network | server allocating new send buffer (total: 0)
2016-10-09 17:21:21.305224 | server | 1 | simulation.remote_client | started buffering client updates. (seq:155 ack:145)
2016-10-09 17:21:21.379276 | client | 0 | client.core | reporting client load progress 77.750%…
2016-10-09 17:21:21.545889 | client | 0 | client.core | reporting client load progress 80.500%…
2016-10-09 17:21:21.768538 | client | 0 | client.core | reporting client load progress 83.250%…
2016-10-09 17:21:21.953677 | client | 0 | client.core | reporting client load progress 86.000%…
2016-10-09 17:21:22.214364 | client | 0 | client.core | reporting client load progress 88.750%…
2016-10-09 17:21:22.404989 | client | 0 | client.core | reporting client load progress 91.500%…
2016-10-09 17:21:22.628660 | client | 0 | client.core | reporting client load progress 94.250%…
2016-10-09 17:21:22.870836 | client | 0 | client.core | reporting client load progress 97.000%…
2016-10-09 17:21:23.170033 | client | 0 | client.core | reporting client load progress 99.750%…
2016-10-09 17:21:23.185043 | client | 0 | client.core | SetCurrentUIScreen to restart
2016-10-09 17:21:26.897356 | client | 0 | client.core | Changed UI Screen after load
2016-10-09 17:21:26.902360 | client | 1 | resources | error looking for manifest in rayyas_children_ui: file not found
2016-10-09 17:21:30.029658 | server | 0 | ai.execution_frame | (995721 stonehearth:rabbit) [stonehearth:top] ai slow start is 0
2016-10-09 17:21:30.039665 | server | 0 | simulation.pathfinder.bfs | using fast tile iterator!
2016-10-09 17:21:31.587286 | server | 0 | simulation.core | took 2255 ms to update game state
2016-10-09 17:21:31.587286 | server | 2 | simulation.core | game loop exhausted before any jobs processed!
2016-10-09 17:21:31.662340 | server | 1 | simulation.remote_client | stopped buffering client updates. (seq:155 ack:155)
2016-10-09 17:21:31.798936 | server | 0 | simulation.core | took 128 ms to process job list
2016-10-09 17:21:31.799437 | server | 1 | simulation.remote_client | started buffering client updates. (seq:313 ack:155)
2016-10-09 17:21:31.905012 | server | 0 | simulation.core | took 105 ms to process job list
2016-10-09 17:21:31.967557 | server | 1 | simulation.remote_client | stopped buffering client updates. (seq:313 ack:313)
2016-10-09 17:21:40.568792 | server | 0 | simulation.core | took 654 ms to update game state
2016-10-09 17:21:40.568792 | server | 2 | simulation.core | game loop exhausted before any jobs processed!
2016-10-09 17:21:41.660067 | server | 0 | sysinfo | Memory Stats: Fatal Exception
2016-10-09 17:21:41.660067 | server | 0 | sysinfo | Total System Memory: 7.936 GB (8521732096 bytes)
2016-10-09 17:21:41.660067 | server | 0 | sysinfo | Current Memory Usage: 2.010 GB (2158141440 bytes)
2016-10-09 17:21:41.660067 | server | 0 | sysinfo | Total Address Space: 128.000 TB (140737488224256 bytes)
2016-10-09 17:21:41.660067 | server | 0 | sysinfo | Available Address Space: 127.997 TB (140733989711872 bytes)
2016-10-09 17:21:41.660067 | server | 0 | sysinfo | Used Address Space: 3.258 GB (3498512384 bytes)

Attachments:

I don’t think i’m able to upload my crash.dmp, I just created this account today in order to post the bug.

Versions and Mods:

Version 0.18.0 Release 663 - No mods

System Information:

Windows 10, AMD R9 390, external ASUS VX238H monitor

Interesting. Can you upload your save here so we can see if it crashes on other computers? If not, upload it to somewhere like Dropbox and then paste the sharing link here. If you’re using steam, it should be located at C:\Program Files (x86)\Steam\steamapps\common\Stonehearth\saved_games.

Sure thing. I’m not exactly sure how sharing saves work, so i’ll just upload every file in the affected save folder.

Thanks for helping!

Edit: I realized after uploading that this save takes up the “autosave” slot. I think it will overwrite any save you have in your autosave slot, so be careful. I can upload a separate unique save soon.

@Concord_Dawn, you are no longer a “new” user, so if you still have it your crash.dmp file would likely be useful. Welcome to the Discourse, by the way!

Sure thing-
crash.dmp (1.2 MB)

And here is the unique save:

Thanks for the dump. So the error being thrown is “The thread used up its stack”, meaning that the game ran out of the memory it had set aside (not neccessarily that it used up all your computer memory). Interestingly, we got a similar report just a few days ago. (relevant topic). I don’t have a solution for you, but I’m going to ping @yshan to see if this is something the team is aware of.

1 Like

Ah, I see. Thanks for helping so quickly. I can wait until a fix is found, in the meantime I’ll play around with the save and see if I can get any noteworthy results to post here.

Thanks again!

1 Like

Sounds great! From both descriptions of this crash, it sounds like a random occurrence, so it’s quite possible you’ll never see it again - or it could happen repeatedly…we’ll have to see.

By any chance, was the placement location for the fence in a strange or impossible place, such as between two blocks?

1 Like

It’s worth noting that I think there are some similarities between my situation and the OP from the other thread. I was trying to move my fence one square over, though I didn’t notice any strangeness with ghost placement indicators. However, the game closes almost instantly so it’s hard to tell.

@SpartanXxX97 I don’t believe the location was strange or invalid, but it was definitely close (perhaps one space offset) to its starting location. I’ll try to get a better look at the situation.

Edit: This is a pic from immediately before the crash. Once the worker places the fence next to him, it’s all over. From what I can tell, the placement looks valid. He has just picked up the fence from the position he’s standing in (I believe), so the fence is being moved one square away.
Image and video hosting by TinyPic

Also, i’m not sure how related this is, but I received an error when saving this game:

release-663 (x64)
Uncaught TypeError: Cannot read property ‘addClass’ of undefined
TypeError: Cannot read property ‘addClass’ of undefined
at null. (http://radiant/stonehearth/ui/game/save_view/save_view.js:295:42)
at n.invoke (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.min.js:1:7142)
at Object.n.flush (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.min.js:1:7689)
at Object.a.end (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.min.js:1:2462)
at http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.min.js:1:1288

This came up after I successfully saved my game. If I remember correctly, I closed the load/save menu and then immediately tried to open the load/save menu again. I did not close the main menu between attempts. I would get this error and the load/save menu would not come up.

2 Likes

I might have found a solution to my particular instance of this problem.

I loaded up the save and immediately paused. I opened up the console and destroyed the ghost of the to-be-placed fence. This also destroyed the ghost of the adjacent ladder, interestingly. The worker went and put the fence down, and I completed moving/adding fences with no issue.

I’ll add updates if the problem crops up again or if I notice anything else strange with this save.

2 Likes