Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use LibGit2Sharp v0.24.0 + fix crash when viewing PRs #1330

Merged
merged 2 commits into from Nov 22, 2017

Conversation

@jcansdale
Copy link
Collaborator

@jcansdale jcansdale commented Nov 21, 2017

The crash when viewing PRs was still happening in the GHfVS v2.3.5 bugfix release. This PR moves back to LibGit2Sharp v0.24.0 (because moving to v0.23.1 didn't fix it).

I've cherry-picked the fix from #1311. This wrapps the Repository object in a using statement. This appears to fix the issue, but I'm not convinced the fix is anything to do with disposing the Repository object (it can crash before the object has been disposed).

I'm not sure why the fix works, but it doesn't harm anything and it's worth getting out ASAP while we're working for a more concrete solution.

Fixes #1306

jcansdale added 2 commits Nov 21, 2017
Use the latest "stable" version of LibGit2Sharp.
Somehow putting the `repo` object in a `using` avoids the following issue:
#1306
@jcansdale jcansdale requested review from grokys and meaghanlewis Nov 21, 2017
@jcansdale
Copy link
Collaborator Author

@jcansdale jcansdale commented Nov 21, 2017

I haven't been able to this build crash using VS 2017 and the Avalonia solution. Went up and down the list of PRs and nothing. Please beat on it and see if you can make it crash!

@meaghanlewis
Copy link
Contributor

@meaghanlewis meaghanlewis commented Nov 21, 2017

this is looking great to me. tested in both VS2015 and VS2017 with multiple repositories and haven't experienced a crash when viewing PRs.

@grokys
grokys approved these changes Nov 22, 2017
Copy link
Contributor

@grokys grokys left a comment

LGTM! Tried it and don't seem to be getting the crashes any more.

@jcansdale jcansdale merged commit 0bb831f into release/2.3.6 Nov 22, 2017
3 checks passed
3 checks passed
GitHub CLA @jcansdale has accepted the GitHub Contributor License Agreement.
Details
continuous-integration/appveyor/branch AppVeyor build succeeded
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
@jcansdale jcansdale deleted the release/2.3.6-packages branch Nov 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.