Okay, that lets me see what it is trying to do.
In selfbuff the bot is detecting the various buffs I can have. It detects a couple of self buffs.
When it goes to cast them, one is memd in the default gem (for me,7).
It will cast that buff fine.
Then it wants to cast the next one, and needs to mem it, which it does not do.
[2016/01/27 11:42:32] Attempting to cast TOON on Armor of the Codex Rk. II
[2016/01/27 11:42:32] Attempting to cast Armor of the Codex Rk. II using gem7
... and that is what fails.
I left the bot running and unmem'd that gem. It did not mem the spell.
I mem'd the spell, and it cast it fine.
Since it's then got that buff, it didn't keep trying and spam stopped.
With the buff on, I zoned, so that the mana bar came back. The bot runs, is running, with the buffs already cast so it needs do no rebuffing work, and I have a mana bar.
I removed the buff, with the spell memd. The bot immediately casts it, and before / when the cast started, the mana bar disappeared.
I got the bot to cast some other stuff, mana recovery instead of self buff. it's mana recovery casts did not make the mana bar disappear. As soon as it has to cast the self buff (which it can do correctly now, it's memd), the mana bar disappears.
With the mana bar in place, I removed from my buff list, a different self buff, which I did not have memd. The bot detected I I had lost the buff, and my mana bar disappeared. The bot unmem'd gem7, and memd the spell, and rebuffed me fine.
With the above armor spell now on me but not memd, I removed that buff. The bot detected I had lost it, but failed to mem it, and I get the spam back.
I'm posting all these variations because you can probably fix the mem / spam problem, but something in there is making the mana bar disappear, so I wanted to give you a bunch of scenarios that trigger "the vanishing".