After implementing MagicBlending on my NPC's the editor seems to randomly crash every now and then, without me being able to pinpoint the cause. The error code in crash dump file is always the same. I'm including the files, would be grateful for help as it makes the plugin kind of unusable right now and I'm stuck 😦
#MagicBlending game crashing
1 messages · Page 1 of 1 (latest)
Hi, according to the log, it seems that UpdateMagicBlend asset is invoked before the initialization of the component. I'm going to attach a test package to this message, let me know if it fixes the problem
Thanks, I'll do some testing and let You know 🙂
seems like it didn't quite work, just had a crash, looks like the same reason as far as i can tell. I have a hunch it's related to Magic Blend States in Animator nodes but the crashes seem pretty random so it's hard for me to say anything for certain
I'm also getting spammed by error messages, but don't know if they're related to the crashes, whether they appear and how many of them seems related to animator magic blend states but haven't yet found exact conditions
Hi, I see, could you try removing the Magic Blend States? Also, could you show a Magic Blend Asset used by NPCs?
Weirdly, when I remove all the Magic Blend States from the animator, the errors repeat non stop like in the image above, while otherwise, they seem to pop up when spawning an NPC
Hmm, that is quite strange. Does it happen if you remove the override overlays?
yep, still there without overrides, doesn't seem to change anything
I see that you use a third-party editor extension here - could you tell me what framework/asset is that?
Also, is it possible that you are running the Magic Blending script in the editor (not play mode)? Or does the problem happen in editor mode only?
I'm using OdinInspector and HotReload and I'm running it in play mode
I have a hunch the crashes might be occuring during NPC spawn, will test it today
Yeah, it seems to crash during NPC spawn, along with those so they're probably related
It looks like the Magic Blend Asset is null, possibly one of the Magic Blend States is missing a reference to the asset
It happens even without touching animator, just plugging magic blend asset into the npc