Thanks to MunkDev for initially discovering the bug
here. He kindly provided his ConsolePort code to me for isolation of the crash.
Creating animations in an AnimationGroup, and then changing their order with :SetOrder(), seems to break the client. Upon reloading the UI, the game will crash with a memory allocation error of some kind. As a workaround, always create animations in the order they are to be played (:SetOrder() calls are safe if they will have no effect).
A simple test case can reproduce the bug 100% of the time (remember to /reload after loading this addon):
Test.toc
Code:
## Interface: 70000
test.lua
test.lua
Lua Code:
local ag = CreateFrame("Frame"):CreateAnimationGroup()
local Fade = ag:CreateAnimation("Alpha")
local Scale = ag:CreateAnimation("Scale")
Scale:SetOrder(1)