Jump to content

SoundEmitter crash


cezarica
  • Fixed

Running version 444120 and Master shard crashed with this error:

[00:19:40]: [string "scripts/standardcomponents.lua"]:1334: attempt to index field 'SoundEmitter' (a nil value)
LUA ERROR stack traceback:
scripts/standardcomponents.lua:1334 in (field) ondeploy (Lua) <1327-1336>
   inst = 125561 - spoiled_food(LIMBO) (valid:true)
   pt = (545.68, 0.00, -177.34)
   deployer = 124211 - webber (valid:true)
   tile_x = 349
   tile_z = 168
   nutrients = table: 0xc46b580
scripts/components/deployable.lua:113 in () ? (Lua) <107-121>
   self =
      keep_in_inventory_on_deploy = true
      ondeploy = function - scripts/standardcomponents.lua:1327
      _ = table: 0x230484f0
      inst = 125561 - spoiled_food(LIMBO) (valid:true)
   pt = (545.68, 0.00, -177.34)
   deployer = 124211 - webber (valid:true)
   rot = nil
   isplant = false
=(tail call):-1 in ()  (tail) <-1--1>
scripts/bufferedaction.lua:25 in (method) Do (Lua) <21-35>
   self (valid:true) =
      action = table: 0xcd43900
      doer = 124211 - webber (valid:true)
      onfail = table: 0x16ebe620
      doerownsobject = true
      onsuccess = table: 0x1df724b0
      options = table: 0x1ad7a370
      invobject = 125561 - spoiled_food(LIMBO) (valid:true)
      pos = 545.68, -177.34 on nil
scripts/entityscript.lua:1313 in (method) PerformBufferedAction (Lua) <1305-1323>
   self (valid:true) =
      DynamicShadow = DynamicShadow (0x271b1f70)
      inlimbo = false
      killtask = PERIODIC 124211: 3.000000
      SetCameraDistance = function - scripts/prefabs/player_common.lua:1049
      ScreenFlash = function - scripts/prefabs/player_common.lua:1111
      player_classified = 124213 - player_classified (valid:true)
      playercolour = table: 0x224a4fb0
      bufferedaction = Fertilize Plot nil With Inv: 125561 - spoiled_food(LIMBO) (valid:true)
      IsOverheating = function - scripts/prefabs/player_common.lua:118
      Light = Light (0x27a44bc0)
      _isrezattuned = false
      OnRemoveEntity = function - scripts/prefabs/player_common.lua:674
      pendingtasks = table: 0x19f38d50
      ShowHUD = function - scripts/prefabs/player_common.lua:1019
      ShowGiftItemPopUp = function - scripts/prefabs/player_common.lua:1031
      sg = sg="wilson", state="doshortaction", time=0.20, tags = "doing,"
      IsHUDVisible = function - scripts/prefabs/player_common.lua:1009
      ApplyScale = function - scripts/prefabs/player_common.lua:1126
      SetGhostMode = function - scripts/prefabs/player_common.lua:587
      ShowActions = function - scripts/prefabs/player_common.lua:1013
      OnWakeUp = function - scripts/prefabs/player_common.lua:875
      Transform = Transform (0x285985e0)
      SaveForReroll = function - scripts/prefabs/player_common.lua:1159
      event_listening = table: 0x1a878950
      actioncomponents = table: 0x18022880
      lower_components_shadow = table: 0x1915e690
      GetMaxMoisture = function - scripts/prefabs/player_common.lua:138
      prefab = webber
      updatecomponents = table: 0x218842e0
      ShakeCamera = function - scripts/prefabs/player_common.lua:1069
      OnDespawn = function - scripts/prefabs/player_common.lua:897
      OnLoad = function - scripts/prefabs/player_common.lua:765
      MiniMapEntity = MiniMapEntity (0x1bda4840)
      event_listeners = table: 0x1a135f70
      replica = table: 0x17979a30
      GetTemperature = function - scripts/prefabs/player_common.lua:98
      OnSleepIn = function - scripts/prefabs/player_common.lua:847
      ghostenabled = true
      EnableMovementPrediction = function - scripts/prefabs/player_common.lua:531
      worldstatewatching = table: 0x1a30aa20
      SetCameraZoomed = function - scripts/prefabs/player_common.lua:1055
      Network = Network (0x206091e0)
      userid = KU_d4ddm4S3
      OnPreLoad = function - scripts/prefabs/player_common.lua:755
      GetSandstormLevel = function - scripts/prefabs/player_common.lua:158
      inherentactions = table: 0x1f7997f0
      name = Radicaljoe
      SnapCamera = function - scripts/prefabs/player_common.lua:1061
      GetMoistureRateScale = function - scripts/prefabs/player_common.lua:148
      ShowWardrobePopUp = function - scr
