Patch Motion Correction "Child process with PID has terminated unexpectedly"

I saw this error discussed in a previous post, but the post was for v3.3.1, and I am on v3.3.2. After successfully importing movies, the patch motion correction job fails giving an error like:

File “cryosparc_worker/cryosparc_compute/”, line 85, in
File “cryosparc_worker/cryosparc_compute/jobs/motioncorrection/”, line 402, in
AssertionError: Child process with PID 654998 has terminated unexpectedly!

I’ve been using Cryosparc just fine up to this point, and it had no issues even yesterday. To my knowledge, nothing has changed about the versions of Cryosparc or CUDA toolkit I am using.

Using the command ‘uname -a && free -g’ in terminal gives:

Linux thornextalcomp 5.15.0-41-generic #44~20.04.1-Ubuntu SMP Fri Jun 24 13:27:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
total used free shared buff/cache available
Mem: 125 7 5 0 112 116
Swap: 15 2 13

The result of ‘${CRYOSPARC_CUDA_PATH}/bin/nvcc --version’ and ‘python -c “import pycuda.driver; print(pycuda.driver.get_version())”’ is:

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Fri_Dec_17_18:16:03_PST_2021
Cuda compilation tools, release 11.6, V11.6.55
Build cuda_11.6.r11.6/compiler.30794723_0

(11, 6, 0)

The command ‘nvidia-smi’ gives:

Failed to initialize NVML: Driver/library version mismatch

I suspect that this might be the root of the issue, but I am not sure how to deal with it.


I thought I should leave an update. Somehow restarting the machine solved this issue for me.

1 Like