Well I think I have ruled out the script because trying to load my level in the physX sample script also makes that working script crash. My level also was working in A7 with ODE physics. It's just the upgrading to PhysX that seems to be showing a problem with it.

Which is why I tried rebuilding the level from scratch in A8 to see if that would fix the issue. So far no answer yet.