Why my pen has suddenly stopped working on toon boom 17

It works on clicking something on toon boom but i can’t draw anything, it just shows a stoke while drawing and when i pick up the pen from tab it disappears, I have huion tab and it was working fine till yesterday. I don’t know what to do with it please help