It seems like it was some damaged file from my /home/username because I created a new user (and I'm using it) and it hasn't crashed since that. Don't know what it was exactly but it works now