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
GitCommands.Settings#GetGitExtensionsDirectory: Crash if fileName.LastIndexOfAny returns -1 #1790
Comments
Can you try to build it from branch jb/1790? |
Cherry-picked 79cb936, fixed the problem. Thanks |
I am curious how it will work on wine. Could you share somewhere exe? |
This is 2.44 with 5387b6a and 79cb936 applied, compiled with Xamarin Studio (except for a few DLLs that were taken from the 2.44 release zip and the Mono directory): gitext_standalone.7z (sha256: 1d24105864a83282e66c220dfd98f77db8f267557539a0049ca75db841bc76c1) Note that mkbundle also works on Linux/OS X, so one should be able to create native binaries for these OSs as well, so wine shouldn't be necessary. |
Every new window crash for me this GitEx |
You mean the binaries I posted above? And you tried them on Windows? |
This is just for informations. |
…BuildServerIntegration * pbombeiro/BuildServerIntegration: (32 commits) Make settings thread safe. async is a keyword. Fix compare. We already know it matched so no need to check the string. Check for later version updates only. Fixed submodule status on diff tab Make Settings.cs changes compatible with 45600a8. Update checked property when menu is shown. This allows the item to be refreshed between instances. Submodule GitExtensionsDoc updated Fix for gitextensions#1790. Fix key already exists bug. Removed SafeGet/SafeSet methods First step to remove SafeGet/SafeSet methods Fix bug where settings were not being retrieved again if file was modified. Make it easier for user to find settings by sorting keys. Clean up. Used two dictionaries to keep encoded values seperate from decoded values. Add me as a coder. Fix null exception error. Make sure dictionary is locked wherever a value is being set. ...
Application crashes when GitCommands.Settings#GetGitExtensionsDirectory is called and
fileName.LastIndexOfAny
returns-1
.Can
Assembly.GetAssembly(typeof(Settings)).Location
be replaced by something else?I'm currently trying to turn GitExt into a .NET-independent executable with mkbundle, works pretty well so far (with some workarounds) and the resulting binaries are only of a few MB in size, no .NET or full Mono needed to run it, as the necessary Mono libraries are bundled with the executable.
But when trying to open the settings dialog, GitExt crashes. Will have to debug later, but I guess
Assembly.GetAssembly(typeof(Settings)).Location
is an empty string or something.The text was updated successfully, but these errors were encountered: