As the subject pointed out, if I put the "take screenshot" action into my state machine, Unity crashes. Interesting thing is that in the playmaker editor it looks like it doesn't even reach that state where the action is, but if remove the action, then everything works as usual.