Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kawaii physics does not work with control rig. #56

Closed
endyrare opened this issue Jun 20, 2022 · 7 comments
Closed

Kawaii physics does not work with control rig. #56

endyrare opened this issue Jun 20, 2022 · 7 comments

Comments

@endyrare
Copy link

Hello i love kawaii physics and i would love to use it in my animations. But im having an issue with using kawaii physics in conjunction with control rig. upon adding the anim class blueprint to the skeletal mesh i get this crash:

LoginId:98aff43c4d60f4c49e90919af69e46f1
EpicAccountId:3121102b2e164b4fa074f16cc163618a

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x00000000000000b8

UnrealEditor_KawaiiPhysics!FAnimNode_KawaiiPhysics::Initialize_AnyThread() [F:\Github\KawaiiPhysics\Plugins\KawaiiPhysics\Source\KawaiiPhysics\Private\AnimNode_KawaiiPhysics.cpp:36]
UnrealEditor_Engine
UnrealEditor_AnimGraphRuntime
UnrealEditor_KawaiiPhysics!FAnimNode_KawaiiPhysics::Initialize_AnyThread() [F:\Github\KawaiiPhysics\Plugins\KawaiiPhysics\Source\KawaiiPhysics\Private\AnimNode_KawaiiPhysics.cpp:22]
UnrealEditor_Engine
UnrealEditor_AnimGraphRuntime
UnrealEditor_KawaiiPhysics!FAnimNode_KawaiiPhysics::Initialize_AnyThread() [F:\Github\KawaiiPhysics\Plugins\KawaiiPhysics\Source\KawaiiPhysics\Private\AnimNode_KawaiiPhysics.cpp:22]
UnrealEditor_Engine
UnrealEditor_AnimGraphRuntime
UnrealEditor_KawaiiPhysics!FAnimNode_KawaiiPhysics::Initialize_AnyThread() [F:\Github\KawaiiPhysics\Plugins\KawaiiPhysics\Source\KawaiiPhysics\Private\AnimNode_KawaiiPhysics.cpp:22]
UnrealEditor_Engine
UnrealEditor_AnimGraphRuntime
UnrealEditor_KawaiiPhysics!FAnimNode_KawaiiPhysics::Initialize_AnyThread() [F:\Github\KawaiiPhysics\Plugins\KawaiiPhysics\Source\KawaiiPhysics\Private\AnimNode_KawaiiPhysics.cpp:22]
UnrealEditor_Engine
UnrealEditor_AnimGraphRuntime
UnrealEditor_KawaiiPhysics!FAnimNode_KawaiiPhysics::Initialize_AnyThread() [F:\Github\KawaiiPhysics\Plugins\KawaiiPhysics\Source\KawaiiPhysics\Private\AnimNode_KawaiiPhysics.cpp:22]
UnrealEditor_Engine
UnrealEditor_AnimGraphRuntime
UnrealEditor_KawaiiPhysics!FAnimNode_KawaiiPhysics::Initialize_AnyThread() [F:\Github\KawaiiPhysics\Plugins\KawaiiPhysics\Source\KawaiiPhysics\Private\AnimNode_KawaiiPhysics.cpp:22]
UnrealEditor_Engine
UnrealEditor_AnimGraphRuntime
UnrealEditor_KawaiiPhysics!FAnimNode_KawaiiPhysics::Initialize_AnyThread() [F:\Github\KawaiiPhysics\Plugins\KawaiiPhysics\Source\KawaiiPhysics\Private\AnimNode_KawaiiPhysics.cpp:22]
UnrealEditor_Engine
UnrealEditor_AnimGraphRuntime
UnrealEditor_KawaiiPhysics!FAnimNode_KawaiiPhysics::Initialize_AnyThread() [F:\Github\KawaiiPhysics\Plugins\KawaiiPhysics\Source\KawaiiPhysics\Private\AnimNode_KawaiiPhysics.cpp:22]
UnrealEditor_Engine
UnrealEditor_AnimGraphRuntime
UnrealEditor_KawaiiPhysics!FAnimNode_KawaiiPhysics::Initialize_AnyThread() [F:\Github\KawaiiPhysics\Plugins\KawaiiPhysics\Source\KawaiiPhysics\Private\AnimNode_KawaiiPhysics.cpp:22]
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_ControlRig
UnrealEditor_Engine
UnrealEditor_ControlRig
UnrealEditor_ControlRig
UnrealEditor_ControlRig
UnrealEditor_ControlRig
UnrealEditor_MovieScene
UnrealEditor_MovieScene
UnrealEditor_MovieScene
UnrealEditor_MovieScene
UnrealEditor_MovieScene
UnrealEditor_MovieScene
UnrealEditor_MovieScene
UnrealEditor_MovieScene
UnrealEditor_Sequencer
UnrealEditor_Sequencer
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
kernel32
ntdll

