Carrat Racing cause crash


Amaryllidaceae
  • Fixed

Master: LUA ERROR stack traceback:
Master: scripts/stategraphs/SGcarrat.lua:701 in (field) onenter (Lua) <700-703>
Master:    inst = 451520 - carrat (valid:true)
Master: scripts/stategraph.lua:505 in (method) GoToState (Lua) <456-515>
Master:    self =
Master:       timelineindex = 1
Master:       tags = table: 0x41577c20
Master:       mem = table: 0x3e44a840
Master:       stopped = false
Master:       currentstate = table: 0xb22ae38
Master:       timeinstate = 0
Master:       sg = Stategraph : carrat
Master:       inst = 451520 - carrat (valid:true)
Master:       bufferedevents = table: 0x212ae600
Master:       statemem = table: 0x36ff8eb8
Master:       lastupdatetime = 40110.535425261
Master:       laststate = table: 0x228ea3f0
Master:       statestarttime = 40110.368758585
Master:    statename = race_start_startle
Master:    params = nil
Master:    state = table: 0xb22ae38
Master: scripts/prefabs/carrat.lua:339 in (field) race_begun_fn (Lua) <308-345>
Master:    inst = 451520 - carrat (valid:true)
Master:    reaction_stat = 0.6
Master:    start_delay = 1.2991624838203
Master: scripts/components/yotc_racecompetitor.lua:117 in (method) StartRace (Lua) <100-123>
Master:    self =
Master:       checkpoint_timer = 40110.635425266
Master:       onnextcheckpointremove = function - scripts/components/yotc_racecompetitor.lua:23
Master:       inst = 451520 - carrat (valid:true)
Master:       racestate = racing
Master:       race_distance = 10.516160455759
Master:       next_checkpoint = 106728 - yotc_carrat_race_checkpoint (valid:true)
Master:       stamina = 12.74210694979
Master:       checkpoints = table: 0x365734d8
Master:       race_start_point = 123529 - yotc_carrat_race_start (valid:true)
Master:       exhausted_time = 2
Master:       isforgetful = false
Master:       prev_checkpoint = 123529 - yotc_carrat_race_start (valid:true)
Master:       race_over_fn = function - scripts/prefabs/carrat.lua:355
Master:       race_finished_fn = function - scripts/prefabs/carrat.lua:347
Master:       latestartertask = PERIODIC 451520: 1.299162
Master:       race_begun_fn = function - scripts/prefabs/carrat.lua:308
Master:       stamina_max = 10
Master:       stamina_max_var = 3
Master:       forgetfulness = 0
Master:       start_race = function - scripts/components/yotc_racecompetitor.lua:28
Master:       _ = table: 0x13da4df8
Master:       exhausted_time_var = 1
Master:    delay = nil
Master: scripts/components/yotc_racecompetitor.lua:120 in (field) fn (Lua) <120-120>
Master: scripts/scheduler.lua:177 in (method) OnTick (Lua) <155-207>
Master:    self =
Master:       running = table: 0x161d52d0
Master:       waitingfortick = table: 0x28095280
Master:       tasks = table: 0x2f8a33f8
Master:       waking = table: 0x30408578
Master:       attime = table: 0x27803988
Master:       hibernating = table: 0x2f59c638
Master:    tick = 1203319
Master:    k = PERIODIC 451520: 0.037607
Master:    v = true
Master:    already_dead = false
Master: scripts/scheduler.lua:371 in (global) RunScheduler (Lua) <369-377>
Master:    tick = 1203319
Master: scripts/update.lua:180 in () ? (Lua) <159-238>
Master:    dt = 0.033333335071802
Master:    tick = 1203319
Master:    i = 1203319
Master: 
Master: [05:14:42]: [string "scripts/stategraphs/SGcarrat.lua"]:701: attempt to index field 'locomotor' (a nil value)
Master: LUA ERROR stack traceback:
Master:     scripts/stategraphs/SGcarrat.lua:701 in (field) onenter (Lua) <700-703>
Master:     scripts/stategraph.lua:505 in (method) GoToState (Lua) <456-515>
Master:     scripts/prefabs/carrat.lua:339 in (field) race_begun_fn (Lua) <308-345>
Master:     scripts/components/yotc_racecompetitor.lua:117 in (method) StartRace (Lua) <100-123>
Master:     scripts/components/yotc_racecompetitor.lua:120 in (field) fn (Lua) <120-120>
Master:     scripts/scheduler.lua:177 in (method) OnTick (Lua) <155-207>
Master:     scripts/scheduler.lua:371 in (global) RunScheduler (Lua) <369-377>
Master:     scripts/update.lua:180 in () ? (Lua) <159-238>
Master: 
Master: [05:14:42]: 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?   
Master: [05:14:42]: stack traceback:
Master:         scripts/widgets/widget.lua:605 in (method) SetFocusFromChild (Lua) <602-627>
Master:         scripts/widgets/widget.lua:624 in (method) SetFocusFromChild (Lua) <602-627>
Master:         scripts/widgets/widget.lua:624 in (method) SetFocusFromChild (Lua) <602-627>
Master:         scripts/widgets/widget.lua:656 in (method) SetFocus (Lua) <629-665>
Master:         scripts/widgets/menu.lua:83 in (method) SetFocus (Lua) <74-85>
Master:         scripts/widgets/scripterrorwidget.lua:109 in (method) OnUpdate (Lua) <102-119>
Master:         scripts/update.lua:90 in () ? (Lua) <33-129>
 


