release-489 (x64)
radiant/modules/entities.luac:37: attempt to call method 'is_valid' (a nil value)
stack traceback:
[C]: in function 'is_valid'
radiant/modules/entities.luac:37: in function 'destroy_entity'
stonehearth/call_handlers/entities_call_handler.luac:5: in function <stonehearth/call_handlers/entities_call_handler.luac:5>
#2:
release-489 (x64)
c++ exception: lua runtime error
stack traceback:
Attachments:
Version Number and Mods in use:
release -489 (x64)
Hey there @Tempest, welcome to the Discourse! Thanks for the report. While you might not have a definite cause, can you share what was happening (in general)? Building, mining, farming, fighting, etcâŚ
release-489 (x64)
radiant/modules/entities.luac:37: attempt to call method 'is_valid' (a nil value)
stack traceback:
[C]: in function 'is_valid'
radiant/modules/entities.luac:37: in function 'destroy_entity'
stonehearth/call_handlers/entities_call_handler.luac:5: in function <stonehearth/call_handlers/entities_call_handler.luac:5>
#4:
release-489 (x64)
c++ exception: lua runtime error
stack traceback:
#5:
release-489 (x64)
std::logic_error: 'invalid reference in native get_id'
stack traceback:
[C]: in function 'get_id'
stonehearth/services/server/inventory/inventory.luac:304: in function 'is_storage_for_filter_fn'
stonehearth/ai/actions/restock_storage_action.luac:7: in function 'filter_fn'
stonehearth/ai/actions/find_path_to_entity_type.luac:21: in function <stonehearth/ai/actions/find_path_to_entity_type.luac:21>
[C]: ?
[C]: in function 'start'
stonehearth/services/server/ai/compound_action.luac:125: in function <stonehearth/services/server/ai/compound_action.luac:122>
[C]: ?
[C]: in function 'start'
...onehearth/services/server/tasks/run_task_action.luac:56: in function <...onehearth/services/server/tasks/run_task_action.luac:53>
[C]: ?
...
[C]: ?
[C]: in function 'start'
stonehearth/services/server/ai/compound_action.luac:125: in function <stonehearth/services/server/ai/compound_action.luac:122>
[C]: ?
[C]: in function 'run'
stonehearth/components/ai/ai_component.luac:186: in function '_thread_main'
stonehearth/services/server/threads/thread.luac:90: in function <stonehearth/services/server/threads/thread.luac:89>
[C]: in function 'xpcall'
stonehearth/services/server/threads/thread.luac:89: in function 'f'
radiant/lib/env.luac:8: in function <radiant/lib/env.luac:8>
This time I was trying to delete a storage area with a large amount of resources in it.
not sure what this means but it popped up after refreshing my bar.
release-491 (x64)
radiant/modules/entities.luac:37: attempt to call method âis_validâ (a nil value)
stack traceback:
[C]: in function âis_validâ
radiant/modules/entities.luac:37: in function âdestroy_entityâ
stonehearth/call_handlers/entities_call_handler.luac:5: in function <stonehearth/call_handlers/entities_call_handler.luac:5>
there was a second one too
release-491 (x64)
c++ exception: lua runtime error
stack traceback:
Hearthlings arenât really moving anything. even after closing the game and then connecting again.
OK, got it! Can you upload the save game where this occurs?
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 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.
Looks good to me! I wonât be doing anything with the save thoughâŚthatâs for the devs. The error isnât really giving me much to go on though, so not really sure who to pageâŚgoing to throw this one at @sdee, sheâll figure out where to route it!
Sure! If you want to check out the existing threads in #support:bug-reports first, we (the mods) would appreciate it as we like to keep each thread to a single topic. If not (or if you donât see one), donât worry, weâll move stuff around if we have to.
Iâll make sure to check first! Thanks for the quick help I just donât like when my game acts like this⌠I donât want to start all the way over again lol My last one just completely stopped working, wouldnât even load before kicking me to the start.