That's hitting close to home. I'm near end my funding and visa time, with not enough publications. The three years have been mostly being told no to whatever I proposed and not given worthwhile stuff to do instead. And when it did it was things already done 3-4 decades ago. My advisor even told me the other day things that made it clear he was aware of the kind of stuffs I want to incorporate in my work, yet didn't seek any middle ground.
On the other side I have multiple projects, the biggest one already presented in a conference. I meet multiple people my university and other big ones that are very enthusiastic about either that project or the official one (which got none in my own lab) so it's not like what I'm doing was totally dumb.
I'm not sure what to do now. I have 3 more years to write the thesis, but would need to find a job to stay in the country. Hopefully I used web technologies I can market on my CV but I'm bit sour about the whole thing (and life in general).