Improbable Icon

SpatialOS Discourse Forums

Encountered unexpected unhandled error that might be fatal to the deployment

I’m getting these bugs with calling Process on a dispatcher.
Within the output it said “Encountered unexpected unhandled error that might be fatal to the deployment. Please report this as a bug!”

I’ve been trying to run SpatialOS on it’s own thread. When this started happening I decided to move it back to the main thread too see if that was the problem. Now that it’s back to the main thread It’s still giving me these errors, though I’m seg faulting later in the program.

For some reason I keep spinning up managers after the first one fails.

runtime.log (411.7 KB)

Preparing to run SpatialOS.
No changes detected, skipping code generation.
‘spatial prepare-for-run’ succeeded (0.0s)
SpatialOS will launch from snapshot file ‘/mnt/d/GitHubRepos/SpatialClientServer/SpatialOS/snapshots/default.snapshot’.
SpatialOS starting.
[improbable.worker.assembly.WorkerAssemblyProviderFactory] Loaded worker assemblies for these workers types: External, Managed.
[improbable.module.ModuleNodeHelpers] Using the new Runtime including new bridge, load balancer, and entity database.
[improbable.worker.assembly.WorkerAssemblyProvider] The following worker configurations do not contain valid managed launch configurations for the current platform LINUX, and the runtime will be unable to launch managed workers of this type: [External]. This is expected for worker types you intend to only connect manually.
[improbable.module.ModuleNode] Snapshot analysed in 0.1109897s.
[improbable.module.ModuleNodeHelpers] Loading snapshot.
[improbable.persistence.snapshot.SnapshotLoader] Loaded 3 entities from snapshot, waiting for all of them to be created.[improbable.module.ModuleNodeHelpers] Snapshot has been successfully loaded in 0.07s.
[improbable.module.ModuleNode] SpatialOS runtime startup completed in 3.511s.
Following workers have been discovered and pre-cached: [Managed].
[improbable.receptionist.BridgeAllocator] Handling connection request for worker of type Managed trying to log in: simulation0
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation0 connected to SpatialOS successfully.[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation0 disconnected from SpatialOS with cause CONNECTION_CLOSED: REMOTE_SHUTDOWN: transport remote peer closed the connection
Worker simulation0 exited with an error. Exit status: signal: segmentation fault (core dumped).
signal: segmentation fault (core dumped)
[improbable.receptionist.BridgeAllocator] Handling connection request for worker of type Managed trying to log in: simulation1
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation1 connected to SpatialOS successfully.Worker simulation1 exited with an error. Exit status: signal: segmentation fault (core dumped).
signal: segmentation fault (core dumped)
[improbable.bridge.v3.async.workerlogging.WorkerLogMessageHandler] [simulation1:startup.cc] Connected successfully
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation1 disconnected from SpatialOS with cause CONNECTION_CLOSED: REMOTE_SHUTDOWN: transport remote peer closed the connection
[improbable.receptionist.BridgeAllocator] Handling connection request for worker of type Managed trying to log in: simulation2
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation2 connected to SpatialOS successfully.[improbable.bridge.v3.async.workerlogging.WorkerLogMessageHandler] [simulation2:startup.cc] Connected successfully
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation2 disconnected from SpatialOS with cause CONNECTION_CLOSED: REMOTE_SHUTDOWN: transport remote peer closed the connection
[improbable.common.async.FabricListeningExecutorService] SpatialOS-internal error: Encountered unexpected unhandled error that might be fatal to the deployment. Please report this as a bug!
Worker simulation2 exited with an error. Exit status: signal: segmentation fault (core dumped).
signal: segmentation fault (core dumped)
[improbable.receptionist.BridgeAllocator] Handling connection request for worker of type Managed trying to log in: simulation3
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation3 connected to SpatialOS successfully.[improbable.bridge.v3.async.workerlogging.WorkerLogMessageHandler] [simulation3:startup.cc] Connected successfully
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation3 disconnected from SpatialOS with cause CONNECTION_CLOSED: LOCAL_SHUTDOWN: transport was shut down locally
[improbable.receptionist.BridgeAllocator] Handling connection request for worker of type Managed trying to log in: simulation4
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation4 connected to SpatialOS successfully.[improbable.bridge.v3.async.workerlogging.WorkerLogMessageHandler] [simulation4:startup.cc] Connected successfully
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation4 disconnected from SpatialOS with cause CONNECTION_CLOSED: REMOTE_SHUTDOWN: transport remote peer closed the connection
[improbable.receptionist.BridgeAllocator] Handling connection request for worker of type Managed trying to log in: simulation5
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation5 connected to SpatialOS successfully.[improbable.bridge.v3.async.workerlogging.WorkerLogMessageHandler] [simulation5:startup.cc] Connected successfully
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation5 disconnected from SpatialOS with cause CONNECTION_CLOSED: LOCAL_SHUTDOWN: transport was shut down locally
[improbable.receptionist.BridgeAllocator] Handling connection request for worker of type Managed trying to log in: simulation6
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation6 connected to SpatialOS successfully.[improbable.bridge.v3.async.workerlogging.WorkerLogMessageHandler] [simulation6:startup.cc] Connected successfully
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation6 disconnected from SpatialOS with cause CONNECTION_CLOSED: REMOTE_SHUTDOWN: transport remote peer closed the connection
[improbable.receptionist.BridgeAllocator] Handling connection request for worker of type Managed trying to log in: simulation7
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation7 connected to SpatialOS successfully.[improbable.bridge.v3.async.workerlogging.WorkerLogMessageHandler] [simulation7:startup.cc] Connected successfully
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation7 disconnected from SpatialOS with cause CONNECTION_CLOSED: REMOTE_SHUTDOWN: transport remote peer closed the connection
[improbable.receptionist.BridgeAllocator] Handling connection request for worker of type Managed trying to log in: simulation8
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation8 connected to SpatialOS successfully.[improbable.bridge.v3.async.workerlogging.WorkerLogMessageHandler] [simulation8:startup.cc] Connected successfully
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation8 disconnected from SpatialOS with cause CONNECTION_CLOSED: REMOTE_SHUTDOWN: transport remote peer closed the connection
[improbable.receptionist.BridgeAllocator] Handling connection request for worker of type Managed trying to log in: simulation9
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation9 connected to SpatialOS successfully.[improbable.bridge.v3.async.workerlogging.WorkerLogMessageHandler] [simulation9:startup.cc] Connected successfully
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation9 disconnected from SpatialOS with cause CONNECTION_CLOSED: REMOTE_SHUTDOWN: transport remote peer closed the connection
[improbable.receptionist.BridgeAllocator] Handling connection request for worker of type Managed trying to log in: simulation10
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation10 connected to SpatialOS successfully.
[improbable.bridge.v3.async.workerlogging.WorkerLogMessageHandler] [simulation10:startup.cc] Connected successfully
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation10 disconnected from SpatialOS with cause CONNECTION_CLOSED: REMOTE_SHUTDOWN: transport remote peer closed the connection
[improbable.receptionist.BridgeAllocator] Handling connection request for worker of type Managed trying to log in: simulation11
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation11 connected to SpatialOS successfully.
[improbable.bridge.v3.async.workerlogging.WorkerLogMessageHandler] [simulation11:startup.cc] Connected successfully
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation11 disconnected from SpatialOS with cause CONNECTION_CLOSED: LOCAL_SHUTDOWN: transport was shut down locally
[improbable.receptionist.BridgeAllocator] Handling connection request for worker of type Managed trying to log in: simulation12
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation12 connected to SpatialOS successfully.
[improbable.bridge.v3.async.workerlogging.WorkerLogMessageHandler] [simulation12:startup.cc] Connected successfully
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation12 disconnected from SpatialOS with cause CONNECTION_CLOSED: REMOTE_SHUTDOWN: transport remote peer closed the connection
[improbable.receptionist.BridgeAllocator] Handling connection request for worker of type Managed trying to log in: simulation13
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation13 connected to SpatialOS successfully.
[improbable.bridge.v3.async.workerlogging.WorkerLogMessageHandler] [simulation13:startup.cc] Connected successfully
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation13 disconnected from SpatialOS with cause CONNECTION_CLOSED: REMOTE_SHUTDOWN: transport remote peer closed the connection
[improbable.receptionist.BridgeAllocator] Handling connection request for worker of type Managed trying to log in: simulation14
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation14 connected to SpatialOS successfully.
[improbable.bridge.v3.async.workerlogging.WorkerLogMessageHandler] [simulation14:startup.cc] Connected successfully
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation14 disconnected from SpatialOS with cause CONNECTION_CLOSED: REMOTE_SHUTDOWN: transport remote peer closed the connection
[improbable.receptionist.BridgeAllocator] Handling connection request for worker of type Managed trying to log in: simulation15
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation15 connected to SpatialOS successfully.
[improbable.bridge.v3.async.workerlogging.WorkerLogMessageHandler] [simulation15:startup.cc] Connected successfully
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation15 disconnected from SpatialOS with cause CONNECTION_CLOSED: REMOTE_SHUTDOWN: transport remote peer closed the connection
[improbable.receptionist.BridgeAllocator] Handling connection request for worker of type Managed trying to log in: simulation16
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation16 connected to SpatialOS successfully.
[improbable.bridge.v3.async.workerlogging.WorkerLogMessageHandler] [simulation16:startup.cc] Connected successfully
[improbable.bridge.service.lifecycle.BridgeLifecycleManager] The worker simulation16 disconnected from SpatialOS with cause CONNECTION_CLOSED: REMOTE_SHUTDOWN: transport remote peer closed the connection


Fixed this one, but you can use the error logs for inside for debugging the SpatialOS side of things. There was a case of infinite recursion within my code.

Hey again @adamriley1219, glad you got this fixed :slight_smile:

In future, if you’re raising issues/possible bugs or have questions that are technical like these and need technical support, can you post them to https://forums.improbable.io/c/sup rather than Feedback? This helps our Support team identify issues better.

Best,
Nee