Skip to content

Database has locked during process #81

@jsadoine

Description

@jsadoine

Describe the bug

Traceback (most recent call last):
  File "/casa/host/install/python/brainvisa/processes.py", line 3412, in _processExecution
    result = process.execution(self)
  File "/casa/host/install/brainvisa/toolboxes/morphologist/processes/segmentationpipeline/components/GreyWhiteMesh.py", line 74, in execution
    tm.copyReferential(self.hemi_cortex, self.white_mesh)
  File "/casa/host/install/python/brainvisa/registration.py", line 308, in copyReferential
    refId = self.referential(sourceDiskItem)
  File "/casa/host/install/python/brainvisa/registration.py", line 72, in referential
    return neuroHierarchy.databases.getDiskItemFromUuid(uuid, None)
  File "/casa/host/install/python/brainvisa/data/sqlFSODatabase.py", line 2259, in getDiskItemFromUuid
    item = database.getDiskItemFromUuid(uuid, None)
  File "/casa/host/install/python/brainvisa/data/sqlFSODatabase.py", line 1455, in getDiskItemFromUuid
    cursor = self._getDatabaseCursor()
  File "/casa/host/install/python/brainvisa/data/sqlFSODatabase.py", line 1071, in _getDatabaseCursor
    cursor.execute('PRAGMA synchronous =  0')
sqlite3.OperationalError: database is locked

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Morphologist 2021'
  2. Select T1 image
  3. Unselect all before Hemispere Process + Grey White Classification +Grey White Topology (I need to reproduce only step for create white and hemi meshes)
  4. Unselect all after Cortical Folds
  5. Launch Process
  6. See error on the database

Expected behavior
The Morphologist 2021 process crashes with the error message: "database has been locked". Afterthat I can go to Preference -> Database->Edit and I select or unselect activate history in expert setting, click OK and the process works.

Screenshots
image
image
image
image

Environment:

  • Engine: Singularity
  • Version of BrainVISA [5.1.1]

Additional context
Only one database is problematic, I try to delete sqlite files and uptade database and problem persist. I have to do my process one by one, because i need to go in database preference for each subject to run the subject.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions