Adding super to a subclass creates stack error

So I was trying to retain two methods from Game_Battler to Game_Actor, which it says that it has an error called Stack Error too deep. As far as I understand, what I was doing was conventionally correct.


Example:

Code:
class Game_Actor < Game_Battler
  def add_state(state_id)
    super(state_id)
  end
  def remove_state(state_id)
    super(state_id)
  end  
end



Does anyone know the explanation why this gives an error?
Stack refers to function call stack.


It usually occurs if you're legitimately just making a lot of function calls, or you run into a recursive loop.


For example perhaps calling `add_state` for the actor leads to some strange recursion.


You might be able to verify that by adding a print statement before (or after) the super call.


Then you'll have to figure out why...I use this script to help print out a stack trace so I can just look at what's being called.

Original thread: https://forums.rpgmakerweb.com/threads/adding-super-to-a-subclass-creates-stack-error.56055/