Skip to content

GitUp hangs on almost every action with a repo #942

@Gray-Wind

Description

@Gray-Wind

Actions like commit, move commits, split commits and many more lead to ~20 hang of the application.

I've looked at spindump and the problem is in snapshots saving:

1000  -[GCLiveRepository _saveSnapshot:withReason:argument:] + 604 (GitUpKit + 100676) [0x101458944]
  1000  -[GCLiveRepository _writeSnapshots] + 132 (GitUpKit + 99316) [0x1014583f4]
    1000  +[NSKeyedArchiver archiveRootObject:toFile:] + 224 (Foundation + 1091320) [0x18c6756f8]
      1000  -[NSKeyedArchiver finishEncoding] + 640 (Foundation + 299560) [0x18c5b4228]

I've found where snapshots are stored and they are way too big. I suppose that's the reason of hangs.

ls -lh .git/co.gitup.mac/snapshots.data
-rw-r--r--  1 user  staff   848M Aug  3 11:11 .git/co.gitup.mac/snapshots.data

Is there any way to make them smaller?

Metadata

Metadata

Assignees

No one assigned

    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