Thread Tools Display Modes
05-26-16, 08:24 PM   #1
Predicate
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 18
Using Animation:SetOrder() to re-order animations causes a crash on reload

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:
  1. local ag = CreateFrame("Frame"):CreateAnimationGroup()
  2. local Fade = ag:CreateAnimation("Alpha")
  3. local Scale = ag:CreateAnimation("Scale")
  4.  
  5. Scale:SetOrder(1)
 
 

WoWInterface » Site Forums » Archived Beta Forums » Legion Beta archived threads » Using Animation:SetOrder() to re-order animations causes a crash on reload


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off