Recount

577 - Not working on 4.3.0.14732 PTR

What version of the product are you using?

Do you have an error log of what happened?

  1. ..\AddOns\Ace3\AceSerializer-3.0\AceSerializer-3.0.lua line 27: Division by zero
  2. ..\AddOns\Recount\LazySync.lua line 2: attempt to call method 'Embed' (a nil value)
  3. ..\AddOns\Recount\Recount.lua line 2034: attempt to call method 'ConfigComm' (a nil value)
Please provide any additional information below.

http://www.wowace.com/addons/ace3/tickets/268-ace-serializer-broken-on-4-3-division-by-zero-raises/

User When Change
Elsia Dec 14, 2011 at 07:40 UTC
Elsia Oct 03, 2011 at 04:28 UTC
Elsia Oct 03, 2011 at 04:28 UTC
Ketho Sep 28, 2011 at 17:31 UTC Changed description:
  * [[http://www.wowace.com/addons/recount/files/1486-v4-2-0f-release/|Recount v4.2.0f]]

  Do you have an error log of what happened?
- # ...\AddOns\Ace3\AceSerializer-3.0\AceSerializer-3.0.lua line 27: **Division by zero**
+ # ..\AddOns\Ace3\AceSerializer-3.0\AceSerializer-3.0.lua line 27: **Division by zero**
  # ..\AddOns\Recount\LazySync.lua line 2: **attempt to call method 'Embed' (a nil value)**
  # ..\AddOns\Recount\Recount.lua line 2034: **attempt to call method 'ConfigComm' (a nil value)**
  ====== Please provide any additional information below. ======
- This might be a problem from AceSerializer dividing by zero .. I also posted a [[http://forums.wowace.com/showthread.php?t=19707|thread]] about it
+ http://www.wowace.com/addons/ace3/tickets/268-ace-serializer-broken-on-4-3-division-by-zero-raises/
Ketho Sep 28, 2011 at 17:27 UTC Create

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

  • 7 comments
  • Avatar of Elsia Elsia Oct 13, 2011 at 00:20 UTC - 0 likes

    Thanks, the latest alpha fixes that one.

  • Avatar of mysticalos mysticalos Oct 05, 2011 at 20:56 UTC - 0 likes

    6x Recount-r1175\GUI_Main.lua:1076: Division by zero Recount-r1175\GUI_Main.lua:1076: in function <Recount\GUI_Main.lua:922> (tail call): ? <in C code> <string>:"safecall Dispatcher[2]":9: in function <string>:"safecall Dispatcher[2]":5 (tail call): ? Ace3-r1039\AceTimer-3.0\AceTimer-3.0-6.lua:164: in function <Ace3\AceTimer-3.0\AceTimer-3.0.lua:138>

    Locals: nil

    another situation where /0 can occur. i fixed it in my local copy

    local percent
    if Total == 0 then
    	percent = 0
    else
    	percent=100*v[2]/Total
    end
    

    seemed to do trick. although i'm not sure if you want percent to be 0 or 100 if total == 0, i didn't spend too long seeing what function actually did, just told it that if total is 0 then don't divide by it just make percent 0

    and @ reddrumjay whoever made that fix clearly had no idea the purpose inf served cause that would have silenced errors but rendered many mods that actually use the value worthless. all cases of inf should be math.huge, always should have been, mod authors should hever have been using 1/0 when lua has math.huge specificly designed for that anyways, even the blizz source uses math.huge for inf. as for nan though there is currently no way to get it in windows in 4.3, OS X can get it with math.log(-1) or math.huge * 2 or various other ways. but using nan only on macs is useless so ace serializer dropped it.

    Last edited Oct 05, 2011 by mysticalos
  • Avatar of Elsia Elsia Oct 04, 2011 at 20:38 UTC - 0 likes

    @valarauca: Go

    Delete your WTF and Cache folders.

  • Avatar of valarauca valarauca Oct 03, 2011 at 20:09 UTC - 0 likes

    Initial testing of release 1175 (with libraries) causes the WoWPTR client to stop responding.

  • Avatar of Elsia Elsia Oct 03, 2011 at 04:27 UTC - 0 likes

    AceSerializer-3.0 has just been fixed. And I fixed another related division by zero issue in Recount as well. I'm leaving the ticket open until 4.3 hits for further related feedback and changes on the PTR.

  • Avatar of reddrumjay reddrumjay Sep 29, 2011 at 06:03 UTC - 0 likes

    Confirmed.

    Someone on the Wow forums posted this partial work around:

    http://pastebin.com/TU9T7SfN

  • Avatar of Bareno Bareno Sep 29, 2011 at 00:01 UTC - 0 likes

    Noticing the same thing, dayum ketho you sure are fast... o.o

  • 7 comments

Facts

Last updated
Mar 30, 2012
Reported
Sep 28, 2011
Status
Fixed - Developer made requested changes. QA should verify.
Type
Defect - A shortcoming, fault, or imperfection
Priority
High - Strongly want to resolve in the specified milestone.
Votes
3

Reported by

Possible assignees