Skip to content

[Bug]: massCode.db-shm is in use and Onedrive is pending sync #635

Closed as not planned

Description

@mingzhao2019

Describe the bug

In the new release version (V4), onedrive always reports that massCode.db-shm is in use and thus is pending sync, while in previous version (v3) does not trigger this issue.

To reproduce

  1. Put the database file in onedrive
  2. use masscode 4 and open repo from onedrive folder.

App Version and Architecture

4.2.2

System info

System:
    OS: Windows 11 10.0.26200
    CPU: (16) x64 AMD Ryzen 7 8845HS w/ Radeon 780M Graphics
    Memory: 40.24 GB / 79.80 GB

Validations

Activity

  1. antonreshetov commented on Nov 11, 2025

    @antonreshetov
    Member

    Starting from v4, massCode uses SQLite3 as the database engine, whereas v3 stored data in plain JSON files.
    SQLite uses auxiliary files like massCode.db-shm and massCode.db-wal for write-ahead logging and synchronization.
    These files remain open while the application is running, which can cause OneDrive (and other sync tools) to show them as “in use” or “pending sync.”

    This behavior is normal for SQLite and doesn’t affect your data integrity.
    If you need to sync your workspace via OneDrive, it’s best to let it sync only after closing massCode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions