WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Legion Beta archived threads (https://www.wowinterface.com/forums/forumdisplay.php?f=177)
-   -   texture:SetMask(mask) crashes client in certain scenario (https://www.wowinterface.com/forums/showthread.php?t=53492)

lightspark 05-26-16 02:04 AM

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.

ceylina 05-26-16 07:28 AM

Debating whether to reply or not because I was finding that both having a minimap mod and moving the default buttons was doing something that caused the error I put in your previous reply. Not modifying the minimap leaves my game stable so far. My questioning textures was off so thank you for digging into this. Not 100% sure it's exactly the trigger you described but I do know it is button manipulation or at least moving certain minimap buttons.

It's going to take me some more tracking down exactly what and when I get that error.

Predicate 05-26-16 02:50 PM

Not sure if my input is useful here, but I've had the same assertion failure (same line, same expression) seemingly caused by non-UI textures. However, I play in Wine on Linux, so I was reluctant to report it until I had confirmed it on Windows. That said, I experienced this crash frequently in graphically intensive areas while using the default UI only. In parts of Aszuna like Azurewing Repose, I would crash every few minutes, each time with the same error message in the OP. I suspect that the underlying issue, while it can be triggered by specific UI operations, can potentially affect any texture in the game.

Cairenn 05-26-16 06:26 PM

Hey lightspark, I've been asked to pass along thanks to your for your 100% reproducible case. One of the Blizz engine programmers has been trying to track it down for a while now and the info you provided will help tremendously. Good job! :)

lightspark 05-26-16 09:30 PM

Quote:

Originally Posted by Cairenn (Post 315250)
Hey lightspark, I've been asked to pass along thanks to your for your 100% reproducible case. One of the Blizz engine programmers has been trying to track it down for a while now and the info you provided will help tremendously. Good job! :)

Yay :banana: I'm always glad to help :D


All times are GMT -6. The time now is 08:32 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI