Synfig Issue Tracker
star_faded.png
Please log in to bookmark issues
bug_report_small.png
OPEN  Bug report #960  -  POWER of 0
Posted Feb 24, 2016 - updated Jan 05, 2019
action_vote_minus_faded.png
1
Votes
action_vote_plus_faded.png
Issue details
  • Type of issue
    Bug report
  • Status
     
    New
  • Assigned to
    Not assigned to anyone
  • Progress
       
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     Linken
  • Owned by
    Not owned by anyone
  • Category
    Crash
  • Resolution
    Not determined
  • Priority
    Not determined
  • Targetted for
    icon_milestones.png Not determined
  • Tags
    icon_customdatatype.png calculation;math
  • Difficulty
    icon_customdatatype.png Easy
Issue description
There is a problem with the power function : if you set the 'Power' (real) value to 0. Synfig will crash abruptly

There must be something wrong with the mathematical implementation of the power function (A^0 should be equal to 1). Good bug hunting ! Regards Linken
Steps to reproduce this issue
Convert a real/integer to a power, set programmatically or manually the 'Power' (real) value to '0'.

EDIT :

I checked the valuenode_pow.cpp and you did take 0 (or <epsilon) case into account

so I don't know c++ as well as c# but the problem must come from somewhere else

I set once the value to 0.00000000001 ( < epsilon ) and the program worked as expected, but when I set the power value to '0' exactly it still crashes I manage to see the value correctly evaluated to 1 before the crash