TradesBar

19 - Problems with cooldowns

What steps will reproduce the problem?
1. Use the random mount/pet button on TradesBar.
2. Enjoy BugSack's sound about your error.
3. (it seems that TradesBar doesn't like Internal Cooldowns too)

What is expected?
Just a summon, nothing interesting.

What happens instead?
I get an error described below; however my mount/pet is also there, so it's just a little annoying.

What version of the product are you using? Don't use any version information you get from the files, I have not changed any of those in a long time. The breakdown of my versioning style:
- v + 12 Digits:
- - vYYYYMMDDHHMM (in Mountain Standard Time)
- v + *.*.*:
- - vMajor.Minor.Alpha (old style)

I'm using the latest version, v201010142203.

Do you have an error log of what happened? The following addons (install both) will allow you to copy and paste an error message complete with a stack trace.
- BugGrabber: http://wow.curseforge.com/projects/bug-grabber/
- BugSack: http://wow.curseforge.com/projects/bug-sack/

Yes, I have this from BugSack:

2x TradesBar-v201010142203\TradesBar.lua:1353 Usage: GetItemCooldown(itemID)
TradesBar-v201010142203\TradesBar.lua:1353 in function `TradesBar_UpdateCooldowns'
TradesBar-v201010142203\TradesBar.lua:831 in function <TradesBar\TradesBar.lua:770
<in C code>: in function `UseAction'
Interface\FrameXML\SecureTemplates.lua:274 in function `handler':
Interface\FrameXML\SecureTemplates.lua:540 in function <Interface\FrameXML\SecureTemplates.lua:488

With a pet the BugSack's text is this:

1x TradesBar-v201010142203\TradesBar.lua:1353 Usage: GetItemCooldown(itemID)
TradesBar-v201010142203\TradesBar.lua:1353 in function `TradesBar_UpdateCooldowns'
TradesBar-v201010142203\TradesBar.lua:831 in function <TradesBar\TradesBar.lua:770
<in C code>: in function `CallCompanion'
TradesBar-v201010142203\TradesBar.lua:541 in function <TradesBar\TradesBar.lua:536

[snipped the long tablelist]

Please provide any additional information below.

User When Change
egingell Oct 22, 2010 at 03:31 UTC Changed status from Accepted to Fixed
egingell Oct 22, 2010 at 03:28 UTC Changed status from New to Accepted

Changed description:
  Interface\FrameXML\SecureTemplates.lua:274: in function `handler':
  Interface\FrameXML\SecureTemplates.lua:540: in function <Interface\FrameXML\SecureTemplates.lua:488>:

- Locals:
- (for generator) = <function> defined =[C]:-1
- (for state) = <table> {
-  1 = <table> {}
-  2 = <table> {}
-  3 = <table> {}
-  4 = <table> {}
-  5 = <table> {}
-  6 = <table> {}
-  7 = <table> {}
-  8 = <table> {}
-  9 = <table> {}
-  10 = <table> {}
-  11 = <table> {}
-  12 = <table> {}
-  13 = <table> {}
-  14 = <table> {}
-  15 = <table> {}
-  16 = <table> {}
-  17 = <table> {}
-  18 = <table> {}
-  19 = <table> {}
-  20 = <table> {}
-  21 = <table> {}
-  22 = <table> {}
-  23 = <table> {}
-  24 = <table> {}
-  25 = <table> {}
-  26 = <table> {}
-  27 = <table> {}
-  28 = <table> {}
-  29 = <table> {}
-  30 = <table> {}
-  31 = <table> {}
-  32 = <table> {}
-  33 = <table> {}
-  34 = <table> {}
-  35 = <table> {}
-  36 = <table> {}
-  37 = <table> {}
-  38 = <table> {}
-  39 = <table> {}
-  40 = <table> {}
-  41 = <table> {}
-  42 = <table> {}
-  43 = <table> {}
-  44 = <table> {}
-  45 = <table> {}
-  46 = <table> {}
-  47 = <table> {}
-  48 = <table> {}
-  49 = <table> {}
-  50 = <table> {}
-  51 = <table> {}
-  52 = <table> {}
-  53 = <table> {}
-  54 = <table> {}
-  55 = <table> {}
-  56 = <table> {}
-  57 = <table> {}
-  58 = <table> {}
-  59 = <table> {}
-  60 = <table> {}
-  61 = <table> {}
-  62 = <table> {}
-  63 = <table> {}
-  64 = <table> {}
-  65 = <table> {}
-  66 = <table> {}
-  67 = <table> {}
-  68 = <table> {}
-  69 = <table> {}
-  70 = <table> {}
-  71 = <table> {}
-  72 = <table> {}
-  73 = <table> {}
-  74 = <table> {}
- }
- (for control) = 72
- i = 72
- cooldown = TradesBarButton72Cooldown {
-  0 = <userdata>
- }
- itemid = "20747:0:0:0:0:0:0:0:54"
- Trades = <table> {
-  1 = <table> {}
-  2 = <table> {}
-  3 = <table> {}
-  4 = <table> {}
-  5 = <table> {}
-  6 = <table> {}
-  7 = <table> {}
-  8 = <table> {}
-  9 = <table> {}
-  10 = <table> {}
-  11 = <table> {}
-  12 = <table> {}
-  13 = <table> {}
-  14 = <table> {}
-  15 = <table> {}
-  16 = <table> {}
-  17 = <table> {}
-  18 = <table> {}
-  19 = <table> {}
-  20 = <table> {}
-  21 = <table> {}
-  22 = <table> {}
-  23 = <table> {}
-  24 = <table> {}
-  25 = <table> {}
-  26 = <table> {}
-  27 = <table> {}
-  28 = <table> {}
-  29 = <table> {}
-  30 = <table> {}
-  31 = <table> {}
-  32 = <table> {}
-  33 = <table> {}
-  34 = <table> {}
-  35 = <table> {}
-  36 = <table> {}
-  37 = <table> {}
-  38 = <table> {}
-  39 = <table> {}
-  40 = <table> {}
-  41 = <table> {}
-  42 = <table> {}
-  43 = <table> {}
-  44 = <table> {}
-  45 = <table> {}
-  46 = <table> {}
-  47 = <table> {}
-  48 = <table> {}
-  49 = <table> {}
-  50 = <table> {}
-  51 = <table> {}
-  52 = <table> {}
-  53 = <table> {}
-  54 = <table> {}
-  55 = <table> {}
-  56 = <table> {}
-  57 = <table> {}
-  58 = <table> {}
-  59 = <table> {}
-  60 = <table> {}
-  61 = <table> {}
-
  With a pet the BugSack's text is this:
  1x TradesBar-v201010142203\TradesBar.lua:1353: Usage: GetItemCooldown(itemID)


Changed component from None to Button Bar
Ydrisselle Oct 21, 2010 at 22:47 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 2 comments
  • Avatar of egingell egingell Oct 22, 2010 at 03:31 UTC - 0 likes

    Oops. Variable names are case sensitive.

  • Avatar of egingell egingell Oct 22, 2010 at 03:28 UTC - 0 likes

    TradesBar doesn't like cooldowns at all let alone internal ones. Thanks for the error, I'll look into it.

  • 2 comments

Facts

Last updated
Oct 22, 2010
Reported
Oct 21, 2010
Status
Fixed - Developer made requested changes. QA should verify.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
0
Component
Button Bar

Reported by

Possible assignees