Vertex Animation Crashing UE4

   2968   4   1
User Avatar
Member
10 posts
Joined: Nov. 2017
Offline
Hey guys!!

I'm trying to do a vertex animation test inside Unreal 4 following mamoniem's tips. It's a FLUID animation, so I set the proper method and export the mesh (using GameDev Vertex Animation). I can import both .fbx and .exr files inside the engine without a problem.


But when I copy/paste the Shader Code inside Ue4's material, it simply crashes and shut down the engine without any error message. If I ctrl+v after that I can see the log below.


Funny thing is, If I copy/paste another type of Shader Code (Soft, Rigid, Sprite) the thing works and Unreal build the nodes. The problem only occurs when I try to paste the Fluid one.



Fatal error:
Cast of nullptr to MaterialGraph failed


0x00000000944DA388 KERNELBASE.dll!UnknownFunction
0x00000000698D76D4 UE4Editor-ApplicationCore.dll!UnknownFunction
0x0000000037B0330B UE4Editor-Core.dll!UnknownFunction
0x0000000037A947F9 UE4Editor-Core.dll!UnknownFunction
0x0000000060B4D812 UE4Editor-CoreUObject.dll!UnknownFunction
0x0000000033CB7858 UE4Editor-UnrealEd.dll!UnknownFunction
0x0000000033CFE251 UE4Editor-UnrealEd.dll!UnknownFunction
0x0000000033847D2D UE4Editor-UnrealEd.dll!UnknownFunction
0x0000000033847E4B UE4Editor-UnrealEd.dll!UnknownFunction
0x000000003384924D UE4Editor-UnrealEd.dll!UnknownFunction
0x0000000033847C6B UE4Editor-UnrealEd.dll!UnknownFunction
0x0000000033847E4B UE4Editor-UnrealEd.dll!UnknownFunction
0x000000003393769D UE4Editor-UnrealEd.dll!UnknownFunction
0x000000003374D3B3 UE4Editor-UnrealEd.dll!UnknownFunction
0x000000004A1B25F4 UE4Editor-MaterialEditor.dll!UnknownFunction
0x000000004A1B246A UE4Editor-MaterialEditor.dll!UnknownFunction
0x000000004A16A2B1 UE4Editor-MaterialEditor.dll!UnknownFunction
0x000000004A16D616 UE4Editor-MaterialEditor.dll!UnknownFunction
0x00000000413B9636 UE4Editor-Slate.dll!UnknownFunction
0x00000000413F83A0 UE4Editor-Slate.dll!UnknownFunction
0x000000002F631D7D UE4Editor-GraphEditor.dll!UnknownFunction
0x00000000413A63A1 UE4Editor-Slate.dll!UnknownFunction
0x000000004137700E UE4Editor-Slate.dll!UnknownFunction
0x0000000041378C16 UE4Editor-Slate.dll!UnknownFunction
0x00000000413F988C UE4Editor-Slate.dll!UnknownFunction
0x00000000413EBEE8 UE4Editor-Slate.dll!UnknownFunction
0x00000000698CE28A UE4Editor-ApplicationCore.dll!UnknownFunction
0x00000000698C1A48 UE4Editor-ApplicationCore.dll!UnknownFunction
0x00000000698D03EC UE4Editor-ApplicationCore.dll!UnknownFunction
0x00000000698BD5A9 UE4Editor-ApplicationCore.dll!UnknownFunction
0x0000000097896CC1 USER32.dll!UnknownFunction
0x0000000097896693 USER32.dll!UnknownFunction
0x00000000698D1516 UE4Editor-ApplicationCore.dll!UnknownFunction
0x0000000031F450C8 UE4Editor.exe!UnknownFunction
0x0000000031F55430 UE4Editor.exe!UnknownFunction
0x0000000031F554AA UE4Editor.exe!UnknownFunction
0x0000000031F62379 UE4Editor.exe!UnknownFunction
0x0000000031F63D57 UE4Editor.exe!UnknownFunction
0x0000000097B83034 KERNEL32.DLL!UnknownFunction
0x0000000097CD1431 ntdll.dll!UnknownFunction
0x0000000097CD1431 ntdll.dll!UnknownFunction


Did anyone have the same issue?
Edited by GILPStudio - Aug. 2, 2018 16:28:05
User Avatar
Member
394 posts
Joined: May 2017
Offline
I've tested copy and pasting the material code in 4.19 and 4.20 without any problems. What version of UE4 are you running?
User Avatar
Member
4 posts
Joined: Sept. 2018
Offline
I'm having the exact issue described above in Unreal 4.24.3. I'm using Houdini 18.0.348. After pasting the code into a new material the engine hangs for a second and then crashes with no error. I've tried multiple times with different fluid sims and had the same issue every time while soft/rigid shader code seems to work fine. Has there been any luck in recreating or fixing this?
Edited by Mortensensei - March 5, 2020 21:00:48
User Avatar
Member
394 posts
Joined: May 2017
Offline
Mortensensei
I'm having the exact issue described above in Unreal 4.24.3. I'm using Houdini 18.0.348. After pasting the code into a new material the engine hangs for a second and then crashes with no error. I've tried multiple times with different fluid sims and had the same issue every time while soft/rigid shader code seems to work fine. Has there been any luck in recreating or fixing this?
Hi. Are you pasting the code into a material or material function? The latest version of the VAT shader code should be pasted into a material function so that it's easier to reuse it in materials.

Also, which version of the SideFX Labs tools are you running? Have you tried updating to latest?
User Avatar
Member
4 posts
Joined: Sept. 2018
Offline
Hey, thanks for the reply! I was using Build 391 for the SideFX Labs tools. Working in a clean project fixed the crashes when pasting into a material so I went back to the original project and pasted into a material function and the editor didn't crash! The shader code output was doubled in UE4, so there were two stacked copies of every node but after reverting back to the current production build (348 for me), the export worked as expected. Thank you for your help!
  • Quick Links