Thread Tools Display Modes
03/08/15, 08:49 AM   #1
StrangerFull
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 33
=(

Some addon causes an error when you try to use any potions or any other item in the inventory by right-clicking and selecting "use" but when double click the left mouse button on the same item - there is no error.


EsoUI/Ingame/Inventory/InventorySlot.lua:925: attempt to access a private function 'UseItem' from insecure code
stack traceback:
EsoUI/Ingame/Inventory/InventorySlot.lua:925: in function 'TryUseItem'
EsoUI/Ingame/Inventory/InventorySlot.lua:1148: in function 'OnSelect'
EsoUI/Libraries/ZO_ContextMenus/ZO_ContextMenus.lua:412: in function 'ZO_Menu_ClickItem'
8371350907706105899:4: in function '(main chunk)'

I m using following addons:

Advanced Filters
Advanced UI (AUI)
AwesomeGuildStore
Binder (Outdated)
CombatAnalytics (Outdated)
Destinations
FCO Item Saver
Foundry Tactical Combat
GuildAnnouncer
GuildNotificator
Harven's Aliases
Harven's Improved Skills Window
Harven's Provisioning Tooltips (Outdated)
Harven's Trait And Style
HarvestMap
HyperToxic's Regroup (Outdated)
Joviex's Settings Transfer 14.07.03.1 (Outdated)
LibAddonMenu-2.0 (Library not addon)
Librarian (Outdated)
LoreBooks 1.5.2
Lost Treasure
Lui Extended
No, thank you! 1.2.2
pChat
Postmaster 1.7.3
Potion Maker
Price Tracker Updated 2.6.2
Rainbow Reticle v 1.1
Rare Fish Tracker
Research Assistant
Show Motifs
Show Weapons while mounted (Outdated)
SkyShards 1.8.2
SpentSkillPoints
S'rendarr 1.47
TiEmote Extended (Outdated)
Votan's Fisherman
Votan's Search Box
Wykkyd Achievements Tracker 2.3.3.1
Wykkyd's Auto Repair 2.3.3.1
Wykkyd's Core Libraries (live+pts)
Wykkyd's Equip Borders 2.3.3.1
Wykkyd's Equip Level 2.3.3.1
Wykkyd's Loot Manager 2.3.3.1
Wykkyd's Outfitter 2.3.3.1
Wykkyd's Toolbar 2.3.3.1

No inventory mods installed except filters that updated to 1.6...
  Reply With Quote
03/08/15, 09:10 AM   #2
Halja
 
Halja's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 111
I have seen that error before when trying to use a recipe while I had the bank window open for deposits. Did you have any other windows open beyond personal inventory at the same time? Some of those in your list do interact with inventory events. Can you recreate the error with all add-on off?
  Reply With Quote
03/08/15, 09:50 AM   #3
Kevinmon
Join Date: Apr 2014
Posts: 17
I have this same bug, it happens when Right Click - Destroying items too! InventorySlot.lua.

I have no idea which add-on is causing this!
  Reply With Quote
03/08/15, 12:08 PM   #4
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,979
Did you try this with all addons disabled? Is the error message still there?
  Reply With Quote
03/08/15, 01:54 PM   #5
kedavix
 
kedavix's Avatar
Join Date: Mar 2014
Posts: 1
I believe that I have seen the error before as well. I'd try loading up with FCO ItemSaver disabled. Something tells me it doesn't always play fair with it's insane number of features related to inventory handling.
  Reply With Quote
03/08/15, 03:37 PM   #6
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,979
FCOItemSaver never changes something at the TryUseItem or UseItem function.
It only prevents the "Use" context menu entry to appear.

I've tested it with several constellations now and never got this error message (with FCOItemSaver enabled, disabled, not used as addon).

It would make me wonder if FCOItemSaver is the one addon here causing this error.
  Reply With Quote
03/08/15, 04:51 PM   #7
votan
 
votan's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 577
While working on Votan's Fish Fillet I found out the following:
If a hooked function (or a sub-call) using a private/protected function like "UseItem" is not the very last call by using return, this message is coming.

e.g.
fails:
function NewFunction(...)
-- action
hookedFunction(...)
end

working:
function NewFunction(...)
-- action
return hookedFunction(...)
end

Even if the hooked function has no return values. But this causes the error message reproducable.
In my case, it was hooking the context-menu. (right-click)

If the error is random, it can be caused by adding the wrong fragment type to HUD_SCENE (from any addon)
http://www.esoui.com/forums/showthre...ight=HUD_SCENE

Last edited by votan : 03/08/15 at 04:54 PM.
  Reply With Quote
03/09/15, 11:47 AM   #8
StrangerFull
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 33
Mysticism, but the bug disappeared himself. Most likely after updating addons through Minion. What addons updates I don't remember.
  Reply With Quote
03/09/15, 01:42 PM   #9
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,979
Maybe it helps other ppl too to track down the bug.
Have a look here: http://www.esoui.com/downloads/latest.php

Then remember date and time as you have updated Minion and check which addons were updated at this time (near this time).
Compare it with your version list of addons from your first post.
  Reply With Quote

ESOUI » AddOns » AddOn Help/Support » =(


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