Steps to Reproduce
I don't know .I'm not in game when Error occurred

Status: Fixed

This issue has been fixed in either a future version or updated in a previous version.


  Report Bug


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.
.... ....

@ScottHansen You guys might want to check this out asap as it's an important aspect of the new update and sucks the fun out of it. I got the same error a few minutes ago:

[14:47:05]: [string "scripts/stategraphs/SGcarrat.lua"]:701: attempt to index field 'locomotor' (a nil value)
LUA ERROR stack traceback:
scripts/stategraphs/SGcarrat.lua:701 in (field) onenter (Lua) <700-703>
   inst = 370264 - carrat (valid:true)
scripts/stategraph.lua:505 in (method) GoToState (Lua) <456-515>
   self =
      tags = table: 0x2d7f1050
      mem = table: 0x1fadf090
      statemem = table: 0x2b72c920
      currentstate = table: 0x24ad0210
      stopped = false
      timeinstate = 0
      sg = Stategraph : carrat
      inst = 370264 - carrat (valid:true)
      bufferedevents = table: 0x266ebff0
      timelineindex = 1
      lastupdatetime = 41250.835484732
      laststate = table: 0x24aafd60
      statestarttime = 41249.83548468
   statename = race_start_startle
   params = nil
   state = table: 0x24ad0210
scripts/prefabs/carrat.lua:343 in (field) race_begun_fn (Lua) <312-349>
   inst = 370264 - carrat (valid:true)
   reaction_stat = 0.6
   start_delay = 1.0410769411554
scripts/components/yotc_racecompetitor.lua:117 in (method) StartRace (Lua) <100-123>
   self =
      checkpoint_timer = 41251.368818093
      onnextcheckpointremove = function - scripts/components/yotc_racecompetitor.lua:23
      inst = 370264 - carrat (valid:true)
      racestate = racing
      race_distance = 12.010412149464
      next_checkpoint = 242700 - yotc_carrat_race_checkpoint (valid:true)
      stamina = 20.020474200146
      checkpoints = table: 0x1d71a1e0
      race_start_point = 242600 - yotc_carrat_race_start (valid:true)
      exhausted_time = 2
      isforgetful = false
      prev_checkpoint = 242600 - yotc_carrat_race_start (valid:true)
      race_over_fn = function - scripts/prefabs/carrat.lua:359
      race_finished_fn = function - scripts/prefabs/carrat.lua:351
      latestartertask = PERIODIC 370264: 1.041077
      race_begun_fn = function - scripts/prefabs/carrat.lua:312
      stamina_max = 18
      stamina_max_var = 3
      forgetfulness = 0
      start_race = function - scripts/components/yotc_racecompetitor.lua:28
      _ = table: 0x2bdc6830
      exhausted_time_var = 1
   delay = nil
scripts/components/yotc_racecompetitor.lua:120 in (field) fn (Lua) <120-120>
scripts/scheduler.lua:177 in (method) OnTick (Lua) <155-207>
   self =
      running = table: 0x98db320
      waitingfortick = table: 0x9691830
      tasks = table: 0x98db2d0
      waking = table: 0x1ee71940
      attime = table: 0x96918c0
      hibernating = table: 0x9691890
   tick = 1237541
   k = PERIODIC 370264: 0.472316
   v = true
   already_dead = false
scripts/scheduler.lua:371 in (global) RunScheduler (Lua) <369-377>
   tick = 1237541
scripts/update.lua:180 in () ? (Lua) <159-238>
   dt = 0.033333335071802
   tick = 1237541
   i = 1237541
[14:47:05]: [string "scripts/stategraphs/SGcarrat.lua"]:701: attempt to index field 'locomotor' (a nil value)
LUA ERROR stack traceback:
    scripts/stategraphs/SGcarrat.lua:701 in (field) onenter (Lua) <700-703>
    scripts/stategraph.lua:505 in (method) GoToState (Lua) <456-515>
    scripts/prefabs/carrat.lua:343 in (field) race_begun_fn (Lua) <312-349>
    scripts/components/yotc_racecompetitor.lua:117 in (method) StartRace (Lua) <100-123>
    scripts/components/yotc_racecompetitor.lua:120 in (field) fn (Lua) <120-120>
    scripts/scheduler.lua:177 in (method) OnTick (Lua) <155-207>
    scripts/scheduler.lua:371 in (global) RunScheduler (Lua) <369-377>
    scripts/update.lua:180 in () ? (Lua) <159-238>
    
