Skip to content

database is locked when importing two tilt series movies in 3.11.1 #610

@yghorbal

Description

@yghorbal

Hi,

I've noticed a weird issue when importing two titlt series movies (ProtImportTsMovies protocol) using scipion 3.7.1 and pyworkflow 3.11.1.
The import gets stuck for long minutes before issuing multiple database is locked statements and ends up failing.

Trying to update outputTiltSeriesM (output) of protocol tomo - import tilt-series movies, attempt=1: database is locked
Trying to update outputTiltSeriesM (output) of protocol tomo - import tilt-series movies, attempt=2: database is locked
Trying to update outputTiltSeriesM (output) of protocol tomo - import tilt-series movies, attempt=3: database is locked

The full run.stdout.log is attached (with DEBUG enabled and SCIPION_DEBUG_SQLITE set)

The same import with pyworkflow 3.10.6 works as expected (import takes seconds)
The same import with pyworkflow 3.11.1 succeeds when adding journal_mode: WAL to the pragmas dict in

The CHANGES refers to Parallel section refactored: Scipion threads and or "Package compute" lines.", maybe some condition was introduced and the sqlite db gets deadlocked with badly coordinated threads

The issue is reproducible at will for now!

Thank you for your assistance!

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions