Crash when SetAnimation() is called
Hi, I Updated my project from ue 4.17 to 4.22.1 everything worked fine in the editors viewport when playing the game, but if i start the game in standalone mode or package it it will crash every time after ca 2min, with a access violation error which is caused by SetAnimation(). I use this method to switch between two UAnimationAssets, which works fine but after two minutes it crashs.
asked May 12 '19 at 04:17 PM in Bug Reports
Ok thanks for the help i marked both of my UAnimationAssets as UPROPERTY() and now it works. So it really was the garabage collector. But why did it remove those assets in 4.22 and not in the Engine version 4.17, also shouldn't the if (asset != NULL) part return true then?
But still thanks a lot.
Looks like a garbage collector related problem.
Could you show the "weaponVisible" variable declaration ? Same for the "weaponConfig", "emptyAnimation" and "shotAnimation"
answered May 12 '19 at 06:33 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here