[14:47:05]: 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?    
[14:47:05]: 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:90 in () ? (Lua) <33-129>
Edited by cezarica
  • Thanks 1

Share this comment


Link to comment
Share on other sites
....

I have not been able to repro this so far. If anyone can think about what would have lead to this, please let me know.

  • Thanks 1

Share this comment


Link to comment
Share on other sites
....
On 1/28/2020 at 9:00 AM, cezarica said:

I got the same error a few minutes ago:

What caused the crash for you? I might be experiencing the same thing.

Share this comment


Link to comment
Share on other sites
....

@X-lem If I knew what caused would have mentioned the steps to follow to reproduce it. Just found the Master shard crashed with that error and posted on the forums thinking it will help track down the issue.

I've asked my friends if they are doing the rat race and for some reason the server crashes to let me know exactly what they did so we can then reproduce the steps and see what caused the error and the crash.

Edited by cezarica

Share this comment


Link to comment
Share on other sites
....

@ScottHansen

Not sure if this will help you guys (or if you have fixed it already). The error looks the same as cezarica's. One of my servers crashed during a carrot race. I wasn't there, but the situation was reported that people were going to start a race. One person removed their carrot and put in a new one. After the race was started the game crashed. Don't have any more information than that sadly tho.

 

server_log_2020-01-31-15-08-36.txt

Share this comment


Link to comment
Share on other sites
....

Decided to test what you said @X-lem and made the start, finish and some checkpoints. After trained two carats separately I started the race with one and charlie came up with other 3. In the middle of the race I tried picking my own carat but I couldn't and then I tried dropping another one that behaved like a released rabbit for example by wiggling a bit and then going wild. Nothing happened.

If it helps was a player hosted server, not dedicated.

Share this comment


Link to comment
Share on other sites
....
4 hours ago, cezarica said:

Decided to test what you said @X-lem and made the start, finish and some checkpoints. After trained two carats separately I started the race with one and charlie came up with other 3. In the middle of the race I tried picking my own carat but I couldn't and then I tried dropping another one that behaved like a released rabbit for example by wiggling a bit and then going wild. Nothing happened.

If it helps was a player hosted server, not dedicated.

I think they said they exchanged the carrat before the race started. Not during the race. Did you happen to try that as well?

Share this comment


Link to comment
Share on other sites
....

if you change the carat BEFORE the race has been started nothing happens, as it should. I tried and nothing bad happened.

I tried something else instead: I put my champion down and right click on the wheel to start the race. When I tried to pick my carat to swap it with another the game didn't let me pick it BUT the carat entered in the animation state as if when you pick an animal and release it and dose the wiggle animation before getting up on it's feet and run (or becoming wild again in a carat case). Because of this animation it started the race a bit late and Charlie's carats had a head start and they won obviously. :)

After the race has been finished I picked my carat and started over, but this time i didn't touch it, just started the race and it still entered the wiggle state on it's own. Stopped server and started it again and it still dose the wiggle animation even if i just put it down to start the race.

I put the carat down on the start point and it waits there, but as soon as I start the race without touching it, the carat enters in the wiggle state on it's own. I let that race end and I tried with a fresh batch of carats they all behaved the same way, meaning enter wiggle state as soon as the race was started, and after the wiggle animation actually start racing with Charlie's carats, and I assume it's same with other player carats.

@ScottHansen You guys might want to have a look at this issue.

Oh, and another thing that I noticed. Not sure if it's intended or it's a slip, but carats that are left training go to sleep at night and in the morning they don't start training again, instead they are just sitting there doing nothing just staring at the machine they where placed on.

Edited by cezarica

Share this comment


Link to comment
Share on other sites
.... ....

@ScottHansen Nope, I just tested and the wiggle at the start is still there. I mean I put the carat down, then right click on the wheel to start the race and the carat dose the wiggle animation on it's own and when finishes starts the race like Charlie's carats.

As for the crash, haven't seen it since my first post in here.

Edited by cezarica

Share this comment


Link to comment
Share on other sites
....
9 hours ago, cezarica said:

start the race and the carat dose the wiggle animation

Does your Carrat have 0 points in its Reaction stat? This would cause them to get stunned when the race starts.

Share this comment


Link to comment
Share on other sites
....
16 hours ago, ScottHansen said:

Does your Carrat have 0 points in its Reaction stat? This would cause them to get stunned when the race starts.

Don't know how to check that, but given that I tried with a fresh batch of spawned carats via console c_give("carat") then I think it's safe to assume they have 0 points. I had one training for a bit in all machines and all behaved the same way, n matter if it had some or no training at all last time i tested.

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