Thread Tools Display Modes
Prev Previous Post   Next Post Next
05-26-16, 02:04 AM   #1
lightspark
A Rage Talon Dragon Guard
 
lightspark's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 341
texture:SetMask(mask) crashes client in certain scenario

K, made a separate thread for this bug.

Lua Code:
  1. local frame = CreateFrame("Frame", "TEST_FRAME", UIParent)
  2. frame:SetSize(64, 64)
  3. frame:SetPoint("CENTER")
  4.  
  5. Minimap:SetParent(frame)
  6.  
  7. local texture = GameTimeFrame:CreateTexture("TEST_TEXTURE", "OVERLAY")
  8. texture:SetTexture("Interface\\BUTTONS\\WHITE8X8")
  9. texture:SetPoint("TOPLEFT", 2, -2)
  10. texture:SetPoint("BOTTOMRIGHT", -2, 2)
  11.  
  12. function TestFunc(t)
  13.     t:SetMask("Interface\\Minimap\\UI-Minimap-Background")
  14. end
  15.  
  16. C_Timer.NewTicker(10, function() TestFunc(texture) end)

This code will 100% cause ERROR#0.


Created texture is a region of GameTimeFrame (calendar button, child of Minimap frame), if I DO NOT re-parent Minimap, code doesn't cause any issues, however, if I re-parent Minimap to a new frame, this code will crash client.

-- edit

Updated code. It happens on the first call, I thought it was happening on the second one, because during the first call texture was hidden, duh. Texture has to be shown for bug to occur.
__________________

Last edited by lightspark : 05-26-16 at 02:36 AM. Reason: updated...
 
 

WoWInterface » Site Forums » Archived Beta Forums » Legion Beta archived threads » texture:SetMask(mask) crashes client in certain scenario


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