WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   PTR General Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=172)
-   -   Edit Mode taints easily (https://www.wowinterface.com/forums/showthread.php?t=59244)

sirpucna 10-03-22 08:47 AM

Edit Mode taints easily
 
I do something as simple as
CHAT_TAB_HIDE_DELAY = 0

soon as i hit "Edit Mode" in the 10.x client it taints.
Code:

[ADDON_ACTION_FORBIDDEN] AddOn 'Test' tried to call the protected function 'ClearTarget()

Xrystal 10-03-22 09:27 AM

Yeah, most of my addons have that problem. So far only one addon doesn't do it ( or didn't a few patches back on PTR.

I think as long as you do not change any of the Blizzard frames and it seems variables there is no error.

The Options frame also has issues with certain addons being active. I haven't tied it down to anything specific yet, but thought it was linked to a custom option frame that bugsack has or just the simple use of saved variables.

*runs off to check that one addon that doesn't break*

Yep, it still doesn't break the edit mode or options access.
Here is a link to it : https://drive.google.com/drive/folde...28?usp=sharing

The only thing it doesn't do that nUI does ( which causes the issues ) are reparenting Blizzard frames.

Once I get nUI working reasonable well ( other than these error messages ) I'll be starting on my other addons so I am sure I'll find a mixture of ones that may work or not work without those errors.

prof17 10-03-22 09:39 AM

Similar issue used to be on Classic for a long time - the "Enter Battleground" and "Leave Guild" buttons wouldn't work if you had any addon installed. They even added an arrow pointing to the minimap icon captioned "Use this if they try to blame addons" to one of the common libraries, it'd pop out when you were ready to enter BG.

Gello 10-03-22 04:46 PM

I'm finding just using the new settings panel causes taint.

1. Make an addon with this one line: Settings.RegisterAddOnCategory(Settings.RegisterCanvasLayoutCategory(CreateFrame("Frame"), "OptionsTest"))
2. Disable all addons but the addon with this one line.
3. Go into options.
4. Turn on or off Sticky Targeting or make any change to a default setting.
5. Close options to get the following:



It's kinda frustrating.

Fizzlemizz 10-03-22 05:43 PM

But they've got three maybe four weeks to get it all sorted. What could possibly go wrong :)

I can't get a Paladin character to generate any Holy power icons at all except by changing specs then woohoo, full set of runes that I can't expend.

Xrystal 10-03-22 08:48 PM

Quote:

Originally Posted by Gello (Post 341146)
I'm finding just using the new settings panel causes taint.

1. Make an addon with this one line: Settings.RegisterAddOnCategory(Settings.RegisterCanvasLayoutCategory(CreateFrame("Frame"), "OptionsTest"))
2. Disable all addons but the addon with this one line.
3. Go into options.
4. Turn on or off Sticky Targeting or make any change to a default setting.
5. Close options to get the following:



It's kinda frustrating.

Yeah, that is one my mage portal addon is making a fuss about. So it's another one to figure out.

Xrystal 10-07-22 07:15 PM

Quote:

Originally Posted by Fizzlemizz (Post 341150)
But they've got three maybe four weeks to get it all sorted. What could possibly go wrong :)

I can't get a Paladin character to generate any Holy power icons at all except by changing specs then woohoo, full set of runes that I can't expend.

Looks like those changes have hit the PTR now .. Having problems getting the power bars to show in nUI.

Fizzlemizz 10-07-22 08:54 PM

The class bars for Beta seem to be working yesterday after the update both stock UI and in DUF.

Unsure about the PTR but I suspect it will catch up for these at least.

Xrystal 10-07-22 09:17 PM

nah it's an nUI thing. What worked before the update no longer works due to the PlayerContainerFrame which I wasn't aware of and nUI didn't know about, before I could just reparent to my frame and move that but now I have to do two reparents. I've got it pretty much working now but doing some testing on each of my classes to make sure there aren't additional frames added into the mix.

clicket 10-09-22 11:05 PM

Yeah, frustrating is an understatement. I'm not sure it's worth trying to develop for 10.0 atm. I'm certainly holding off. The taintLog is pretty funny though.

Xrystal 10-15-22 08:24 AM

I've finally managed to tie down the taint between nUI and EditMode

2 files nUI has seem to trigger the error message.
nUI_InfoPanel.CombatLog.lua
nUI_InfoPanel.BattlefieldMiniMap.lua

Both of these files reparent the Blizzard frame into an infopanel on nUI's dashboard frame.

When I have bugsack/buggrabber active I get the following error whenever I go into edit mode and entering editmode. Removing these frames from nUI's file collection the error goes away. Now, whether the issue is with the Blizzard frames being still in flux for the expansion or if there is a problem with nUI's code for the particular files I can't say as there is no trail back to a line in any file in nUI itself.

Lua Code:
  1. ["message"] = "[ADDON_ACTION_FORBIDDEN] AddOn 'nUI' tried to call the protected function 'ClearTarget()'.",
  2.             ["time"] = "2022/10/15 11:56:14",
  3.             ["stack"] = "[string \"@Interface/AddOns/!BugGrabber/BugGrabber.lua\"]:519: in function <Interface/AddOns/!BugGrabber/BugGrabber.lua:519>\n[string \"=[C]\"]: in function `ClearTarget'\n[string \"@Interface/FrameXML/EditModeManager.lua\"]:1479: in function `ResetTargetAndFocus'\n[string \"@Interface/FrameXML/EditModeManager.lua\"]:1514: in function `RefreshTargetAndFocus'\n[string \"@Interface/FrameXML/EditModeManager.lua\"]:1432: in function `OnEditModeEnter'\n[string \"@Interface/FrameXML/EditModeManager.lua\"]:171: in function `EnterEditMode'\n[string \"@Interface/FrameXML/EditModeManager.lua\"]:193: in function <Interface/FrameXML/EditModeManager.lua:191>\n[string \"=[C]\"]: in function `Show'\n[string \"@Interface/FrameXML/UIParent.lua\"]:2828: in function `SetUIPanel'\n[string \"@Interface/FrameXML/UIParent.lua\"]:2632: in function `ShowUIPanel'\n[string \"@Interface/FrameXML/UIParent.lua\"]:2536: in function <Interface/FrameXML/UIParent.lua:2532>\n[string \"=[C]\"]: in function `SetAttribute'\n[string \"@Interface/FrameXML/UIParent.lua\"]:3134: in function `ShowUIPanel'\n[string \"*GameMenuFrame.xml:94_OnClick\"]:2: in function <[string \"*GameMenuFrame.xml:94_OnClick\"]:1>",

Fizzlemizz 10-15-22 09:15 AM

There are several reports here and Blizz. are aware of the problems. Maybe it will be fixed for pre-patch, then again...

Xrystal 10-16-22 06:11 PM

Talk about inconsistent.

Just logged in with the addon again with those files commented out .. and I'm getting the error again.

Log Out to character selection
Edit the files back in
Log In - error
Log Out to character selection
Edit the files back out
Log In - no error
Log Out to character selection
Log In - no error
Log Out to character selection
Log In - no error
Log all the way out
Log In - no error

Hmm
The only thing different before the error started again was that I had my settings test addon activated.
Maybe a reload after removing the addon is not enough to remove the taint.

No Error on Edit Mode
Activate tainted addon and reload
Cause taint to happen
Deactivate addon and reload
No Error on Edit Mode

Nope that isn't the reason

Log out to character selection
Activate tainted addon and log in
Cause taint to happen
Deactivate addon and reload
No Error on Edit Mode

Nope not that .. weird

The plot thickens

sirpucna 10-16-22 06:34 PM

i had similar problems, inconsistency in taints.

i've found that any manipulation of the chat frame, no matter how small always leads to Edit Mode causing taints, if it doesn't right away, interacting with the chat frame using the mouse scroll usually does the trick.


All times are GMT -6. The time now is 12:54 PM.

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