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

Source control crashes #3594

Closed
robleedotinfo opened this Issue Dec 7, 2017 · 12 comments

Comments

6 participants
@robleedotinfo

robleedotinfo commented Dec 7, 2017

2017-12-07 09:50:39.3355;TRACE-2.1.1.2526;Rubberduck.UI.SourceControl.SourceControlViewViewModel;FileSystemWatcher.EnableRaisingEvents is disabled.;
2017-12-07 09:50:46.2941;TRACE-2.1.1.2526;Rubberduck.UI.SourceControl.SourceControlViewViewModel;FileSystemWatcher.EnableRaisingEvents is disabled.;
2017-12-07 09:50:58.6804;TRACE-2.1.1.2526;Rubberduck.UI.SourceControl.SourceControlViewViewModel;FileSystemWatcher.EnableRaisingEvents is disabled.;
2017-12-07 09:52:02.0757;TRACE-2.1.1.2526;Rubberduck.UI.SourceControl.SourceControlViewViewModel;FileSystemWatcher.EnableRaisingEvents is disabled.;
2017-12-07 09:52:09.1204;DEBUG-2.1.1.2526;Rubberduck.UI.Command.MenuItems.ParentMenus.ParentMenuItemBase;(39129256) Executing click handler for menu item '&Source Control', hash code 25096836;
2017-12-07 09:52:10.6436;TRACE-2.1.1.2526;Rubberduck.UI.SourceControl.SourceControlViewViewModel;FileSystemWatcher.EnableRaisingEvents is disabled.;
2017-12-07 09:52:18.2923;TRACE-2.1.1.2526;Rubberduck.UI.SourceControl.SourceControlViewViewModel;Initializing repo;
2017-12-07 09:52:19.1574;WARN-2.1.1.2526;Rubberduck.UI.SourceControl.SourceControlViewViewModel;Handling SourceControlException: System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'git2-15e1193': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
   at LibGit2Sharp.Core.NativeMethods.git_libgit2_init()
   at LibGit2Sharp.Core.NativeMethods.LibraryLifetimeObject..ctor() in C:\projects\libgit2sharp\LibGit2Sharp\Core\NativeMethods.cs:line 35
   at LibGit2Sharp.Core.NativeMethods..cctor() in C:\projects\libgit2sharp\LibGit2Sharp\Core\NativeMethods.cs:line 81
   --- End of inner exception stack trace ---
   at LibGit2Sharp.Core.NativeMethods.git_repository_init_ext(git_repository*& repository, FilePath path, GitRepositoryInitOptions options)
   at LibGit2Sharp.Core.Proxy.git_repository_init_ext(FilePath workdirPath, FilePath gitdirPath, Boolean isBare) in C:\projects\libgit2sharp\LibGit2Sharp\Core\Proxy.cs:line 2477
   at LibGit2Sharp.Repository.Init(String path, Boolean isBare) in C:\projects\libgit2sharp\LibGit2Sharp\Repository.cs:line 454
   at Rubberduck.SourceControl.GitProvider.Init(String directory, Boolean bare) in C:\projects\rubberduck\Rubberduck.SourceControl\GitProvider.cs:line 138
   at Rubberduck.SourceControl.GitProvider.InitVBAProject(String directory) in C:\projects\rubberduck\Rubberduck.SourceControl\GitProvider.cs:line 180
   at Rubberduck.UI.SourceControl.SourceControlViewViewModel.InitRepo() in C:\projects\rubberduck\RetailCoder.VBE\UI\SourceControl\SourceControlViewViewModel.cs:line 640;
