It seems now that the app crashes if the shader nodes are used with multiple shaders. At least it crashed on one occasion when the same list of lights were used on multiple StandardMaterial objects. Further, it seems like ShaderNodes don't behave well when parented to a Qt3D entity.