Carpenter Enters Infinite Loop Trying to Craft

After creating a carpenter in my new save I have been unable to get him to craft anything. Every time I add anything to his queue he will go to pick up the materials and then an endless loop of errors will commence.

Summary:
Carpenter throws errors as soon as he picks up materials and tries to path to his workshop.

Step to reproduce:
Start from my uploaded save
-OR-
Start a new game
Harvest some wood and have it put in your reserves
Promote someone to the carpenter
Queue some items

Error Returned:
2015-Sep-29 22:44:55.887143 | server | 0 | lua.code | stonehearth/services/server/ai/compound_action.luac:113: placeholder BACK(4).path.get_destination(BACK(4).path).get_component(BACK(4).path.get_destination(BACK(4).path), stonehearth:workshop) failed to return a value in “work at workshop” action

Versions and mods:
Latest Dev Branch - 2617
No mods

System information:
OS - Windows 7 64 bit
Processor - Intel I7 960
GFX - GTX 770 4GB

Apparently new users can’t upload attachments so appending the full stack trace here will have to suffice until I can upload my save.

2015-Sep-29 22:44:55.887143 | server | 0 | lua.code | – Script Error (lua) Begin -------------------------------
2015-Sep-29 22:44:55.887143 | server | 0 | lua.code | stonehearth/services/server/ai/compound_action.luac:113: placeholder BACK(4).path.get_destination(BACK(4).path).get_component(BACK(4).path.get_destination(BACK(4).path), stonehearth:workshop) failed to return a value in “work at workshop” action
2015-Sep-29 22:44:55.887143 | server | 0 | lua.code | stack traceback:
2015-Sep-29 22:44:55.887143 | server | 0 | lua.code | stonehearth/components/ai/execution_frame.luac:672: in function <stonehearth/components/ai/execution_frame.luac:665>
2015-Sep-29 22:44:55.887143 | server | 0 | lua.code | [C]: in function 'error’
2015-Sep-29 22:44:55.887143 | server | 0 | lua.code | stonehearth/services/server/ai/compound_action.luac:113: in function '_replace_placeholders’
2015-Sep-29 22:44:55.887143 | server | 0 | lua.code | stonehearth/services/server/ai/compound_action.luac:86: in function '_start_thinking_on_frame’
2015-Sep-29 22:44:55.887143 | server | 0 | lua.code | stonehearth/services/server/ai/compound_action.luac:80: in function 'think_progress_cb’
2015-Sep-29 22:44:55.887143 | server | 0 | lua.code | stonehearth/components/ai/execution_frame.luac:344: in function '_think_progress_cb’
2015-Sep-29 22:44:55.887143 | server | 0 | lua.code | stonehearth/components/ai/execution_frame.luac:654: in function '_set_state’
2015-Sep-29 22:44:55.887143 | server | 0 | lua.code | stonehearth/components/ai/execution_frame.luac:317: in function '_restart_thinking’
2015-Sep-29 22:44:55.887143 | server | 0 | lua.code | stonehearth/components/ai/execution_frame.luac:324: in function '_start_thinking_from_stopped’
2015-Sep-29 22:44:55.887143 | server | 0 | lua.code | stonehearth/components/ai/execution_frame.luac:106: in function '_start_thinking’
2015-Sep-29 22:44:55.887143 | server | 0 | lua.code | stonehearth/components/ai/execution_frame.luac:334: in function 'start_thinking’
2015-Sep-29 22:44:55.887143 | server | 0 | lua.code | …
2015-Sep-29 22:44:55.887143 | server | 0 | lua.code | stonehearth/components/ai/execution_frame.luac:129: in function '_run’
2015-Sep-29 22:44:55.887143 | server | 0 | lua.code | stonehearth/components/ai/execution_frame.luac:360: in function <stonehearth/components/ai/execution_frame.luac:352>
2015-Sep-29 22:44:55.887143 | server | 0 | lua.code | [C]: in function 'xpcall’
2015-Sep-29 22:44:55.887143 | server | 0 | lua.code | stonehearth/components/ai/execution_frame.luac:674: in function '_protected_call’
2015-Sep-29 22:44:55.887143 | server | 0 | lua.code | stonehearth/components/ai/execution_frame.luac:362: in function 'run’
2015-Sep-29 22:44:55.887143 | server | 0 | lua.code | stonehearth/components/ai/ai_component.luac:178: in function '_thread_main’
2015-Sep-29 22:44:55.887143 | server | 0 | lua.code | stonehearth/services/server/threads/thread.luac:90: in function <stonehearth/services/server/threads/thread.luac:89>
2015-Sep-29 22:44:55.887143 | server | 0 | lua.code | [C]: in function 'xpcall’
2015-Sep-29 22:44:55.887143 | server | 0 | lua.code | stonehearth/services/server/threads/thread.luac:89: in function 'f’
2015-Sep-29 22:44:55.887143 | server | 0 | lua.code | radiant/lib/env.luac:8: in function <radiant/lib/env.luac:8>
2015-Sep-29 22:44:55.887143 | server | 0 | lua.code | – Lua Error End -------------------------------

hey there @Mortio, welcome to the discourse :smile:

[quote=“Mortio, post:2, topic:16736”]
Apparently new users can’t upload attachments so appending the full stack trace here will have to suffice until I can upload my save.
[/quote]well either you can wait till your the next “trust level” or you could always just upload it to as file sharing site such as dropbox or googledrive (just to name a few) and then provide us with the download link.

Here is my save file-
1443492019185.zip (2.1 MB)

You can reproduce this easily in this save by giving the Carpenter a single build order. One thing I’ve noticed is that with his workshop it’s placed but it doesn’t have the Craft button I’d expect so maybe the initial workshop creation is the source of this bug?

2 Likes

awesome, one of the team members will probably wanna take a look at that (@Albert maybe?)

Hi @Mortio
I get an error when I try to extract that zip file. Maybe it got corrupted somehow.
Can anyone extract that file?
Thanks
-Yang

nope, i also get an error :confused:

What zip program are you using to extract? I use 7zip and I changed the compression method to LZMA so I could get it small enough to be able to post here. I am able to download the zip file from here and extract it successfully.

none… well, whatever is the default java thingy for zipping…

Oh, I see. All right I got it to unzip with 7 zip. Usually with zip files, I just use the default windows one unless the file type tells me otherwise (or it’s a .rar or something).
Thanks!
-Yang

1 Like

That is what I am seeing. I wonder what would cause it to not have the workshop command. I loaded up the game and that carpenter workshop just doesn’t know that it’s a workshop. Do you remember if there were any errors that occurred when you created the workbench? Do you have any mods installed? And what happens if you create a second workbench for him – does that workbench have the “show workshop” icon?

Thank you for the save. It is quite the conundrum.
-Yang

2 Likes

I do not remember there being any errors and I don’t have any outside mods installed. To speed things up I do extract and mod the base_human file to max out my hearthlings base stats but that’s it. Wish I could point you to something specific here.

If I instruct him to create a new workshop he creates it fine. If I then place it and tell him to use it the game crashes with the following errors in the log-
stonehearth.log (61.2 KB)

If I undeploy the old broken workshop first I am able to continue just fine and the carpenter can craft again.

1 Like