Skip to content

Slotmap size error for git repos with a large number of packs #622

Description

@arthurp

stg produces this error on my repo for any command: (except things like stg --version that presumably don't access the git state at all)

error: The slotmap turned out to be too small with 32 entries, would need 4 more

This only appears to happen on only some software configurations even on the same repo. Inside my development docker image it fails. This has this version:

# stg --version
Stacked Git 2.5.5
git version 2.53.0

but it works in the host environment:

# stg --version
Stacked Git 2.5.5
git version 2.43.0

The stg versions are the same, but git is different.

This problem went away after running git gc on the repo, which sadly means that I can't provide the repo for reproduction.

I suspect the issue is related to the number of packs in the repo and is probably due to GitoxideLabs/gitoxide#1788.

Workaround

Run git gc.

Activity

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

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