2017-12-07 09:52:19.1574;TRACE-2.1.1.2526;Rubberduck.UI.SourceControl.SourceControlViewViewModel;Displaying Error notification with title 'An unknown error occurred.' and message 'If logging is enabled, you may create an issue on our GitHub page with the contents of your log file in '%AppData%\Roaming\Rubberduck\Logs' for support.';
2017-12-07 09:52:19.1574;ERROR-2.1.1.2526;Rubberduck.UI.SourceControl.SourceControlViewViewModel;System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'git2-15e1193': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
   at LibGit2Sharp.Core.NativeMethods.git_libgit2_init()
   at LibGit2Sharp.Core.NativeMethods.LibraryLifetimeObject..ctor() in C:\projects\libgit2sharp\LibGit2Sharp\Core\NativeMethods.cs:line 35
   at LibGit2Sharp.Core.NativeMethods..cctor() in C:\projects\libgit2sharp\LibGit2Sharp\Core\NativeMethods.cs:line 81
   --- End of inner exception stack trace ---
   at LibGit2Sharp.Core.NativeMethods.git_repository_init_ext(git_repository*& repository, FilePath path, GitRepositoryInitOptions options)
   at LibGit2Sharp.Core.Proxy.git_repository_init_ext(FilePath workdirPath, FilePath gitdirPath, Boolean isBare) in C:\projects\libgit2sharp\LibGit2Sharp\Core\Proxy.cs:line 2477
   at LibGit2Sharp.Repository.Init(String path, Boolean isBare) in C:\projects\libgit2sharp\LibGit2Sharp\Repository.cs:line 454
   at Rubberduck.SourceControl.GitProvider.Init(String directory, Boolean bare) in C:\projects\rubberduck\Rubberduck.SourceControl\GitProvider.cs:line 138
   at Rubberduck.SourceControl.GitProvider.InitVBAProject(String directory) in C:\projects\rubberduck\Rubberduck.SourceControl\GitProvider.cs:line 180
   at Rubberduck.UI.SourceControl.SourceControlViewViewModel.InitRepo() in C:\projects\rubberduck\RetailCoder.VBE\UI\SourceControl\SourceControlViewViewModel.cs:line 660
   at Rubberduck.UI.SourceControl.SourceControlViewViewModel.<.ctor>b__11_0(Object _) in C:\projects\rubberduck\RetailCoder.VBE\UI\SourceControl\SourceControlViewViewModel.cs:line 68
   at Rubberduck.UI.Command.DelegateCommand.OnExecute(Object parameter) in C:\projects\rubberduck\RetailCoder.VBE\UI\Command\DelegateCommand.cs:line 26
   at Rubberduck.UI.Command.CommandBase.Execute(Object parameter) in C:\projects\rubberduck\RetailCoder.VBE\UI\Command\CommandBase.cs:line 48;
2017-12-07 09:52:23.2958;FATAL-2.1.1.2526;Rubberduck._Extension;System.UnhandledExceptionEventArgs;
@robleedotinfo

This comment has been minimized.

robleedotinfo commented Dec 12, 2017

Hi, I've just uninstalled and reinstalled Rubberduck, and still get the same error, seems I'm missing git2-15e1193.DLL. Is there anything I can do about this to fix it?

@NelsonVides

This comment has been minimized.

Member

NelsonVides commented Dec 12, 2017

Please give more information. What OS and host app are you using. Which version of RD have you installed. When exactly did it throw that error (which steps did you follow to reproduce it).

@robleedotinfo

This comment has been minimized.

robleedotinfo commented Dec 12, 2017

I'm on Windows 7 Enterprise SP1 64 bit, Excel in Office Professional Plus 2013, and I've just reinstalled Rubberduck 2.1.1.2532. If I open the source control window, it doesn't spot changes in the modules, so I have tried to open an existing repository and create a new repository. The error occurs on invoking either of those.

@rubberduck203

This comment has been minimized.

Member

rubberduck203 commented Dec 12, 2017

@Vogel612

This comment has been minimized.

Member

Vogel612 commented Dec 12, 2017

@rubberduck203 you're thinking about #3559

@rubberduck203

This comment has been minimized.

Member

rubberduck203 commented Dec 12, 2017

Thanks @vogel.

@NelsonVides you might want to check the installer script to see if it needs updated. I didn’t see any mods in your PR. It might also be worthwhile to see what SHA v1.85 of libgit2 relates to.

@vogel

This comment has been minimized.

vogel commented Dec 12, 2017

@rubberduck203 No problem. But it was not me.

@rubberduck203

This comment has been minimized.

Member

rubberduck203 commented Dec 12, 2017

Oops. Sorry @vogel. Cheers.

@robleedotinfo

This comment has been minimized.

robleedotinfo commented Dec 14, 2017

Hi, is there any progress on this? Failing that, is there an older version I could install in the meantime that will avoid it?

@Vogel612

This comment has been minimized.

Member

Vogel612 commented Dec 14, 2017

@robleedotinfo Unfortunately I removed the prereleases between 2.1.0 and 2.2.0. You can try installing v2.1.0. That should work "just fine" at least for source control.

@NelsonVides

This comment has been minimized.

Member

NelsonVides commented Dec 14, 2017

If you trust me in any way, I just built this installer with the correct .dll. You can try it and tell us if this problem persists. If it doesn't, then I found the issue :) After that, you may want to fall back to v2.1.0 as @Vogel612 just advised.
Rubberduck.Setup.zip

@winnieXY

This comment has been minimized.

winnieXY commented Dec 17, 2017

@NelsonVides I also hit this problem on Win7 64bit. I can confirm after using the attached zip file, the crash didn't occur anymore. Can you estimate when you'll release a fixed version of rubberduck?

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