Attempt to index local 'entity' (a nil value) in function 'get_entity_data'

develop-2720 (x64)
radiant/modules/entities.luac:198: attempt to index local 'entity' (a nil value)
stack traceback:
    radiant/modules/entities.luac:198: in function 'get_entity_data'
    .../ai/actions/combat/attack_melee_adjacent_action.luac:14: in function
    <.../ai/actions/combat/attack_melee_adjacent_action.luac:13>
    [C]: ?
    [C]: ?
    [C]: in function 'run'
    stonehearth/services/server/ai/compound_action.luac:133: in function
    <stonehearth/services/server/ai/compound_action.luac:129>
    [C]: ?
    [C]: ?
    [C]: in function 'run'
    stonehearth/services/server/ai/compound_action.luac:133: in function
    <stonehearth/services/server/ai/compound_action.luac:129>
    [C]: ?
    ...
    [C]: in function 'run'
    stonehearth/services/server/ai/compound_action.luac:133: in function
    <stonehearth/services/server/ai/compound_action.luac:129>
    [C]: ?
    [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>

User ID: 767d5b70-112f-11e5-88f2-94de80ca7c95

Can you explain when, where and how this bug happened ?

develop-2720 (x64)
@stonehearth/components/crafter/crafter_component.luac:34: item with id 40695421 became invalid in the crafter backpack!
stack traceback:
    radiant/modules/common.luac:46: in function 'report_traceback'
    radiant/modules/common.luac:125: in function 'verify'
    ...tonehearth/components/crafter/crafter_component.luac:34: in function 'remove_first_item'
    ...tonehearth/ai/actions/drop_crafting_ingredients.luac:6: in function
    <...tonehearth/ai/actions/drop_crafting_ingredients.luac:5>
    [C]: ?
    [C]: ?
    [C]: in function 'run'
    stonehearth/services/server/ai/compound_action.luac:133: in function
    <stonehearth/services/server/ai/compound_action.luac:129>
    [C]: ?
    [C]: ?
    [C]: in function 'run'
    ...
    [C]: in function 'run'
    stonehearth/services/server/ai/compound_action.luac:133: in function
    <stonehearth/services/server/ai/compound_action.luac:129>
    [C]: ?
    [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>
develop-2720 (x64)
radiant/modules/entities.luac:253: assertion failed!
stack traceback:
    [C]: in function 'assert'
    radiant/modules/entities.luac:253: in function 'pickup_item'
    ...tonehearth/ai/actions/drop_crafting_ingredients.luac:9: in function
    <...tonehearth/ai/actions/drop_crafting_ingredients.luac:5>
    [C]: ?
    [C]: ?
    [C]: in function 'run'
    stonehearth/services/server/ai/compound_action.luac:133: in function
    <stonehearth/services/server/ai/compound_action.luac:129>
    [C]: ?
    [C]: ?
    [C]: in function 'run'
    ...onehearth/services/server/tasks/run_task_action.luac:57: in function
    <...onehearth/services/server/tasks/run_task_action.luac:57>
    ...
    [C]: in function 'run'
    stonehearth/services/server/ai/compound_action.luac:133: in function
    <stonehearth/services/server/ai/compound_action.luac:129>
    [C]: ?
    [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>

Copying and pasting what you posted is not helpful.
When you experienced this bug, what were you doing ? In what situation this happened ?

3 Likes

Erhhhm I have no idea what’s happening here, but the incredibly calm way you said that copy pasting won’t help made me smile :smiley:

2 Likes

when creating a new bug report, the discourse now automatically prepopulates the post with this template (thanks @jomaxro!) … please try your best to fill this out as it helps the team to resolve the issue … :+1:

Title:

Summary:

Steps to reproduce:
1)
2)
3)

Expected Results:

Actual Results:

Notes:

Attachments:

Versions and Mods:

System Information:

2 Likes

Thanks for the report! The last two bugs should be fixed in develop-2733. I’m not sure why the first one is happening, but I fixed it as well for the next release. Any chance you were using the console to delete things?