libgit2 / libgit2/libgit2sharp

AccessViolationException thrown

Open
#1,691 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
3.5k
Forks
925
PR merge metrics
No merged PRs in 30d

Description

Reproduction steps

Please have a look to this issue :
https://github.com/git-tfs/git-tfs/issues/1281

It's probable that the problem occurs when a 'git gc' is launched.

I'm opening this issue to have more information and know if you have a solution to it.

Expected behavior

There is no AccessViolationException thrown

Actual behavior

There is an AccessViolationException thrown

Version of LibGit2Sharp (release number or SHA1)

Since update from LibGit2Sharp (0.25.3) to LibGit2Sharp (0.26) with LibGit2Sharp.NativeBinaries (2.0.267), this exception is thrown.

A user seems to report that updating the version of the NativeBinaries fix the problem. If that's true and you aware of it:

  • what is the good workaround?
  • when to expect a new release of LibGit2Sharp fixing the problem ?
Operating system(s) tested; .NET runtime tested

No information to provide 😕

Thanks a lot for your help.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked git-tfs issue and comparing the update from LibGit2Sharp 0.25.3 to 0.26 with LibGit2Sharp.NativeBinaries 2.0.267. Reproduce the AccessViolationException around a git gc operation if possible; done should identify the cause and establish a confirmed workaround or release path.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, git
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.