Is kawaii physics not compatible with control rig? Is there any workaround? Using UE 5.02

@pafuhana1213
Copy link
Owner

Hi, sorry for my late reply...
Hmm, I have tried to repro this issue, but I can't found any crash.
Would you please how to repro it?

thanks

@endyrare
Copy link
Author

endyrare commented Dec 7, 2022 via email

@endyrare
Copy link
Author

endyrare commented Dec 15, 2022 via email

@eatmylazer
Copy link

eatmylazer commented Dec 20, 2022

I've faced this problem too @pafuhana1213 when I was dealing with the exact same thing. This was instantaneously happening after adding a control to something that had kawaiiphysics, compiling the Ctrl Rig and trying to run it in sequencer. It completely kills the engine as long as it has any control rig attached to something that has kawaii.

Try to apply a Distribute rotation node into a skirt with kawaii, it might reproduce the bug.

I hope this information helps. Merry Christmas!

@Heeju-Kim-Bloodlust
Copy link

Heeju-Kim-Bloodlust commented Jan 2, 2023

Hello, here's a gif reproducing it. https://gyazo.com/fdba52f0a95f0dd235658cc248c0bc80 it happens when you have the animation blueprint selected and you add in the control rig asset through the level sequence.

On Wed, Dec 7, 2022 at 6:19 PM Endy Rare @.> wrote: Hello! Thank you so much for replying! I would absolutely LOVE if i can use kawaii physics in conjunction with control rig, but as you already know it crashes. Ill be sending you a video reproducing the crash as soon as possible. I really appreciate that you got back to me! ~Andy On Sat, Dec 3, 2022 at 4:49 AM pafuhana1213 @.> wrote: > Hi, sorry for my late reply... > Hmm, I have tried to repro this issue, but I can't found any crash. > Would you please how to repro it? > > thanks > > — > Reply to this email directly, view it on GitHub > <#56 (comment)>, > or unsubscribe > https://github.com/notifications/unsubscribe-auth/AQ3ILBTFWPYVKDCFPGJ7AKDWLMJRHANCNFSM5ZKEZECQ > . > You are receiving this because you authored the thread.Message ID: > @.***> >

I've been facing similar problem.

Have you ever tried to compile the ABP (or post-process ABP on the mesh) which is causing the trouble? I'm pretty sure that the compiling causes the same crash.

If you put Kawaii-Physics node(s) in an animation layer in the ABP, that's the cause of the crash. You don't face the same problem in UE 5.0.3

Solution is quite simple.

Delete

InitializeBoneReferences(RequiredBones);

in FAnimNode_KawaiiPhysics::Initialize_AnyThread()

Or if you're not a programmer,

GET KAWAII nodes out of the animation layer. Place them in the main anim graph

For the record, AnimNode_AnimDynamics has the same problem.

pafuhana1213 pushed a commit that referenced this issue May 27, 2023
Fix Issue : PlanarLimits does not work if set driving bone none.
@pafuhana1213
Copy link
Owner

Hi guys,

I haven't been able to reproduce this issue yet, but I think the method suggested by @Heeju-Kim-Bloodlust is great, so I committed it.
d6ef1ed
If it happens again, please reopen this thread. Also, it would be great if you could provide detailed steps to reproduce.
Thanks!

@Sankizar
Copy link

Hi,

I'm not a professional, and not really good with code. I have the last version of the plugin, but I still have the crash when I trie to use it with a control rig. Have you a solution or have I missed something?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants