Thread Tools Display Modes
08-31-12, 03:51 AM   #1
Brusalk
An Aku'mai Servant
 
Brusalk's Avatar
AddOn Author - Click to view addons
Join Date: May 2010
Posts: 32
SetPoint: Script Ran Too Long

Hey.

A few users of my addon EventHorizon have been reporting Lua errors related to SetPoint on textures with the message "Script ran too long"

Example Error:
Code:
Message: Interface\AddOns\EventHorizon\EventHorizon.lua:695: script ran too long
Time: 08/31/12 11:39:28
Count: 1
Stack: [C]: in function `SetPoint'
Interface\AddOns\EventHorizon\EventHorizon.lua:695: in function `AddIndicator'
Interface\AddOns\EventHorizon\EventHorizon.lua:1338: in function `UpdateDoT'
Interface\AddOns\EventHorizon\EventHorizon.lua:954: in function `UNIT_AURA'
Interface\AddOns\EventHorizon\EventHorizon.lua:564: in function `f'
Interface\AddOns\EventHorizon\EventHorizon.lua:472: in function <Interface\AddOns\EventHorizon\EventHorizon.lua:468>

Locals:
And again on line 779.

I've never seen anything like it and I'm perplexed on how a simple SetPoint can be running too long.

Download link to the most recent version which the users are getting errors with


Thanks if you guys can help me out with this one :/

-Brusalk
  Reply With Quote
08-31-12, 05:33 AM   #2
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,360
Mac error?

I'm not using a Mac but I saw various commit logs in the last week (don't ask me to find them ) for other addons that coded workarounds,
so someone's bound to drop in and help you out sooner or later.
  Reply With Quote
08-31-12, 05:37 AM   #3
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,360
Relevant blue post: Limited Lua Execution Time
  Reply With Quote
08-31-12, 07:33 AM   #4
Haleth
This Space For Rent
 
Haleth's Avatar
Featured
Join Date: Sep 2008
Posts: 1,173
I've had errors with a simple 'Show' function apparently running too long in my addon. According to the error, it happened on line -1.

I'd say it's not really optimized yet...
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » SetPoint: Script Ran Too Long


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