Thread Tools Display Modes
Unread 04-18-10, 01:38 PM   #1
Diakonran
A Defias Bandit
Join Date: Mar 2010
Posts: 2
LUA Error

Event happens at login. nUI party frames do not load. "Stances" do not load

Date: 2010-04-18 14:35:17
ID: 249
Error occured in: Global
Count: 1
Message: ..\FrameXML\FloatingChatFrame.lua line 784:
attempt to perform arithmetic on a nil value
Debug:
[C]: ?
..\FrameXML\FloatingChatFrame.lua:784: FCF_OnUpdate()
[string "*:OnUpdate"]:1:
[string "*:OnUpdate"]:1
AddOns:
Swatter, v3.1.14 (<%codename%>)
Altoholic, v3.3.002
AtlasLoot, vv5.10.01
BonusScanner, v5.3
DataStore, v3.3.001
DataStoreAchievements, v3.3.001
DataStoreAuctions, v3.3.001
DataStoreCharacters, v3.3.001
DataStoreContainers, v3.3.001
DataStoreCrafts, v3.3.001
DataStoreCurrencies, v3.3.001
DataStoreInventory, v3.3.001
DataStoreMails, v3.3.001
DataStorePets, v3.3.001
DataStoreQuests, v3.3.001
DataStoreReputations, v3.3.001
DataStoreSkills, v3.3.001
DataStoreSpells, v3.3.001
DataStoreStats, v3.3.001
DataStoreTalents, v3.3.001
DBMBurningCrusade, v
DBMCore, v
DebugLib, v5.1.DEV.130
FeralbyNight, v3.244
GearScore, v3.1.15 - Release
Guild2Guild, v7.5.9
HealBot, v3.3.3.3
nUI, v5.06.12 (Plus)
nUIConfigGUI, v30300.1
nUIInfoPanelStats, v1.02.00
Omen, v3.0.9
Recount, v
SilverDragon, vv2.3.4
Stubby, v5.7.4568 (KillerKoala)
BlizRuntimeLib_enUS v3.3.3.30300 <us>
(ck=3a0)
Attached Thumbnails
Click image for larger version

Name:	WoWScrnShot_041810_143747.jpg
Views:	614
Size:	101.6 KB
ID:	4160  
Diakonran is offline  
Unread 04-18-10, 02:00 PM   #2
Chmee
A Molten Giant
Join Date: Dec 2006
Posts: 960
This is a known bug. When it happens, type /nui rl<return>

Even though you probably can't see what you're typing on the screen, that should fix it.
Chmee is offline  
Unread 04-18-10, 02:04 PM   #3
Diakonran
A Defias Bandit
Join Date: Mar 2010
Posts: 2
I have tried. The error continues to occur.

it is not just the Chat Frames. It is Party Frames, Druid Forms, and DK Presences.
Diakonran is offline  
Unread 04-18-10, 02:38 PM   #4
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
A '/nui rl' should fix that problem when it occurs... and it's "not just the chat frame" for everyone. When that error occurs, it "breaks" the UI layout process and that causes pretty much all of the frames to break. Usually the reload (without logging out) fixes it.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
spiel2001 is offline  
Unread 04-18-10, 09:28 PM   #5
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,047
Seeing as this is the latest thread on this subject I thought I would put it here.

I just rigged up a mini addon that checks the variables prior to the reported errors in each of the start up events... of course my testing so far has come up with no errors .. whatsoever *sigh*... at present I have commented out the ReloadUI commands as I want to see if I have managed to trap the error tests properly and thus reports the errors prior to the error report itself so that an auto reloadui would mean people would not need to do it of course hopefully 1 or 2 reloads would be all thats needed .. rofl .. I'll have to test that out next time I get repeatable errors.

It validates the following values which seem to be fundamental to the errors reported :

Existence of nUI_TopBars table and its Anchors table.
Existence of dimensions to the ChatFrames.
Existence of nUI_Dashboard table and its Anchors table.

The moment it comes across an unexpected value it reports it with a date/time based table and documents certain values in relation to it which will hopefully help identify when it first kicks up a fuss.

It is currently checking the following Events which are supposed to be part of the loading process. However, data prior to the saved variables loading process may be overwritten, seeing as we are not sure at which point that is it is hard to say.

ADDON_LOADED
SPELLS_CHANGED
PLAYER_ENTERING_WORLD
PLAYER_LOGIN
PLAYER_ALIVE
VARIABLES_LOADED

I've also included a latency check in case that becomes a common factor in error occurences..

It generates 13kb of WTF data each start up test run so you may want to delete it every so often Although I called it ErrorFix it isn't really a fix rofl but anyone that wishes to use it for a while perhaps a comparison of the results will shed some common light on the subject. If it seems to identify the errors properly then uncommented the ReloadUI lines will be enough for it to trigger the reload automatically when those errors occur.



