Maris Posted February 21, 2015 Share Posted February 21, 2015 Bug Submission:Category: Server CrashIssue Title: inventoryitem is nilIssue Description:[07:27:39]: [string "scripts/prefabs/mininglantern.lua"]:44: attempt to index field 'inventoryitem' (a nil value)LUA ERROR stack traceback:scripts/prefabs/mininglantern.lua:44 in (field) turnonfn (Lua) <17-47> inst = 244575 - lantern (valid:true) owner = nilscripts/components/machine.lua:57 in (method) TurnOn (Lua) <49-60> self = turnofffn = function - scripts/prefabs/mininglantern.lua:49 cooldowntime = 0 inst = 244575 - lantern (valid:true) _ = table: 1B87A0D0 turnonfn = function - scripts/prefabs/mininglantern.lua:17scripts/actions.lua:903 in (field) fn (Lua) <900-906> act = Turn On 244575 - lantern (valid:true) tar = 244575 - lantern (valid:true)scripts/bufferedaction.lua:22 in (method) Do (Lua) <19-35> self (valid:true) = options = table: 11F18EA8 action = table: 05EA15E0 doer = 245176 - wolfgang (valid:true) onfail = table: 11F0DE90 doerownsobject = false target = 244575 - lantern (valid:true) onsuccess = table: 11F17D50scripts/entityscript.lua:1138 in (method) PerformBufferedAction (Lua) <1130-1148> self (valid:true) = OnSleepIn = function - scripts/prefabs/player_common.lua:811 DetachClassified = function - scripts/prefabs/player_common.lua:421 inlimbo = false children = table: 18F2B9F0 ghostenabled = false SetCameraDistance = function - scripts/prefabs/player_common.lua:910 ScreenFlash = function - scripts/prefabs/player_common.lua:964 EnableMovementPrediction = function - scripts/prefabs/player_common.lua:303 worldstatewatching = table: 1C0D4D40 kills = 0 is_bonus = true GUID = 245176 AnimState = AnimState (0DA25410) my_gender = table: 05E92B58 Light = Light (0DA1B530) hurtsoundoverride = dontstarve/characters/wolfgang/hurt_small player_classified = 245177 - player_classified (valid:true) Network = Network (0DA25290) playercolour = table: 1DFEA630 OnRemoveEntity = function - scripts/prefabs/player_common.lua:426 userid = KU_0vWB929I pendingtasks = table: 1122A998 LightWatcher = LightWatcher (0DA22370) CanExamine = function - scripts/prefabs/player_common.lua:20 inherentactions = table: 1D113068 IsHUDVisible = function - scripts/prefabs/player_common.lua:894 _wasnomorph = false DynamicShadow = DynamicShadow (0DA1A930) SetGhostMode = function - scripts/prefabs/player_common.lua:342 ShowActions = function - scripts/prefabs/player_common.lua:898 ShowHUD = function - scripts/prefabs/player_common.lua:904 OnWakeUp = function - scripts/prefabs/player_common.lua:839 Transform = Transform (0DA21C30) sg = sg="wilson", state="give", time=0.43, tags = "giving," spawntime = 26628.201388769 actionreplica = table: 1122F6F0 event_listening = table: 18495C48 ScreenFade = function - scripts/prefabs/player_common.lua:957 actioncomponents = table: 11232198 name = Kam SnapCamera = function - scripts/prefabs/player_common.lua:916 OnSave = function - ../mods/Cannibalism18/modmain.lua:495 IsActionsVisible = function - scripts/prefabs/player_common.lua:888 entity = Entity (15D7EF50) talksoundoverride = dontstarve/characters/wolfgang/talk_small_LP prefab = wolfgang updatecomponents = table: 1A3E67B0 OnLoad = function - ../mods/Cannibalism18/modmain.lua:502 AttachClassified = function - scripts/prefabs/player_common.lua:415 OnDespawn = function - scripts/prefabs/player_common.lua:857 persists = false ShakeCamera = function - scripts/prefabs/player_common.lua:924 MiniMapEntity = MiniMapEntity (0DA21630) IsFreezing = function - scripts/prefabs/player_common.lua:57 Physics = Physics (0DA1B830) _OnLoad = function - scripts/prefabs/wolfgang.lua:177 strength = wimpy SoundEmitter = SoundEmitter (0DA219B0) event_listeners = table: 18496238 replica = table: 11235F28 bufferedaction = Turn [07:27:39]: SCRIPT ERROR! Showing error screen [07:27:40]: QueryServerComplete no callbackSteps to Reproduce: I'm not sure. Just play. Link to comment https://forums.kleientertainment.com/forums/topic/51243-server-crash-inventoryitem-is-nil/ Share on other sites More sharing options...
Maris Posted February 21, 2015 Author Share Posted February 21, 2015 Again [05:26:38]: [string "scripts/components/inventory.lua"]:727: attempt to index field 'inventoryitem' (a nil value)LUA ERROR stack traceback:scripts/components/inventory.lua:727 in (method) Equip (Lua) <718-793> self = ignoreoverflow = false ignoresound = false isopen = true opencontainers = table: 04B131C8 dropondeath = false isvisible = true silentfull = false inst = 185496 - wx78 (valid:true) equipslots = table: 04B1B300 ignorefull = false _ = table: 04B178E0 itemslots = table: 04B17C28 item = 187465 - boomerang (valid:true) old_to_active = nilscripts/prefabs/boomerang.lua:38 in (field) oncaught (Lua) <34-45> inst = 187465 - boomerang (valid:true) catcher = 185496 - wx78 (valid:true)scripts/components/projectile.lua:122 in (method) Catch (Lua) <117-125> self = dest = (-91.80, 0.00, 420.69) onthrown = function - scripts/prefabs/boomerang.lua:27 start = (-91.94, 0.00, 420.55) _ = table: 10EDC098 onmiss = function - scripts/prefabs/boomerang.lua:47 inst = 187465 - boomerang (valid:true) onhit = function - scripts/prefabs/boomerang.lua:54 speed = 10 hitdist = 1 homing = true oncaught = function - scripts/prefabs/boomerang.lua:34 catcher = 185496 - wx78 (valid:true)scripts/components/catcher.lua:69 in (method) OnUpdate (Lua) <53-78> self = actiondistance = 12 inst = 185496 - wx78 (valid:true) watchlist = table: 12195040 _ = table: 121959F0 catchdistance = 2 isreadytocatch = true k = 187465 - boomerang (valid:true) v = true distsq = 3.9845464176033scripts/update.lua:151 in () ? (Lua) <118-181> dt = 0.033333335071802 tick = 587278 k = 185496 v = 185496 - wx78 (valid:true) cmp = table: 121955E0[05:26:38]: SCRIPT ERROR! Showing error screen [05:26:39]: QueryServerComplete no callback Link to comment https://forums.kleientertainment.com/forums/topic/51243-server-crash-inventoryitem-is-nil/#findComment-615236 Share on other sites More sharing options...
rezecib Posted February 21, 2015 Share Posted February 21, 2015 @Maris, You clearly have mods enabled, which ones? The inventoryitem component should definitely exist in both of those cases, I would suspect a mod is removing them for some reason. You could also provide more context, like OS, dedicated or not, controller or KB/M -- some details may be useless, but it's better to have them out front. Link to comment https://forums.kleientertainment.com/forums/topic/51243-server-crash-inventoryitem-is-nil/#findComment-615246 Share on other sites More sharing options...
Maris Posted February 22, 2015 Author Share Posted February 22, 2015 It's dedicated server. I use only my mods. And I am sure that I do not remove inventoryitem component. I even don't touch this component. Especially I don't touch those prefabs: mininglantern and boomerang. I mean I have no mods that change something in that prefabs. I'm sure that it's game bug. I attached mods folder and configuration folder. Hope it helps. mods.zip Link to comment https://forums.kleientertainment.com/forums/topic/51243-server-crash-inventoryitem-is-nil/#findComment-615421 Share on other sites More sharing options...
Maris Posted February 25, 2015 Author Share Posted February 25, 2015 Server was online 24 hours and then suddenly crashed (third time with this type of error)[00:00:37]: [string "scripts/prefabs/abigail_flower.lua"]:13: attempt to index field 'inventoryitem' (a nil value)LUA ERROR stack traceback:scripts/prefabs/abigail_flower.lua:13 in (field) getstatus (Lua) <11-25> inst = 305424 - abigail_flower (valid:true)scripts/components/inspectable.lua:24 in (method) GetStatus (Lua) <21-47> self = getstatus = function - scripts/prefabs/abigail_flower.lua:11 inst = 305424 - abigail_flower (valid:true) GetDescription = function - ../mods/TellMe/modmain.lua:108 viewer = 305421 - wendy (valid:true)scripts/components/inspectable.lua:61 in (upvalue) oldGetDesc (Lua) <49-73> self = getstatus = function - scripts/prefabs/abigail_flower.lua:11 inst = 305424 - abigail_flower (valid:true) GetDescription = function - ../mods/TellMe/modmain.lua:108 viewer = 305421 - wendy (valid:true) desc = nil../mods/TellMe/modmain.lua:109 in (method) GetDescription (Lua) <108-304> self = getstatus = function - scripts/prefabs/abigail_flower.lua:11 inst = 305424 - abigail_flower (valid:true) GetDescription = function - ../mods/TellMe/modmain.lua:108 viewer = 305421 - wendy (valid:true)scripts/actions.lua:262 in (field) fn (Lua) <259-274> act = Examine 305424 - abigail_flower (valid:true) targ = 305424 - abigail_flower (valid:true)scripts/bufferedaction.lua:22 in (method) Do (Lua) <19-35> self (valid:true) = options = table: 12B0F070 action = table: 054C8B90 doer = 305421 - wendy (valid:true) onfail = table: 12B0CAC8 doerownsobject = false target = 305424 - abigail_flower (valid:true) onsuccess = table: 12B154E8scripts/entityscript.lua:1115 in (method) PushBufferedAction (Lua) <1081-1128> self (valid:true) = DynamicShadow = DynamicShadow (1865EE30) inlimbo = false is_loaded = true SetCameraDistance = function - scripts/prefabs/player_common.lua:927 ScreenFlash = function - scripts/prefabs/player_common.lua:981 player_classified = 305422 - player_classified (valid:true) playercolour = table: 18701150 AnimState = AnimState (18655550) Light = Light (186590B0) _OnDespawn = function - scripts/prefabs/wendy.lua:20 OnRemoveEntity = function - scripts/prefabs/player_common.lua:426 pendingtasks = table: 0F7C5440 ShowHUD = function - scripts/prefabs/player_common.lua:921 sg = sg="wilson", state="run_stop", time=0.23, tags = "canrotate,idle,autopredict," IsHUDVisible = function - scripts/prefabs/player_common.lua:911 SetGhostMode = function - scripts/prefabs/player_common.lua:342 CanExamine = function - scripts/prefabs/player_common.lua:20 OnWakeUp = function - scripts/prefabs/player_common.lua:844 Transform = Transform (1865A330) actionreplica = table: 1438D140 event_listening = table: 11F0D848 actioncomponents = table: 10EEE370 prefab = wendy updatecomponents = table: 194F3760 ShakeCamera = function - scripts/prefabs/player_common.lua:941 OnDespawn = function - scripts/prefabs/player_common.lua:862 Physics = Physics (13003B48) MiniMapEntity = MiniMapEntity (1865CB50) IsFreezing = function - scripts/prefabs/player_common.lua:57 _OnLoad = function - scripts/prefabs/wendy.lua:37 OnSetSkin = function - scripts/prefabs/player_common.lua:889 replica = table: 10EE7868 GetTemperature = function - scripts/prefabs/player_common.lua:47 OnSleepIn = function - scripts/prefabs/player_common.lua:816 ghostenabled = false EnableMovementPrediction = function - scripts/prefabs/player_common.lua:303 worldstatewatching = table: 14E95828 abigail_flowers = table: 186F6548 my_gender = table: 0559B0E0 Network = Network (1865A4F0) userid = KU_6aI2i8So LightWatcher = LightWatcher (186560F0) inherentactions = table: 11580B10 spawntime = 85416.471121483 hasAttackedPlayer = true SnapCamera = function - scripts/prefabs/player_common.lua:933 Link to comment https://forums.kleientertainment.com/forums/topic/51243-server-crash-inventoryitem-is-nil/#findComment-616624 Share on other sites More sharing options...
DarkXero Posted February 25, 2015 Share Posted February 25, 2015 Try disabling the BurnAll mod, it's a constant between the three prefabs. Link to comment https://forums.kleientertainment.com/forums/topic/51243-server-crash-inventoryitem-is-nil/#findComment-616647 Share on other sites More sharing options...
Maris Posted March 7, 2015 Author Share Posted March 7, 2015 Burnie mod just adds "burnable" and "Propagator" components. Also "fuel" component. It's too easy to be buggy. -- burnable=true by default !!!local function MakeBurnable(prefab,fuel,burnable,loot) if tools_loot[prefab] then return end if loot then if burnable_tools then if tools_loot_type~=0 then tools_loot[prefab]=loot end else return end end if burnable~=false then AddPrefabPostInit(prefab,function(inst) if not inst.components.burnable then _G.MakeSmallBurnable(inst, TUNING.MED_BURNTIME) _G.MakeSmallPropagator(inst) end if not inst.components.fuel then inst:AddComponent("fuel") end inst.components.fuel.fuelvalue = fuel end) else AddPrefabPostInit(prefab,function(inst) if not inst.components.fuel then inst:AddComponent("fuel") end inst.components.fuel.fuelvalue = fuel end) endendNew crash: [03:13:12]: [string "scripts/prefabs/abigail_flower.lua"]:250: attempt to index field 'inventoryitem' (a nil value)LUA ERROR stack traceback:scripts/prefabs/abigail_flower.lua:250 in (local) fn (Lua) <247-253>scripts/entityscript.lua:880 in (method) PushEvent (Lua) <874-897> self (valid:true) = DynamicShadow = DynamicShadow (1265BA90) inlimbo = false SetCameraDistance = function - scripts/prefabs/player_common.lua:927 ScreenFlash = function - scripts/prefabs/player_common.lua:981 player_classified = 161310 - player_classified (valid:true) playercolour = table: 1CA90550 AnimState = AnimState (1265B330) Light = Light (1265B990) _OnDespawn = function - scripts/prefabs/wendy.lua:21 deathcause = fire OnRemoveEntity = function - scripts/prefabs/player_common.lua:426 pendingtasks = table: 1C3330D0 ShowHUD = function - scripts/prefabs/player_common.lua:921 sg = sg="wilson", state="death", time=5.30, tags = "busy,pausepredict,nomorph," IsHUDVisible = function - scripts/prefabs/player_common.lua:911 SetGhostMode = function - scripts/prefabs/player_common.lua:342 CanExamine = function - scripts/prefabs/player_common.lua:20 OnWakeUp = function - scripts/prefabs/player_common.lua:844 Transform = Transform (1265B4F0) actionreplica = table: 0712EF58 event_listening = table: 1C32F6B0 actioncomponents = table: 071292D8 prefab = wendy updatecomponents = table: 1C148C68 ShakeCamera = function - scripts/prefabs/player_common.lua:941 OnDespawn = function - scripts/prefabs/player_common.lua:862 Physics = Physics (12658C50) MiniMapEntity = MiniMapEntity (1265BA30) IsFreezing = function - scripts/prefabs/player_common.lua:57 _OnLoad = function - scripts/prefabs/wendy.lua:38 OnSetSkin = function - scripts/prefabs/player_common.lua:889 replica = table: 0712B948 GetTemperature = function - scripts/prefabs/player_common.lua:47 OnSleepIn = function - scripts/prefabs/player_common.lua:816 persists = false ghostenabled = false EnableMovementPrediction = function - scripts/prefabs/player_common.lua:303 worldstatewatching = table: 1C143150 abigail_flowers = table: 1C13B770 my_gender = table: 085543C8 Network = Network (1265B150) userid = KU_rpb6-Hge LightWatcher = LightWatcher (1265B870) inherentactions = table: 1C148060 spawntime = 11460.233931031 SnapCamera = function - scripts/prefabs/player_common.lua:933 _OnSave = function - scripts/prefabs/wendy.lua:32 net_try_hide = net_bool (1CDC8680) ScreenFade = function - scripts/prefabs/player_common.lua:974 attackers = table: 1B9F4090 entity = Entity (19F87A30) GUID = 161309 children = table: 1C4CC668 AttachClassified = function - scripts/prefabs/player_common.lua:415 is_bonus = true IsActionsVisible = function - scripts/prefabs/player_common.lua:905 kills = 0 try_hide = false SoundEmitter = SoundEmitter (1265B570) name = AlexBro ShowActions = function - scripts/prefabs/player_common.lua:915 ghostbuild = ghost_wendyplayer_build OnSave = function - ../mods/Cannibalism18/modmain.lua:512 OnLoad = function - ../mods/Cannibalism18/modmain.lua:519 DetachClassified = function - scripts/prefabs/player_common.lua:421 components = table: 071295A8 event_listeners = table: 1C327708 event = onremove data = nil listeners = table: 1C4CCFA0 entity = 161312 - abigail_flower (valid:true) fns = table: 1C4CE288 i = 1 fn = function - scripts/prefabs/abigail_flower.lua:247scripts/entityscript.lua:1174 in (method) Remove (Lua) <1166-1218> self (valid:true) = DynamicShadow = DynamicShadow (1265BA90) inlimbo = false SetCameraDistance = function - scripts/prefabs/player_common.lua:927 ScreenFlash = function - scripts/prefabs/player_common.lua:981 player_classified = 161310 - pl[03:13:12]: SCRIPT ERROR! Showing error screen Link to comment https://forums.kleientertainment.com/forums/topic/51243-server-crash-inventoryitem-is-nil/#findComment-619897 Share on other sites More sharing options...
Maris Posted March 11, 2015 Author Share Posted March 11, 2015 New crash:[06:48:01]: [string "scripts/components/inventory.lua"]:728: attempt to index field 'inventoryitem' (a nil value)LUA ERROR stack traceback:scripts/components/inventory.lua:728 in (method) Equip (Lua) <719-794> self = ignoreoverflow = false ignoresound = false isopen = true opencontainers = table: 18BDB5F8 dropondeath = false isvisible = true silentfull = false inst = 155763 - wendy (valid:true) equipslots = table: 18BD6AF8 ignorefull = false _ = table: 18BD85D8 itemslots = table: 18BD8240 item = 155782 - boomerang (valid:true) old_to_active = nilscripts/prefabs/boomerang.lua:38 in (field) oncaught (Lua) <34-45> inst = 155782 - boomerang (valid:true) catcher = 155763 - wendy (valid:true)scripts/components/projectile.lua:122 in (method) Catch (Lua) <117-125> self = dest = (197.77, -0.00, -113.94) onthrown = function - scripts/prefabs/boomerang.lua:27 start = (197.77, -0.00, -113.94) _ = table: 0E786BE8 onmiss = function - scripts/prefabs/boomerang.lua:47 inst = 155782 - boomerang (valid:true) onhit = function - scripts/prefabs/boomerang.lua:54 speed = 10 hitdist = 1 homing = true oncaught = function - scripts/prefabs/boomerang.lua:34 catcher = 155763 - wendy (valid:true)scripts/components/catcher.lua:69 in (method) OnUpdate (Lua) <53-78> self = actiondistance = 12 inst = 155763 - wendy (valid:true) watchlist = table: 089AAEB0 _ = table: 089A1B08 catchdistance = 2 isreadytocatch = true k = 155782 - boomerang (valid:true) v = true distsq = 3.3845104661887scripts/update.lua:183 in () ? (Lua) <146-213> dt = 0.033333335071802 tick = 733579 k = 155763 v = 155763 - wendy (valid:true) cmp = table: 0899D648[06:48:01]: SCRIPT ERROR! Showing error screen Link to comment https://forums.kleientertainment.com/forums/topic/51243-server-crash-inventoryitem-is-nil/#findComment-620976 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.