Selecting Workshops Causes Crashes

Summary:
I am playing a Northern Alliance set-up. When I click on Workshops, I get two errors and cannot select anything due to a UI crash. Also, the game just shut down unexpectedly while I was writing this bug report.

Steps to reproduce:

  1. Click on a workshop.
  2. Immediately see bugs.
  3. Close bug windows, restart UI.
  4. Click on a workshop again.
  5. Irreversable error, game crashes.

Expected Results:
I should be able to select the typical workshop buttons (move, put away, workshop screen) but instead I get a crash.
Actual Results:

Notes:

Attachments:
Here’s the main bug report. The other one was a C error about some misallocation but I didn’t get to copy it before the game crashed. Note that I stripped out the ā€œhttp://ā€ from most of the lines of code because new users can only include 2 links :rofl:

release-869 (x64)[M]
Uncaught TypeError: Cannot read property ā€˜selected’ of undefined
TypeError: Cannot read property ā€˜selected’ of undefined
at Object. (http://radiant/stonehearth/ui/game/modes/build_mode/building_designer_3/building_designer_3.js:34:61)
at j (radiant/radiant/js/external/jquery-2.1.4.min.js:2:26925)
at Object.fireWith [as notifyWith] (radiant/radiant/js/external/jquery-2.1.4.min.js:2:27738)
at Object.e.(anonymous function) [as notify] (radiant/radiant/js/external/jquery-2.1.4.min.js:2:28718)
at radiant/radiant/js/radiant/object.js:44:35
at Array.forEach (native)
at Function.j.each.j.forEach (radiant/radiant/js/external/underscore-1.5.2.min.js:5:599)
at radiant/radiant/js/radiant/object.js:43:18
at SimpleClass._protectTraceList (radiant/radiant/js/radiant/object.js:58:10)
at radiant/radiant/js/radiant/object.js:42:18

Version Number and Mods in use:
Stonehearth 0.24.0 (release 869) x64 build

System Information:
Windows 10 Pro

We’ll fix that error, but it certainly shouldn’t cause any crashes. Can you upload a crash.dmp or full stonehearth.log?

1 Like

Sure thing. Here’s a link to the crash.dmp file. The stonehearth.log file might not help as I restarted stonehearth a few min later, but I’m including a link to it anyway. Sorry for not including these files as attachments but new users don’t have permission to upload attachments and I’ve actually never reported a bug before.

No clear cause appears in the dump. Can you upload the savegame on which this happened?

I’ve had this issue a few times now as well but it’s different for me. However I’ve not been checking specifics in the errorcode as I am getting quite used to working around them. So I just checked if the bug is known and figured I might pitch in here.

So whenever my game has gotten 1 error code ( same one in 2/2 crashes ) and somewhere down the line I click on a workshop icon ( blacksmith for me in both cases ) it closes the entire game without a warning as if there would be a memory leak of some kind. The game also tends to idle heavily before this happens even though I am pushing 20+ civies and a small army , building projects around the corners etc.

Once out of both cases windows gave me an oldskool grey error pop-up which then also disappeared as soon as it came so I have no clue as to what it said between the splitsecond and the games blackscreen flicker at the end of shutdown.

I hope this gives you better insight.

Addition : This was also split between SP and MP, the SP time being the recreation matching the numbers of buildings/hearthlings we had between 2 players in the MP match.

I also forgot to mention that it happens with and without mods for me and seems to be a base-game related thing. Furthermore I should have defined that the error code we/I had is the same as the poster is putting in ( pulling this from photographic memory so will try to recreate to prove it )

Will upload a log etc. if this happens again.

1 Like

Thanks for the info, @MaddyGrand.
Feel free to upload the save, stonehearth.log and/or crash.dmp next time it happens to you :slightly_smiling_face:

You’re very welcome, I’ve added some things I forgot to mention in my haste. I will ofcourse try to upload the proper documents now I know what I am dealing with.

1 Like

@Relyss here, as it had the symptoms of it to be related to workshops, but really doesn’t seem to be.

1 Like

The stonehearth.log should have recorded all the errors even if the window closed on its own, and still have it unless you restart the game.

So in these cases please save the log and the crash.dmp (if any was generated) as well as the most recent savefile that led into that crash, and upload them here.

Bugreport-Crashes-Savegame.rar (4.6 MB)
crash.zip (46.3 KB)

there ya go buds, took a bit before I had the time. Also didn’t quite put the effort in as I knew it would crash.

1 Like

Thanks! Your savefile crashes on load in region.cpp, which I’m not sure if it’s the same crash as the OP but we’ll see.
@max99x or @jamiltron can take a look at it.

2 Likes

Thanks for the report. This is fixed in the next release.