When an error is raised in the actor pre-start, the supervision is not used and therefore the parent actor is never notified that the child actor failed to start. The exception is simply returned to the caller of the actorOf. In the example below, this behaviour would cause the application to "get stuck" waiting for the actor system to terminate. Since the parent actor, in this case the user guardian, is never notified of such an issue, the system will never terminate.
Description
When an error is raised in the actor pre-start, the supervision is not used and therefore the parent actor is never notified that the child actor failed to start. The exception is simply returned to the caller of the actorOf. In the example below, this behaviour would cause the application to "get stuck" waiting for the actor system to terminate. Since the parent actor, in this case the user guardian, is never notified of such an issue, the system will never terminate.