CryoSPARC ver.4.1.2 and Topaz Train

Topaz Train always fail due to this error.

Traceback (most recent call last):
File “/cryosparc/cryosparc_worker/cryosparc_compute/jobs/topaz/run_topaz.py”, line 256, in run_topaz_wrapper_train
curr_mic = micrographs_dset.query({‘uid’: curr_original_mic_uid})
File “/cryosparc/cryosparc_worker/cryosparc_tools/cryosparc/dataset.py”, line 1202, in query
return self.mask(self.query_mask(query))
File “/cryosparc/cryosparc_worker/cryosparc_tools/cryosparc/dataset.py”, line 1265, in mask
return type(self)([(f, self[f][mask]) for f in self])
File “/cryosparc/cryosparc_worker/cryosparc_tools/cryosparc/dataset.py”, line 638, in init
self.add_fields([entry[0] for entry in populate])
File “/cryosparc/cryosparc_worker/cryosparc_tools/cryosparc/dataset.py”, line 931, in add_fields
assert self._data.addcol_scalar(
AssertionError: Could not add (‘uid’, ‘<u8’) with dtype uint64

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “cryosparc_master/cryosparc_compute/run.py”, line 96, in cryosparc_compute.run.main
File “/cryosparc/cryosparc_worker/cryosparc_compute/jobs/topaz/run_topaz.py”, line 260, in run_topaz_wrapper_train
assert False, “Particles do not originate from input micrographs.”
AssertionError: Particles do not originate from input micrographs.

Please post

  • remaining (earlier) lines from the Event Log
  • a screenshot of the Inputs and Parameters tab
  • error messages from the job’s Metadata | Log tab, if any

Event Log
[2023-01-27 0:45:43.38]
License is valid.

[2023-01-27 0:45:43.38]
Launching job on lane default target bioinform01 …

[2023-01-27 0:45:43.59]
Running job on master node hostname bioinform01

[2023-01-27 0:45:48.82]
[CPU: 194.4 MB Avail: 166.72 GB]
Job J129 Started

[2023-01-27 0:45:48.87]
[CPU: 194.4 MB Avail: 166.71 GB]
Master running v4.1.2, worker running v4.1.2

[2023-01-27 0:45:48.91]
[CPU: 194.4 MB Avail: 166.70 GB]
Working in directory: /mnt/ikura18tb4/cryosparc_projects/CS-masa-ip3r3-apo/J129

[2023-01-27 0:45:48.91]
[CPU: 194.4 MB Avail: 166.70 GB]
Running on lane default

[2023-01-27 0:45:48.91]
[CPU: 194.4 MB Avail: 166.70 GB]
Resources allocated:

[2023-01-27 0:45:48.91]
[CPU: 194.4 MB Avail: 166.70 GB]
Worker: bioinform01

[2023-01-27 0:45:48.92]
[CPU: 194.4 MB Avail: 166.72 GB]
CPU : [14, 15, 16, 17, 18, 19, 20, 21]

[2023-01-27 0:45:48.92]
[CPU: 194.4 MB Avail: 166.72 GB]
GPU : [1]

[2023-01-27 0:45:48.92]
[CPU: 194.4 MB Avail: 166.71 GB]
RAM : [3]

[2023-01-27 0:45:48.93]
[CPU: 194.4 MB Avail: 166.71 GB]
SSD : False

[2023-01-27 0:45:48.93]
[CPU: 194.4 MB Avail: 166.71 GB]

[2023-01-27 0:45:48.94]
[CPU: 194.4 MB Avail: 166.70 GB]
Importing job module for job type topaz_train…

[2023-01-27 0:45:51.82]
[CPU: 254.0 MB Avail: 166.37 GB]
Job ready to run

[2023-01-27 0:45:51.83]
[CPU: 254.0 MB Avail: 166.37 GB]


[2023-01-27 0:45:52.10]
[CPU: 254.0 MB Avail: 166.37 GB]
Topaz is a particle detection tool created by Tristan Bepler and Alex J. Noble.
Citations:

  • Bepler, T., Morin, A., Rapp, M. et al. Positive-unlabeled convolutional neural networks for particle picking in cryo-electron micrographs. Nat Methods 16, 1153-1160 (2019) doi:10.1038/s41592-019-0575-8
  • Bepler, T., Noble, A.J., Berger, B. Topaz-Denoise: general deep denoising models for cryoEM. bioRxiv 838920 (2019) doi: https://doi.org/10.1101/838920

Structura Biotechnology Inc. and cryoSPARC do not license Topaz nor distribute Topaz binaries. Please ensure you have your own copy of Topaz licensed and installed under the terms of its GNU General Public License v3.0, available for review at: topaz/LICENSE at master · tbepler/topaz · GitHub.


[2023-01-27 0:46:37.56]
[CPU: 267.2 MB Avail: 165.32 GB]
Starting Topaz process using version 0.2.4…

[2023-01-27 0:46:37.57]
[CPU: 267.2 MB Avail: 165.32 GB]
Random seed used is 2003983812

[2023-01-27 0:46:37.57]
[CPU: 267.3 MB Avail: 165.32 GB]
Using denoised micrographs.

[2023-01-27 0:47:11.38]
[CPU: 267.4 MB Avail: 163.83 GB]

[2023-01-27 0:47:11.39]
[CPU: 267.5 MB Avail: 163.83 GB]
Starting preprocessing…

[2023-01-27 0:47:11.39]
[CPU: 267.5 MB Avail: 163.82 GB]
Using preprocessed micrographs at provided directory /mnt/ikura18tb4/cryosparc_projects/CS-masa-ip3r3-apo/J88/denoised_micrographs

Parameters tab



Metadata | Log tab
================= CRYOSPARCW ======= 2023-01-27 00:45:44.539597 =========
Project P3 Job J129
Master bioinform01 Port 39002

========= monitor process now starting main process at 2023-01-27 00:45:44.539637
MAINPROCESS PID 675548
========= monitor process now waiting for main process
MAIN PID 675548
topaz.run_topaz cryosparc_compute.jobs.jobregister
========= sending heartbeat at 2023-01-27 00:45:58.398959
========= sending heartbeat at 2023-01-27 00:46:08.832713
========= sending heartbeat at 2023-01-27 00:46:19.106545
========= sending heartbeat at 2023-01-27 00:46:29.541990
========= sending heartbeat at 2023-01-27 00:46:39.981597
========= sending heartbeat at 2023-01-27 00:46:50.541644
========= sending heartbeat at 2023-01-27 00:47:00.773666
========= sending heartbeat at 2023-01-27 00:47:11.089586
========= sending heartbeat at 2023-01-27 00:47:21.426765
========= sending heartbeat at 2023-01-27 00:47:31.865655
========= sending heartbeat at 2023-01-27 00:47:42.409606
========= sending heartbeat at 2023-01-27 00:47:53.014593
========= sending heartbeat at 2023-01-27 00:48:03.398787
uid: invalid handle 1, wrong generation counter (given 0, expected 32768) (errno 1: Operation not permitted)
add column: invalid handle 1, wrong generation counter (given 0, expected 32768) (errno 1: Operation not permitted)


Running job on hostname %s bioinform01
Allocated Resources : {‘fixed’: {‘SSD’: False}, ‘hostname’: ‘bioinform01’, ‘lane’: ‘default’, ‘lane_type’: ‘node’, ‘license’: False, ‘licenses_acquired’: 0, ‘slots’: {‘CPU’: [14, 15, 16, 17, 18, 19, 20, 21], ‘GPU’: [1], ‘RAM’: [3]}, ‘target’: {‘cache_path’: ‘/scratch/cryosparc_cache’, ‘cache_quota_mb’: None, ‘cache_reserve_mb’: 10000, ‘desc’: None, ‘gpus’: [{‘id’: 0, ‘mem’: 25396576256, ‘name’: ‘Quadro RTX 6000’}, {‘id’: 1, ‘mem’: 25396969472, ‘name’: ‘Quadro RTX 6000’}, {‘id’: 2, ‘mem’: 25396969472, ‘name’: ‘Quadro RTX 6000’}], ‘hostname’: ‘bioinform01’, ‘lane’: ‘default’, ‘monitor_port’: None, ‘name’: ‘bioinform01’, ‘resource_fixed’: {‘SSD’: True}, ‘resource_slots’: {‘CPU’: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39], ‘GPU’: [0, 1, 2], ‘RAM’: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23]}, ‘ssh_str’: ‘cryosparc_user@bioinform01’, ‘title’: ‘Worker node bioinform01’, ‘type’: ‘node’, ‘worker_bin_path’: ‘/cryosparc/cryosparc_worker/bin/cryosparcw’}}
**** handle exception rc
Traceback (most recent call last):
File “/cryosparc/cryosparc_worker/cryosparc_compute/jobs/topaz/run_topaz.py”, line 256, in run_topaz_wrapper_train
curr_mic = micrographs_dset.query({‘uid’: curr_original_mic_uid})
File “/cryosparc/cryosparc_worker/cryosparc_tools/cryosparc/dataset.py”, line 1202, in query
return self.mask(self.query_mask(query))
File “/cryosparc/cryosparc_worker/cryosparc_tools/cryosparc/dataset.py”, line 1265, in mask
return type(self)([(f, self[f][mask]) for f in self])
File “/cryosparc/cryosparc_worker/cryosparc_tools/cryosparc/dataset.py”, line 638, in init
self.add_fields([entry[0] for entry in populate])
File “/cryosparc/cryosparc_worker/cryosparc_tools/cryosparc/dataset.py”, line 931, in add_fields
assert self._data.addcol_scalar(
AssertionError: Could not add (‘uid’, ‘<u8’) with dtype uint64

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “cryosparc_master/cryosparc_compute/run.py”, line 96, in cryosparc_compute.run.main
File “/cryosparc/cryosparc_worker/cryosparc_compute/jobs/topaz/run_topaz.py”, line 260, in run_topaz_wrapper_train
assert False, “Particles do not originate from input micrographs.”
AssertionError: Particles do not originate from input micrographs.
set status to failed
========= main process now complete at 2023-01-27 00:48:04.451273.
========= monitor process now complete at 2023-01-27 00:48:04.457013.

Hello @menmt @wtempel

We have been experiencing the same error. Has there been any solution to this yet?

Welcome to the forum @Partha_Datta.
Please can you post your CryoSPARC version and confirm that you observed

inside the job log (Metadata|Log).
If you observed wrong generation counter , please update your CryoSPARC installation to the latest version and apply any patches for that latest version, if there are any.
Does the error persist when running CryoSPARC at the latest version?

We are using Cryosparc v4.1.2 and are observing the same error

================= CRYOSPARCW =======  2023-07-31 13:06:59.450302  =========
Project P4 Job J14
Master ppdlabnew Port 39002
===========================================================================
========= monitor process now starting main process at 2023-07-31 13:06:59.450341
MAINPROCESS PID 1807955
MAIN PID 1807955
topaz.run_topaz cryosparc_compute.jobs.jobregister
========= monitor process now waiting for main process
========= sending heartbeat at 2023-07-31 13:07:13.579129
========= sending heartbeat at 2023-07-31 13:07:23.597471
========= sending heartbeat at 2023-07-31 13:07:33.616713
========= sending heartbeat at 2023-07-31 13:07:43.634773
========= sending heartbeat at 2023-07-31 13:07:53.650792
========= sending heartbeat at 2023-07-31 13:08:03.671086
========= sending heartbeat at 2023-07-31 13:08:15.282746
========= sending heartbeat at 2023-07-31 13:08:25.301858
========= sending heartbeat at 2023-07-31 13:08:35.318773
========= sending heartbeat at 2023-07-31 13:08:45.334785
========= sending heartbeat at 2023-07-31 13:08:55.376292
========= sending heartbeat at 2023-07-31 13:09:05.414888
========= sending heartbeat at 2023-07-31 13:09:15.486989
========= sending heartbeat at 2023-07-31 13:09:25.550822
========= sending heartbeat at 2023-07-31 13:09:35.594905
========= sending heartbeat at 2023-07-31 13:09:45.670861
========= sending heartbeat at 2023-07-31 13:09:55.706941
========= sending heartbeat at 2023-07-31 13:10:05.739907
========= sending heartbeat at 2023-07-31 13:10:15.798806
========= sending heartbeat at 2023-07-31 13:10:25.851116
========= sending heartbeat at 2023-07-31 13:10:35.868752
========= sending heartbeat at 2023-07-31 13:10:45.888518
uid: invalid handle 1, wrong generation counter (given 0, expected 32768) (errno 1: Operation not permitted)
add column: invalid handle 1, wrong generation counter (given 0, expected 32768) (errno 1: Operation not permitted)

I shall try updating to the latest version and see if the error persists. Thank you for the feedback.