Random Crash. What happened? (Picture)


#1


#2

Upon doing nothing but reloading, first thing that pops up are four crash reports. I’ve had none to this point.

  1. release-943 (x64)[M]

stonehearth/components/job/job_component.lua:111: attempt to index local ‘json’ (a nil value)

stack traceback: [C]: ? stonehearth/components/job/job_component.lua:111: in function <stonehearth/components/job/job_component.lua:61>

  1. release-943 (x64)[M]

c++ exception: lua runtime error

stack traceback:

  1. release-943 (x64)[M]

std::logic_error: ‘invalid reference in native get_id’

stack traceback: [C]: ? [C]: ? [C]: in function ‘listen’ radiant/modules/events.lua:53: in function ‘listen’ stonehearth/components/social/social_component.lua:73: in function ‘_create_listeners’ stonehearth/components/social/social_component.lua:41: in function <stonehearth/components/social/social_component.lua:34>

  1. release-943 (x64)[M]

get_id

stack traceback: [C]: ? [C]: in function ‘listen’ radiant/modules/events.lua:53: in function ‘listen’ stonehearth/components/social/social_component.lua:73: in function ‘_create_listeners’ stonehearth/components/social/social_component.lua:41: in function <stonehearth/components/social/social_component.lua:34>


#3

Can you upload the save file?


#4

Yes I can. Going back to my computer now, give me 2 minutes.


#5

1545354873820.rar (2.7 MB)


#6

The first crash is a known issue that happens occasionally :pensive:. For the list of errors, it should be unrelated to the crash, it’s possible some mods are conflicting with each other during load. It’s hard to say cause there are a good number of mods in your save. If you have a save that still works from before this, I’d recommend using that :confused:


#7

When you said, “Happens occasionally”, how often did you mean? I’ve never once seen this, and now I’ve had this happen three times in less than 24 hours. :disappointed_relieved:


#8

It’s tough to say, because we never ended up being able to reproduce it consistently and find what the root cause of this was :pensive:. I usually don’t see it in the majority of my playthroughs. Does it happen more for you with a specific save?


#9

Well that’s what I was wondering, because they were all the same save. So I recently started a new one with a different kingdom and biome, to see how it goes. Thank you for replying!


#10

It has happened in the past to some users, but we were unable to reproduce it in the savefiles that the users shared (that allegedly were crashing every now and then).

If you find a pattern for reproducing the crash let us know (like, does it happen the moment that you placed an item? what was going on in the game? etc).

Your savefile does use many mods and it’s multiplayer so I wonder if there’s some kind of conflict.


#11

From what I recall the last two since they were so recent, there was nothing similar happening. Unless it was something so menial like mining, or harvesting plants, that it wasn’t something I was specifically doing myself and not autonomously.

I don’t even remember what was going on when the very first one happened last night. I’ll try to pay attention to remember this time.


#12

Based on the message, I might suspect a floating number precision issue which would not show up on non-release builds. Maybe Intel vs AMD FPU differences? Chances are removing or loosening that assert might fix the crash.


#13

Would a floating point precision issue result in a NaN?


#14

Indirectly, I suppose. E.g. 0/(1-f()) might be NaN if f() return 1, but not if it’s 1+1E-20.


#15

So I changed the assert to an early exit, which will skip updating the rendering for mobs on frames that have NaN transforms, but shouldn’t crash anymore. If it was a precision issue on the client side, it should sort itself out quickly and shouldn’t have any noticeable adverse effects in the game (i.e. might skip updating an entity for a frame or two).

TLDR: This should be fixed on the latest build on Steam. Thanks for the report @MichaelD7 & for the help @max99x


What was that most recent update?
#16

Yes I’ve been playing on the save that crashed so often with the test build and have had no issues!