Here's an example of the results from my own test runs:
Code:
nUI_ErrorFix_Data = {
	["At 04:08:20 on 19, April, 2010 "] = {
		["ADDON_LOADED"] = {
			["Tests"] = {
				["1"] = {
					["nUI_TopBars"] = {
						["Exists"] = true,
						["nUI_TopBars.Anchor"] = {
							["Result"] = "OK",
							["Error"] = false,
							["Exists"] = true,
						},
					},
					["File"] = "nUI_MicroMenu.lua",
				},
				["3"] = {
					["nUI_Dashboard"] = {
						["Exists"] = true,
						["nUI_Dashboard.Anchor"] = {
							["Result"] = "OK",
							["Error"] = false,
							["Exists"] = true,
						},
					},
					["File"] = "nUI_XPBar.lua",
				},
				["2"] = {
					["ChatFrame5"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame4"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame7"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame3"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame2"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["File"] = "nUI_ChatFrame.lua",
					["ChatFrame6"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = 1,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame1"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = 1,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
				},
			},
			["Arg1"] = "Blizzard_TradeSkillUI",
			["Latency"] = {
				["DownloadUsage"] = 2.333034515380859,
				["Lag"] = 454,
				["UploadUsage"] = 0.01163386553525925,
			},
		},
	},
	["At 04:08:21 on 19, April, 2010 "] = {
		["PLAYER_ALIVE"] = {
			["Tests"] = {
				["1"] = {
					["nUI_TopBars"] = {
						["Exists"] = true,
						["nUI_TopBars.Anchor"] = {
							["Result"] = "OK",
							["Error"] = false,
							["Exists"] = true,
						},
					},
					["File"] = "nUI_MicroMenu.lua",
				},
				["3"] = {
					["nUI_Dashboard"] = {
						["Exists"] = true,
						["nUI_Dashboard.Anchor"] = {
							["Result"] = "OK",
							["Error"] = false,
							["Exists"] = true,
						},
					},
					["File"] = "nUI_XPBar.lua",
				},
				["2"] = {
					["ChatFrame5"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame4"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame7"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame3"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame2"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["File"] = "nUI_ChatFrame.lua",
					["ChatFrame6"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = 1,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame1"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = 1,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
				},
			},
			["Latency"] = {
				["DownloadUsage"] = 2.332579135894775,
				["Lag"] = 454,
				["UploadUsage"] = 0.01177166309207678,
			},
		},
	},
	["At 04:08:18 on 19, April, 2010 "] = {
		["ADDON_LOADED"] = {
			["Tests"] = {
				["1"] = {
					["nUI_TopBars"] = {
						["Exists"] = true,
						["nUI_TopBars.Anchor"] = {
							["Result"] = "OK",
							["Error"] = false,
							["Exists"] = true,
						},
					},
					["File"] = "nUI_MicroMenu.lua",
				},
				["3"] = {
					["nUI_Dashboard"] = {
						["Exists"] = true,
						["nUI_Dashboard.Anchor"] = {
							["Result"] = "OK",
							["Error"] = false,
							["Exists"] = true,
						},
					},
					["File"] = "nUI_XPBar.lua",
				},
				["2"] = {
					["ChatFrame5"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame4"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame7"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame3"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame2"] = {
						["Exists"] = true,
						["Result"] = "Reloading...",
						["isDocked"] = false,
						["DimensionsValid"] = false,
						["Error"] = true,
					},
					["File"] = "nUI_ChatFrame.lua",
					["ChatFrame6"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = 1,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame1"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = 1,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
				},
			},
			["Arg1"] = "Blizzard_BattlefieldMinimap",
			["Latency"] = {
				["DownloadUsage"] = 2.335074901580811,
				["Lag"] = 454,
				["UploadUsage"] = 0.01164403930306435,
			},
		},
	},
	["At 04:08:13 on 19, April, 2010 "] = {
		["ADDON_LOADED"] = {
			["Tests"] = {
				["1"] = {
					["nUI_TopBars"] = {
						["Exists"] = true,
						["nUI_TopBars.Anchor"] = {
							["Result"] = "OK",
							["Error"] = false,
							["Exists"] = true,
						},
					},
					["File"] = "nUI_MicroMenu.lua",
				},
				["3"] = {
					["nUI_Dashboard"] = {
						["Exists"] = true,
						["nUI_Dashboard.Anchor"] = {
							["Result"] = "OK",
							["Error"] = false,
							["Exists"] = true,
						},
					},
					["File"] = "nUI_XPBar.lua",
				},
				["2"] = {
					["ChatFrame5"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame4"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame7"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame3"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame2"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = 1,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["File"] = "nUI_ChatFrame.lua",
					["ChatFrame6"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame1"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = 1,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
				},
			},
			["Arg1"] = "SkadaThreat",
			["Latency"] = {
				["DownloadUsage"] = 2.304597854614258,
				["Lag"] = 454,
				["UploadUsage"] = 0.01157387252897024,
			},
		},
	},
	["At 04:08:14 on 19, April, 2010 "] = {
		["ADDON_LOADED"] = {
			["Tests"] = {
				["1"] = {
					["nUI_TopBars"] = {
						["Exists"] = true,
						["nUI_TopBars.Anchor"] = {
							["Result"] = "OK",
							["Error"] = false,
							["Exists"] = true,
						},
					},
					["File"] = "nUI_MicroMenu.lua",
				},
				["3"] = {
					["nUI_Dashboard"] = {
						["Exists"] = true,
						["nUI_Dashboard.Anchor"] = {
							["Result"] = "OK",
							["Error"] = false,
							["Exists"] = true,
						},
					},
					["File"] = "nUI_XPBar.lua",
				},
				["2"] = {
					["ChatFrame5"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame4"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame7"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame3"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame2"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = 1,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["File"] = "nUI_ChatFrame.lua",
					["ChatFrame6"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame1"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = 1,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
				},
			},
			["Arg1"] = "Xrystal_WatchFrame",
			["Latency"] = {
				["DownloadUsage"] = 2.304401874542236,
				["Lag"] = 454,
				["UploadUsage"] = 0.01157288812100887,
			},
		},
	},
	["At 04:08:17 on 19, April, 2010 "] = {
		["VARIABLES_LOADED"] = {
			["Tests"] = {
				["1"] = {
					["nUI_TopBars"] = {
						["Exists"] = true,
						["nUI_TopBars.Anchor"] = {
							["Result"] = "OK",
							["Error"] = false,
							["Exists"] = true,
						},
					},
					["File"] = "nUI_MicroMenu.lua",
				},
				["3"] = {
					["nUI_Dashboard"] = {
						["Exists"] = true,
						["nUI_Dashboard.Anchor"] = {
							["Result"] = "OK",
							["Error"] = false,
							["Exists"] = true,
						},
					},
					["File"] = "nUI_XPBar.lua",
				},
				["2"] = {
					["ChatFrame5"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame4"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame7"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame3"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame2"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = 1,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["File"] = "nUI_ChatFrame.lua",
					["ChatFrame6"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame1"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = 1,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
				},
			},
			["Latency"] = {
				["DownloadUsage"] = 2.303675174713135,
				["Lag"] = 454,
				["UploadUsage"] = 0.01156135182827711,
			},
		},
	},
}
Attached Files
File Type: zip nUI_ErrorFix.zip (1.5 KB, 593 views)
__________________
Xrystal is offline  
Unread 04-22-10, 10:00 AM   #6
Deimous
A Wyrmkin Dreamwalker
Join Date: Nov 2009
Posts: 50
I'm not sure which block you needed, but I got this data just now during a crash. Is it normal that these blocks write out of order? I've got earlier blocks of times above and below these blocks. Not sure if that's normal or not.

Code:
	["At 10:49:11 on 22, April, 2010 "] = {
		["ADDON_LOADED"] = {
			["Tests"] = {
				["1"] = {
					["nUI_TopBars"] = {
						["Exists"] = true,
						["nUI_TopBars.Anchor"] = {
							["Result"] = "OK",
							["Error"] = false,
							["Exists"] = true,
						},
					},
					["File"] = "nUI_MicroMenu.lua",
				},
				["3"] = {
					["nUI_Dashboard"] = {
						["Exists"] = true,
						["nUI_Dashboard.Anchor"] = {
							["Result"] = "OK",
							["Error"] = false,
							["Exists"] = true,
						},
					},
					["File"] = "nUI_XPBar.lua",
				},
				["2"] = {
					["ChatFrame5"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame4"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = 1,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame7"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame3"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = 1,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame2"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["File"] = "nUI_ChatFrame.lua",
					["ChatFrame6"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame1"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = 1,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
				},
			},
			["Arg1"] = "Enchantrix",
			["Latency"] = {
				["DownloadUsage"] = 3.364525079727173,
				["Lag"] = 0,
				["UploadUsage"] = 0.04804369062185288,
			},
		},
		["SPELLS_CHANGED"] = {
			["Tests"] = {
				["1"] = {
					["nUI_TopBars"] = {
						["Exists"] = true,
						["nUI_TopBars.Anchor"] = {
							["Result"] = "OK",
							["Error"] = false,
							["Exists"] = true,
						},
					},
					["File"] = "nUI_MicroMenu.lua",
				},
				["3"] = {
					["nUI_Dashboard"] = {
						["Exists"] = true,
						["nUI_Dashboard.Anchor"] = {
							["Result"] = "OK",
							["Error"] = false,
							["Exists"] = true,
						},
					},
					["File"] = "nUI_XPBar.lua",
				},
				["2"] = {
					["ChatFrame5"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame4"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = 1,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame7"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame3"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = 1,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame2"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["File"] = "nUI_ChatFrame.lua",
					["ChatFrame6"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame1"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = 1,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
				},
			},
			["Latency"] = {
				["DownloadUsage"] = 3.396366357803345,
				["Lag"] = 0,
				["UploadUsage"] = 0.04778053984045982,
			},
		},
	},
	["At 10:49:13 on 22, April, 2010 "] = {
		["PLAYER_LOGIN"] = {
			["Tests"] = {
				["1"] = {
					["nUI_TopBars"] = {
						["Exists"] = true,
						["nUI_TopBars.Anchor"] = {
							["Result"] = "OK",
							["Error"] = false,
							["Exists"] = true,
						},
					},
					["File"] = "nUI_MicroMenu.lua",
				},
				["3"] = {
					["nUI_Dashboard"] = {
						["Exists"] = true,
						["nUI_Dashboard.Anchor"] = {
							["Result"] = "OK",
							["Error"] = false,
							["Exists"] = true,
						},
					},
					["File"] = "nUI_XPBar.lua",
				},
				["2"] = {
					["ChatFrame5"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame4"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = 1,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame7"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame3"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = 1,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame2"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["File"] = "nUI_ChatFrame.lua",
					["ChatFrame6"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame1"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = 1,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
				},
			},
			["Latency"] = {
				["DownloadUsage"] = 3.172769784927368,
				["Lag"] = 0,
				["UploadUsage"] = 0.04815545678138733,
			},
		},
		["PLAYER_ENTERING_WORLD"] = {
			["Tests"] = {
				["1"] = {
					["nUI_TopBars"] = {
						["Exists"] = true,
						["nUI_TopBars.Anchor"] = {
							["Result"] = "OK",
							["Error"] = false,
							["Exists"] = true,
						},
					},
					["File"] = "nUI_MicroMenu.lua",
				},
				["3"] = {
					["nUI_Dashboard"] = {
						["Exists"] = true,
						["nUI_Dashboard.Anchor"] = {
							["Result"] = "OK",
							["Error"] = false,
							["Exists"] = true,
						},
					},
					["File"] = "nUI_XPBar.lua",
				},
				["2"] = {
					["ChatFrame5"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame4"] = {
						["Exists"] = true,
						["Result"] = "Reloading...",
						["isDocked"] = 1,
						["DimensionsValid"] = false,
						["Error"] = true,
					},
					["ChatFrame7"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame3"] = {
						["Exists"] = true,
						["Result"] = "Reloading...",
						["isDocked"] = 1,
						["DimensionsValid"] = false,
						["Error"] = true,
					},
					["ChatFrame2"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["File"] = "nUI_ChatFrame.lua",
					["ChatFrame6"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame1"] = {
						["Exists"] = true,
						["Result"] = "Reloading...",
						["isDocked"] = 1,
						["DimensionsValid"] = false,
						["Error"] = true,
					},
				},
			},
			["Latency"] = {
				["DownloadUsage"] = 3.164485454559326,
				["Lag"] = 0,
				["UploadUsage"] = 0.04899114742875099,
			},
		},
		["ADDON_LOADED"] = {
			["Tests"] = {
				["1"] = {
					["nUI_TopBars"] = {
						["Exists"] = true,
						["nUI_TopBars.Anchor"] = {
							["Result"] = "OK",
							["Error"] = false,
							["Exists"] = true,
						},
					},
					["File"] = "nUI_MicroMenu.lua",
				},
				["3"] = {
					["nUI_Dashboard"] = {
						["Exists"] = true,
						["nUI_Dashboard.Anchor"] = {
							["Result"] = "OK",
							["Error"] = false,
							["Exists"] = true,
						},
					},
					["File"] = "nUI_XPBar.lua",
				},
				["2"] = {
					["ChatFrame5"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame4"] = {
						["Exists"] = true,
						["Result"] = "Reloading...",
						["isDocked"] = 1,
						["DimensionsValid"] = false,
						["Error"] = true,
					},
					["ChatFrame7"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame3"] = {
						["Exists"] = true,
						["Result"] = "Reloading...",
						["isDocked"] = 1,
						["DimensionsValid"] = false,
						["Error"] = true,
					},
					["ChatFrame2"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["File"] = "nUI_ChatFrame.lua",
					["ChatFrame6"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame1"] = {
						["Exists"] = true,
						["Result"] = "Reloading...",
						["isDocked"] = 1,
						["DimensionsValid"] = false,
						["Error"] = true,
					},
				},
			},
			["Arg1"] = "Blizzard_BattlefieldMinimap",
			["Latency"] = {
				["DownloadUsage"] = 4.767348289489746,
				["Lag"] = 0,
				["UploadUsage"] = 0.06200460717082024,
			},
		},
		["PLAYER_ALIVE"] = {
			["Tests"] = {
				["1"] = {
					["nUI_TopBars"] = {
						["Exists"] = true,
						["nUI_TopBars.Anchor"] = {
							["Result"] = "OK",
							["Error"] = false,
							["Exists"] = true,
						},
					},
					["File"] = "nUI_MicroMenu.lua",
				},
				["3"] = {
					["nUI_Dashboard"] = {
						["Exists"] = true,
						["nUI_Dashboard.Anchor"] = {
							["Result"] = "OK",
							["Error"] = false,
							["Exists"] = true,
						},
					},
					["File"] = "nUI_XPBar.lua",
				},
				["2"] = {
					["ChatFrame5"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame4"] = {
						["Exists"] = true,
						["Result"] = "Reloading...",
						["isDocked"] = 1,
						["DimensionsValid"] = false,
						["Error"] = true,
					},
					["ChatFrame7"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame3"] = {
						["Exists"] = true,
						["Result"] = "Reloading...",
						["isDocked"] = 1,
						["DimensionsValid"] = false,
						["Error"] = true,
					},
					["ChatFrame2"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["File"] = "nUI_ChatFrame.lua",
					["ChatFrame6"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame1"] = {
						["Exists"] = true,
						["Result"] = "Reloading...",
						["isDocked"] = 1,
						["DimensionsValid"] = false,
						["Error"] = true,
					},
				},
			},
			["Latency"] = {
				["DownloadUsage"] = 3.145634651184082,
				["Lag"] = 0,
				["UploadUsage"] = 0.05464129149913788,
			},
		},
	},
	["At 10:49:14 on 22, April, 2010 "] = {
		["VARIABLES_LOADED"] = {
			["Tests"] = {
				["1"] = {
					["nUI_TopBars"] = {
						["Exists"] = true,
						["nUI_TopBars.Anchor"] = {
							["Result"] = "OK",
							["Error"] = false,
							["Exists"] = true,
						},
					},
					["File"] = "nUI_MicroMenu.lua",
				},
				["3"] = {
					["nUI_Dashboard"] = {
						["Exists"] = true,
						["nUI_Dashboard.Anchor"] = {
							["Result"] = "OK",
							["Error"] = false,
							["Exists"] = true,
						},
					},
					["File"] = "nUI_XPBar.lua",
				},
				["2"] = {
					["ChatFrame5"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame4"] = {
						["Exists"] = true,
						["Result"] = "Reloading...",
						["isDocked"] = 1,
						["DimensionsValid"] = false,
						["Error"] = true,
					},
					["ChatFrame7"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame3"] = {
						["Exists"] = true,
						["Result"] = "Reloading...",
						["isDocked"] = 1,
						["DimensionsValid"] = false,
						["Error"] = true,
					},
					["ChatFrame2"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["File"] = "nUI_ChatFrame.lua",
					["ChatFrame6"] = {
						["Exists"] = true,
						["Result"] = "OK",
						["isDocked"] = false,
						["DimensionsValid"] = true,
						["Error"] = false,
					},
					["ChatFrame1"] = {
						["Exists"] = true,
						["Result"] = "Reloading...",
						["isDocked"] = 1,
						["DimensionsValid"] = false,
						["Error"] = true,
					},
				},
			},
			["Latency"] = {
				["DownloadUsage"] = 4.729493618011475,
				["Lag"] = 0,
				["UploadUsage"] = 0.06151226535439491,
			},
		},
	},
Deimous is offline  
Unread 04-22-10, 12:40 PM   #7
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,047
Yeah, there doesn't seem to be any rhyme or reason as to where and how they write the info back in the file rofl.

But, looking at that bunch of output ( thanks by the way ) it looks like your ChatFrame3 and ChatFrame4 and ChatFrame1 lost their anchors.

Can I assume you are using my GuildChat (3) and Whisper (4) plugins ? In which case I should be able to rectify that *crosses fingers*.

The other option is that they were anchored to ChatFrame1 as your own extra tabs but where ChatFrame1 was reparented and lost its anchor information they couldn't figure it out themselves.
__________________
Xrystal is offline  
Unread 04-22-10, 02:00 PM   #8
Deimous
A Wyrmkin Dreamwalker
Join Date: Nov 2009
Posts: 50
This is a complete list of my addons:
Code:
AddOns:
  Swatter, v3.1.14 (<%codename%>)
  NPCScan, v3.3.0.4
  AucAdvanced, v5.7.4568 (KillerKoala)
  AucFilterBasic, v5.7.4568 (KillerKoala)
  AucFilterOutlier, v5.7.4568.2531
  AucMatchUndercut, v5.7.4568.2531
  AucStatClassic, v5.7.4568 (KillerKoala)
  AucStatHistogram, v5.7.4568 (KillerKoala)
  AucStatiLevel, v5.7.4568 (KillerKoala)
  AucStatPurchased, v5.7.4568 (KillerKoala)
  AucStatSales, v5.7.4568.2842
  AucStatSimple, v5.7.4568 (KillerKoala)
  AucStatStdDev, v5.7.4568 (KillerKoala)
  AucStatWOWEcon, v5.7.4568.2530
  AucUtilAHWindowControl, v5.7.4568.3311
  AucUtilAppraiser, v5.7.4568.2530
  AucUtilAskPrice, v5.7.4568.3175
  AucUtilAutoMagic, v5.7.4568.3142
  AucUtilCompactUI, v5.7.4568.2530
  AucUtilEasyBuyout, v5.7.4568.3583
  AucUtilFixAH, v5.7.4568 (KillerKoala)
  AucUtilGlypher, v5.7.4568.2545
  AucUtilItemSuggest, v5.7.4568.3108
  AucUtilPriceLevel, v5.7.4568.2545
  AucUtilScanButton, v5.7.4568.2530
  AucUtilScanFinish, v5.7.4568.2530
  AucUtilScanProgress, v5.7.4568.2530
  AucUtilSearchUI, v5.7.4568.3655
  AucUtilSimpleAuction, v5.7.4568.4553
  AucUtilVendMarkup, v5.7.4568.2530
  Babylonian, v5.1.DEV.130
  Baggins, v417
  BagginsProfessions, v2009-03-27
  BagginsToken, v1.0
  BeanCounter, v5.7.4568 (KillerKoala)
  BonusScanner, v5.3
  Carbonite, v3.32
  CarboniteTransfer, v1.01
  Configator, v5.1.DEV.130
  DBMCore, v
  DebugLib, v5.1.DEV.130
  DropTheCheapestThing, vv3.5.3
  ElkBuffBars, v2.2.5-150
  Enchantrix, v5.7.4568 (KillerKoala)
  Gatherer, v3.1.14
  GathererDBWowhead, v1.0.2009-12-09
  GearScore, v3.1.15 - Release
  Informant, v5.7.4568 (KillerKoala)
  nUI, v5.06.12 (Plus)
  nUIAuraButtons, v5.03.00
  nUIConfigGUI, v30300.1
  nUICrimsonSwirl, v1.00
  nUIErrorFix, v1.01.00
  nUIInfoPanelDualStats, v1.03.00
  nUIUnitPanelRMSolo, v1.00.01
  Omen, v3.0.9
  PallyPower, vv3.2.11 
  Prat30, v3.3.9 
  Prat30HighCPUUsageModules, v
  Prat30Libraries, v
  QuestHelper, v1.3.11
  RatingBuster, v
  Recount, v
  sct, v6.2
  sctd, v3.1
  SlideBar, v3.1.14 (<%codename%>)
  Stubby, v5.7.4568 (KillerKoala)
  TipTac, v10.04.13
  TipTacItemRef, v10.02.27
  TipTacTalents, v10.02.27
  Titan, v4.3.4.30300 - Revision 345
  TitanAmmo, v4.3.4.30300
  TitanBag, v4.3.4.30300
  TitanClock, v4.3.4.30300
  TitanCoords, v4.3.4.30300
  TitanGoldTracker, v4.3.4.30300
  TitanLootType, v4.3.4.30300
  TitanPerformance, v4.3.4.30300
  TitanRegen, v4.3.4.30300
  TitanRepair, v4.3.4.30300
  TitanVolume, v4.3.4.30300
  TitanXP, v4.3.4.30300
  BlizRuntimeLib_enUS v3.3.3.30300 <us>
  (ck=9c3)
I have 3 chat frames created. There is the default General tab, and then two tabs I created (Chat Only (All the party/guild/raid chat) and Trade (All the trade/lfg channels)).
Deimous is offline  
Unread 04-22-10, 03:06 PM   #9
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,047
Gotcha, then it's *simply rofl* the case of identifying at what point it goes wrong and finding the right code fragment to place there to stop the error.

My tests so far with my own anchoring errors have been to use SetAllPoints instead of ClearAllPoints. On predefined Blizzard windows that may be the best way to get around this problem as it looks like SetAllPoints literally replaces all points set up, to TOPLEFT and BOTTOMRIGHT which apparently is what they need to know to set all the GetLeft/Top/Bottom/Right values that kick up this fuss. It's also possible that a combination of width/height and "TOPLEFT" etc is enough to identify the rectangle that defines the frame.

Then again, the problem could be due to the new parent frame not being set up with its anchors prior to blizzard executing its frame code. A possible solution to this is to give the parent frame a basic anchor that will keep blizz functions happy while you work on the new ones.

At present though it's a theory that until I can repeatedly get the error to occur I can't test on properly.

D'oh, just realised that I didn't add a list of anchors for the frame and its parent to see if that shows up anything interesting ..
__________________
Xrystal is offline  
Unread 04-24-10, 03:43 AM   #10
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,047
Okay. Scott, if you have been reading this. But I am really starting to think the main cause to the problem here is the reparenting/reanchoring of ChatFrame1.

I managed to get an error start up just after clearing out the error file so it was a bit easier to decipher what was happening so here goes with the history:

Code:
["At 09:56:34 on 24, April, 2010 "] 	ADDON_LOADED - nUI_ErrorFix ( This addon )
["At 09:56:35 on 24, April, 2010 "]	ADDON_LOADED - Titan
["At 09:56:36 on 24, April, 2010 "]	ADDON_LOADED - Outfitter
["At 09:56:37 on 24, April, 2010 "] 	ADDON_LOADED - Prat-3.0
["At 09:56:38 on 24, April, 2010 "]	ADDON_LOADED - TitanXP
["At 09:56:39 on 24, April, 2010 "]	ADDON_LOADED - XScrollFrame ( One of my addons Im currently playing with )
["At 09:56:43 on 24, April, 2010 "] 	ADDON_LOADED - Blizzard_AuctionUI
				SPELLS_CHANGED
["At 09:56:44 on 24, April, 2010 "]	ADDON_LOADED - Blizzard_TimeManager
				PLAYER_LOGIN
				PLAYER_ENTERING_WORLD - Error in Dimensions of ChatFrame1				
				PLAYER_ALIVE - Error in Dimensions of ChatFrame1
["At 09:56:45 on 24, April, 2010 "]	VARIABLES_LOADED - Error in Dimensions of ChatFrame1
Note though that ADDON_LOADED - Blizzard_TimeManager was listed in the file after PEW and before PA but seeing as it lists them in whatever order it feels like it on log out I'll take that with a pinch of salt.

Okay, this is the WTF table for this error to give you an idea. I have since added a width and height check but of course no errors since then. I have also tried some theoretical changes in nUI code to see that helps. We will soon see if it doesn't when I still get the same error rofl
Code:
["ChatFrame1"] = {
	["Anchors"] = {
		["Point1"] = {
			["ptSelf"] = "TOPLEFT",
			["ptAnchor"] = "TOPLEFT",
			["xOffset"] = 4.000000281154541,
			["anchor"] = "nUI_ChatFrame",
			["yOffset"] = -5.000000070288635,
		},
		["Point2"] = {
			["ptSelf"] = "BOTTOMRIGHT",
			["ptAnchor"] = "BOTTOMRIGHT",
			["xOffset"] = -5.000000070288635,
			["anchor"] = "nUI_ChatFrame",
			["yOffset"] = 6.000000421731812,
		},
	},
	["isDocked"] = 1,
	["Exists"] = true,
	["Dimensions"] = {
		["Top"] = "nil",
		["Result"] = "Reloading...",
		["Bottom"] = "nil",
		["Error"] = true,
		["Right"] = "nil",
		["Left"] = "nil",
		["DimensionsValid"] = false,
	},
},
The code changes I have made are around line 135 in nUI_ChatFrame.lua.

Code:
		DEFAULT_CHAT_FRAME:StartMoving();
		DEFAULT_CHAT_FRAME:StartSizing();
		DEFAULT_CHAT_FRAME:Hide();						-- TJK
		DEFAULT_CHAT_FRAME:SetParent(nil);				-- TJK
		DEFAULT_CHAT_FRAME:ClearAllPoints();			-- TJK Trying to turn off that annoying error.
		DEFAULT_CHAT_FRAME:SetParent( nUI.chat_frame );	-- TJK
		DEFAULT_CHAT_FRAME:SetPoint( "BOTTOMRIGHT", nUI.chat_frame, "BOTTOMRIGHT", -5, 6 );
		DEFAULT_CHAT_FRAME:SetPoint( "TOPLEFT", nUI.chat_frame, "TOPLEFT", 4, -5 );
		--DEFAULT_CHAT_FRAME:Hide();
		DEFAULT_CHAT_FRAME:StopMovingOrSizing();
I moved the hide up and added the SetParent(nil) in based on this comment:

http://www.wowwiki.com/API_CreateFrame
Never forget to unset the frames parent, if you want to get rid of a frame. I would suggest to hide the frame via frame:Hide() and to use frame:SetParent(nil) afterward (this will remove the frame from its parents child list). If you just hide the frame without this additional step, frames created afterward will get a higher framelevel than the hidden one. After a while, you will get frames at maximum framelevel which are likely to be drawn in a distorted way (false order caused by equal framelevel).
And for those that want to try out this file, rofl, I made some changes other than those I mentioned above. I was wondering why I kept getting bad lag in the game and then I realised that I hadn't told the addon to unregister the events. I forgot that PEW could be triggered again and of course I found out today that SPELLS_CHANGED is triggered when you mind control/pets eye and even mount and dismount rofl ... so it quickly became a big file rofl.
Attached Files
File Type: zip nUI_ErrorFix.zip (1.8 KB, 585 views)
__________________

Last edited by Xrystal : 04-24-10 at 03:48 AM.
Xrystal is offline  
Unread 04-24-10, 10:41 AM   #11
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,047
Woot .. my changes seemed to have gotten rid of the chatframe error

Here's a pic to show the error gone from the list and the chatframe appearing as normal

And this is the function I touched so that you can compare with the existing code Scott The TJK marks are the ones I added yesterday but can't remember if anything else is different rofl.

Code:
local function onChatFrameEvent()

--	nUI_ProfileStart( ProfileCounter, "onChatFrameEvent", event );
	
	if event == "VARIABLES_LOADED" then

		nUI:registerScalableFrame( frame );		
		nUI_ChatFrame:configFrame();
		
	else

        frame:UnregisterEvent( "PLAYER_ENTERING_WORLD" );
        
		frame.texture = frame:CreateTexture();
		frame.texture:SetAllPoints( nUI.chat_frame );
	
		-- relocate the chat frame to the area we have set aside for it on the dashboard
		-- TJK, probably will want to download a proper version to get back on track :D 
		FCF_SetLocked( DEFAULT_CHAT_FRAME, nil );
		MOVING_CHAT_FRAME = DEFAULT_CHAT_FRAME;
		DEFAULT_CHAT_FRAME:StartMoving();
		DEFAULT_CHAT_FRAME:StartSizing();
		DEFAULT_CHAT_FRAME:Hide();						-- TJK
		DEFAULT_CHAT_FRAME:SetParent(nil);				-- TJK
		--DEFAULT_CHAT_FRAME:ClearAllPoints();			-- TJK Trying to turn off that annoying error.
		DEFAULT_CHAT_FRAME:SetParent( nUI.chat_frame );	-- TJK
		DEFAULT_CHAT_FRAME:SetPoint( "BOTTOMRIGHT", nUI.chat_frame, "BOTTOMRIGHT", -5, 6 );
		DEFAULT_CHAT_FRAME:SetPoint( "TOPLEFT", nUI.chat_frame, "TOPLEFT", 4, -5 );
		--DEFAULT_CHAT_FRAME:Hide();
		DEFAULT_CHAT_FRAME:StopMovingOrSizing();
		
		MOVING_CHAT_FRAME = nil;
	
		-- set strata, etc, for all defined frames, make sure they're all docked
		
		for i=1, NUM_CHAT_WINDOWS do
			
			if i ~= 2 then -- we handle the combat log separately
				
				local cframe  = _G["ChatFrame"..i];
		
				cframe.is_chat_frame = i == 1;

				if i == 1 or cframe.isDocked then
								
					cframe:SetUserPlaced( true );
					
					FCF_SetLocked( cframe, 1 );
					FCF_SetWindowAlpha( cframe, 0 );
					
				end
				
				-- relocate the chat frame buttons
		
				local bottom  = _G["ChatFrame"..i.."BottomButton"];
				local down    = _G["ChatFrame"..i.."DownButton"];
				local up      = _G["ChatFrame"..i.."UpButton"];
				
				if cframe.is_chat_frame then
					ChatFrameMenuButton:SetAlpha( 0 );
				end
				
				bottom:SetAlpha( 0 );			
				down:SetAlpha( 0 );			
				up:SetAlpha( 0 );
					
				-- set method to show or hide the scroll buttons based on whether or
				-- not the mouse is in the frame
				
				cframe.showButtons = function( enabled )
	
					if enabled ~= cframe.buttons_visible then
						
						cframe.buttons_visible = enabled;
						if cframe.is_chat_frame then
							ChatFrameMenuButton:SetAlpha( enabled and 1 or 0 );
						end
						bottom:SetAlpha( enabled and 1 or 0 );
						down:SetAlpha( enabled and 1 or 0 );
						up:SetAlpha( enabled and 1 or 0 );
											
					end
				end
				
				-- allow scrolling of the combat log frame with the mouse wheel
				
				cframe:EnableMouseWheel( true );	
				
				cframe:SetScript( "OnMouseWheel", 
					function()
						if arg1 > 0 then cframe:ScrollUp();
						else cframe:ScrollDown();
						end	
					end	
				);		
				
			end
		end
		
		-- relocate the chat frame edit box in the same manner
		
		if not IsAddOnLoaded( "Chatter" ) 
		and not IsAddOnLoaded( "Prat-3.0" )
		and not IsAddOnLoaded( "Prat-3.3" )
		then
			
			local right = ChatFrameEditBox:GetRight() + 0;
			local left  = ChatFrameEditBox:GetLeft() + 0;
			local scale = ChatFrameEditBox:GetEffectiveScale() + 0;
			local width = ( right - left) / scale;
			
			ChatFrameEditBox:SetParent( nUI.chat_frame );
			ChatFrameEditBox:SetScale( 0.75 / UIParent:GetScale() );
			ChatFrameEditBox:ClearAllPoints();
			ChatFrameEditBox:SetPoint( "TOPLEFT", nUI.chat_frame, "TOPLEFT", 0, 1 );
			ChatFrameEditBox:SetPoint( "TOPRIGHT", nUI.chat_frame, "TOPRIGHT", 0, 1 );
			ChatFrameEditBox:SetFrameStrata( "DIALOG" );
			ChatFrameEditBox:SetFrameLevel( 1 );
		end
				
		ChatFrameMenuButton:ClearAllPoints();
		ChatFrameMenuButton:SetScale( 0.8 );
		ChatFrameMenuButton:SetPoint( "BOTTOM", ChatFrame1UpButton, "TOP", 0, -6 );
		
	end
	
--	nUI_ProfileStop();
	
end
Attached Thumbnails
Click image for larger version

Name:	WoWScrnShot_042410_173523.jpg
Views:	614
Size:	246.9 KB
ID:	4179  
__________________
Xrystal is offline  
Unread 04-25-10, 08:23 AM   #12
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Thanks for running this down Xrystal. I've added these changes in and we'll see how it plays out.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
spiel2001 is offline  
Unread 04-25-10, 08:29 AM   #13
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,047
I'm testing with the ClearAllPoints again just in case just setting the parent to nil was enough to break the link to the original anchor points. So will see how it pans out.

And no probs Scott. It was starting to get on my nerves trying to test my addon changes with that bug rofl Nothing altruistic at all rofl.
__________________
Xrystal is offline  
Unread 04-25-10, 08:37 AM   #14
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
I suspect the ClearAllPoints is the actual fix.

When that's executed, all existing anchor points are wiped out and there's no left or right edge anymore. In theory, once new points are set, there should be a left and right again, but apparently that's not always happening.

By not calling ClearAllPoints then we will still have the old left and right edge if we don't have the new yet.

If that makes any sense.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
spiel2001 is offline  
Unread 04-25-10, 08:45 AM   #15
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,047
Yeah, but just removing the ClearAllPoints line didn't fix the problem on its own That was my first test. The SetParent(nil) was the second test and it stopped the error So my wondering is that perhaps the SetParent(nil) was what resolved the problem in its entirety as if the blizz code is cycling through each frames child frames it now doesn't know about the one we have borrowed Of course the combination of both is the fix .. will have to see if I get the error message again
__________________
Xrystal is offline  
Unread 04-25-10, 08:47 AM   #16
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
It's funny how when you explain things to someone you often end up explaining that thing to yourself.

I think I figured out the source of the problem.

The onChatFrameEvent is attempting to anchor the chat frame to the left and right edge of the nUI.chat_frame container and then to calculate the size of the resulting window. However, if you look closely at the code, nUI.chat_frame does not get anchored to anything until the PLAYER_ENTERING_WORLD event fires and the applyAnchor() method is called. So... I'm trying to calculate the width on the default chat frame before I've anchored its container to anything.

*IF* you are lucky, it *might* get anchored before the calculation takes place. However, it's a luck of the draw thing and thus the intermittent problem. By not calling ClearAllPoints, the width calculation still works because the chat frame still has the anchors from the last time it was successfully sized. So, the problem isn't really fixed, though the exception doesn't get thrown anymore.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
spiel2001 is offline  
Unread 04-25-10, 08:53 AM   #17
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Xrystal -- try the attached version of nUI_ChatFrame.lua and let me know if it works for you.

.
Attached Files
File Type: lua nUI_ChatFrame.lua (22.7 KB, 594 views)
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
spiel2001 is offline  
 

Go BackWoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Support » nUI: Bug Reports » LUA Error

Thread Tools
Display Modes

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