[00:19:40]: [string "scripts/standardcomponents.lua"]:1334: attempt to index field 'SoundEmitter' (a nil value)
LUA ERROR stack traceback:
    scripts/standardcomponents.lua:1334 in (field) ondeploy (Lua) <1327-1336>
    scripts/components/deployable.lua:113 in () ? (Lua) <107-121>
    =(tail call):-1 in ()  (tail) <-1--1>
    scripts/bufferedaction.lua:25 in (method) Do (Lua) <21-35>
    scripts/entityscript.lua:1313 in (method) PerformBufferedAction (Lua) <1305-1323>
    scripts/stategraphs/SGwilson.lua:5040 in (field) fn (Lua) <5034-5042>
    scripts/stategraph.lua:572 in (method) UpdateState (Lua) <540-584>
    scripts/stategraph.lua:611 in (method) Update (Lua) <603-631>
    scripts/stategraph.lua:128 in (method) Update (Lua) <109-153>
    scripts/update.lua:233 in () ? (Lua) <164-243>
    
[00:19:40]: Warning: Widget:SetFocusFromChild is happening on a widget outside of the screen/widget hierachy. This will cause focus moves to fail. Is     ScriptErrorWidget    not a screen?    
[00:19:40]: stack traceback:
    scripts/widgets/widget.lua:605 in (method) SetFocusFromChild (Lua) <602-627>
    scripts/widgets/widget.lua:624 in (method) SetFocusFromChild (Lua) <602-627>
    scripts/widgets/widget.lua:624 in (method) SetFocusFromChild (Lua) <602-627>
    scripts/widgets/widget.lua:656 in (method) SetFocus (Lua) <629-665>
    scripts/widgets/menu.lua:83 in (method) SetFocus (Lua) <74-85>
    scripts/widgets/scripterrorwidget.lua:109 in (method) OnUpdate (Lua) <102-119>
    scripts/update.lua:95 in () ? (Lua) <33-134>

Steps to Reproduce

See stack-trace above.

Edit: use 'rot' or 'spoiled fish morsel' to fertilize your farm.

2nd edit: This bug has been reported 4 hours before me in here. Used search function but didn't find any results. :wilson_facepalm:




User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.

After a bit of research we found that when using 'rot' or 'spoiled fish morsel' (didn't test with other items that can spoil) when being used as fertilizer on the farms cause the crash. This isn't tied to a certain character action:

scripts/standardcomponents.lua:1334 in (field) ondeploy (Lua) <1327-1336>
   inst = 119620 - spoiled_fish_small (valid:false)
   pt = (-201.35, 0.00, 669.12)
   deployer = 124630 - wickerbottom (valid:true)

scripts/standardcomponents.lua:1334 in (field) ondeploy (Lua) <1327-1336>
   inst = 127108 - spoiled_food(LIMBO) (valid:true)
   pt = (-197.89, 0.00, 659.34)
   deployer = 142182 - wormwood (valid:true)

Edited by cezarica

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...