Is anyone able to reproduce this crash bug?
Is it just me or does showing a frame from within a texture's OnEnter cause anyone else's client to crash to desktop if you /reload?
The following XML creates a small dialog frame with a left and right arrow.
Code:
<Ui> |
Historically, regions (textures and fontstrings) don't support scripts. Though looking at the UI hierarchy, it appears they now inherit from an object type that does.
Similarly, they do have :SetScript(), :GetScript(), and :HasScript() functions. There's no documentation I'm aware of for their support specifically, so this may warrant some probing around. |
If you comment out the
Code:
TestCrashBugChild:Show() Edit: If you don't show TestCrashBugChild it seems to work ok but if you show it (or have it shown by default), it will crash even without setting the text. |
Thanks for testing to confirm. Yeah even if the frame has no user-defined elements (<Frame parentKey="TestCrashBugChild"/>) it seems to crash for me. I can do all sorts of stuff in the OnEnter, but showing another frame seems to cause the crash. And if the frame gets hidden, like in the OnLeave, it seems fine.
I'm very excited to use these new script handler-enabled textures. I hope this bug (and the issues with textures not inheriting script handlers unless any are explicitly defined in XML) are sorted out soon. One of my addons has an intrinsic button template called RematchCompositeButton that I've been using for some time that makes textures into buttons with their own OnEnter/OnLeave/OnClick behaviors. While the mouse is over a button it periodically checks if the mouse is over a texture in the ARTWORK layer and triggers a callback if the texture was registered for one. (This was to solve a crash issue on Macs due to having too many buttons ontop of buttons in my lists.) Blizzard's implementation is better since the parent button also gets an OnLeave and such, promoting the textures to actual button/frame behavior. GetMouseFocus() even returns the texture under the mouse instead of the button which is kind of wild. |
I didn't test whether it was the actual frame being shown or just the child FontString (or a combination of the two). I did resize the TestCrashBugChild frame and fontstring to make sure they weren't overlapping the texture with OnEnter/OnLeave when shown but that didn't make a differnce.
|
The crash bug appears fixed on 10.0.5 PTR.
Still problems inheriting texture script handlers, but that's a far less serious issue. |
All times are GMT -6. The time now is 03:42 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI