I am experiencing the same crash with same code as yours. It was working in 5.3, but now it doesn’t. See if this fixes it.