Issue 30 in dongle: r1013 -- Dongle.lua:1183: attempt to index local 'obj' (a nil value)"

2 views
Skip to first unread message

codesite...@google.com

unread,
Feb 26, 2008, 8:50:11 AM2/26/08
to dongle...@googlegroups.com
Issue 30: r1013 -- Dongle.lua:1183: attempt to index local 'obj' (a nil value)"
http://code.google.com/p/dongle/issues/detail?id=30

New issue report by generalmx:
What steps will reproduce the problem?
1. Download latest TinyTip from
http://thrae-wow.googlecode.com/svn/trunk/TinyTip
2. Download one of the modules as an external, say,
http://thrae-wow.googlecode.com/svn/trunk/TinyTipBasic
3. Disable all other addons and start WoW.
4. Observe error:
Message: ..\AddOns\TinyTip\libs\Dongle-1.0\Dongle.lua line 1166:
attempt to index local 'obj' (a nil value)
5. Reload.
6. Observe error does not occur.
7. Baffle.

This is using http://dongle.googlecode.com/svn/tags/Dongle-1.0-r1013, which
contains latest Dongle-1.0 with revision of r612 (according to Dongle.lua).
From the stack, it appears to originate from the ADDON_LOADED call from
TinyTipBasic, which has TinyTip as its LoadManager and is also a Dongle
module of TinyTip. It could be that being a Module of TinyTip and also
being a LoD is confusing some logic, but the line it traced to seems
infalliable. Trace from Swatter (occurs with no addons except TinyTip too):

{
["message"] =
"Interface\\AddOns\\TinyTip\\libs\\Dongle-1.0\\Dongle.lua:1183: attempt to
index local 'obj' (a nil value)",
["count"] = 2,
["addons"] = " BagnonForever, v1.0.0\n BagnonTooltips\n Combuctor,
vBeta.1.0\n MCP, v2006.01.03\n MrPlow, v5.0.60912\n Swatter,
v5.0.PRE.2662\n TinyTip, v0.2\n TinyTipBasic, v0.2\n TinyTipPositioning,
v0.2\n TinyTipTargets, v0.2\n",
["timestamp"] = "2008-02-26 07:53:34",
["context"] = "Global",
["stack"] =
"Interface\\AddOns\\TinyTip\\libs\\Dongle-1.0\\Dongle.lua:249: in function
<Interface\\AddOns\\TinyTip\\libs\\Dongle-1.0\\Dongle.lua:246>\nInterface\\AddOns\\TinyTip\\libs\\Dongle-1.0\\Dongle.lua:337:
in function
<Interface\\AddOns\\TinyTip\\libs\\Dongle-1.0\\Dongle.lua:328>\n[C]:
?\nInterface\\AddOns\\MCP\\MCP.lua:75: in function
`LoadAddOn'\nInterface\\AddOns\\TinyTip\\TinyTip.lua:190: in function
<Interface\\AddOns\\TinyTip\\TinyTip.lua:186>\n[C]: in function
`pcall'\nInterface\\AddOns\\TinyTip\\libs\\Dongle-1.0\\Dongle.lua:247: in
function
<Interface\\AddOns\\TinyTip\\libs\\Dongle-1.0\\Dongle.lua:246>\nInterface\\AddOns\\TinyTip\\libs\\Dongle-1.0\\Dongle.lua:1184:
in function
<Interface\\AddOns\\TinyTip\\libs\\Dongle-1.0\\Dongle.lua:1161>\n[C]: in
function
`pcall'\nInterface\\AddOns\\TinyTip\\libs\\Dongle-1.0\\Dongle.lua:247: in
function
<Interface\\AddOns\\TinyTip\\libs\\Dongle-1.0\\Dongle.lua:246>\nInterface\\AddOns\\TinyTip\\libs\\Dongle-1.0\\Dongle.lua:337:
in function
<Interface\\AddOns\\TinyTip\\libs\\Dongle-1.0\\Dongle.lua:328>\n[C]:
?\nInterface\\AddOns\\MCP\\MCP.lua:75: in function
`LoadAddOn'\nInterface\\AddOns\\TinyTip\\TinyTip.lua:190: in function
<Interface\\AddOns\\TinyTip\\TinyTip.lua:186>\n[C]: in function
`pcall'\nInterface\\AddOns\\TinyTip\\libs\\Dongle-1.0\\Dongle.lua:247: in
function
<Interface\\AddOns\\TinyTip\\libs\\Dongle-1.0\\Dongle.lua:246>\nInterface\\AddOns\\TinyTip\\libs\\Dongle-1.0\\Dongle.lua:1155:
in function
<Interface\\AddOns\\TinyTip\\libs\\Dongle-1.0\\Dongle.lua:1150>\n[C]: in
function
`pcall'\nInterface\\AddOns\\TinyTip\\libs\\Dongle-1.0\\Dongle.lua:247: in
function
<Interface\\AddOns\\TinyTip\\libs\\Dongle-1.0\\Dongle.lua:246>\nInterface\\AddOns\\TinyTip\\libs\\Dongle-1.0\\Dongle.lua:337:
in function <Interface\\AddOns\\TinyTip\\libs\\Dongle-1.0\\Dongle.lua:328>\n",
}, -- [5]

Issue attributes:
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

codesite...@google.com

unread,
Feb 26, 2008, 8:59:12 AM2/26/08
to dongle...@googlegroups.com
Issue 30: r1013 -- Dongle.lua:1183: attempt to index local 'obj' (a nil value)"
http://code.google.com/p/dongle/issues/detail?id=30

Comment #1 by generalmx:
Oh wait, I get it. I'm using Initialize (ADDON_LOADED) and Enable
(ADDON_LOADED /
PLAYER_LOGIN) to loop through all addons and load my LoD addons
(they're LoD since
TinyTip is set as their LoadManager), which in turn use NewModule to create
themselves as a Dongle addon. This means they're adding to loadqueue in
the middle of
iterating through it, and possibly triggering another ADDON_LOADED
event before the
previous ADDON_LOADED Dongle code has a chance to finish.

codesite...@google.com

unread,
Feb 26, 2008, 9:04:12 AM2/26/08
to dongle...@googlegroups.com
Issue 30: r1013 -- Dongle.lua:1183: attempt to index local 'obj' (a nil value)"
http://code.google.com/p/dongle/issues/detail?id=30

Comment #2 by jnwhiteh:
Please ensure you are using the latest stable release of Dongle before
you report a
bug like this.


Issue attribute updates:
Status: Duplicate

Reply all
Reply to author
Forward
0 new messages