2015-08-27 14:17:34.4223|Info|AstroGrep.Windows.Program.Main|### STARTING AstroGrep, version 4.4.3 ###
2015-08-27 14:17:34.5143|Info|AstroGrep.Windows.Program.Main|Displaying main search window.
2015-08-27 14:17:34.6353|Fatal|AstroGrep.Windows.Program.Main|Unhandled exception, exiting AstroGrep: Exception:
System.TypeInitializationException: The type initializer for 'ICSharpCode.AvalonEdit.Editing.LineNumberMargin' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Windows.FrameworkElement' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Windows.Documents.TextElement' threw an exception. ---> System.TypeInitializationException: The type initializer for 'MS.Internal.FontCache.Util' threw an exception. ---> System.UriFormatException: Invalid URI: The format of the URI could not be determined.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at MS.Internal.FontCache.Util..cctor()
--- End of inner exception stack trace ---
at MS.Internal.FontCache.Util.get_Dpi()
at System.Windows.SystemFonts.ConvertFontHeight(Int32 height)
at System.Windows.Documents.TextElement..cctor()
--- End of inner exception stack trace ---
at System.Windows.FrameworkElement..cctor()
--- End of inner exception stack trace ---
at ICSharpCode.AvalonEdit.Editing.LineNumberMargin..cctor()
--- End of inner exception stack trace ---
at ICSharpCode.AvalonEdit.Editing.LineNumberMargin..ctor()
at AstroGrep.Windows.Controls.TextEditorEx..ctor()
at AstroGrep.Windows.Forms.frmMain.InitializeComponent()
at AstroGrep.Windows.Forms.frmMain..ctor()
at AstroGrep.Windows.Program.Main()
Stack trace:
at ICSharpCode.AvalonEdit.Editing.LineNumberMargin..ctor()
at AstroGrep.Windows.Controls.TextEditorEx..ctor()
at AstroGrep.Windows.Forms.frmMain.InitializeComponent()
at AstroGrep.Windows.Forms.frmMain..ctor()
at AstroGrep.Windows.Program.Main()
Inner Exception 1:
System.TypeInitializationException: The type initializer for 'System.Windows.FrameworkElement' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Windows.Documents.TextElement' threw an exception. ---> System.TypeInitializationException: The type initializer for 'MS.Internal.FontCache.Util' threw an exception. ---> System.UriFormatException: Invalid URI: The format of the URI could not be determined.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at MS.Internal.FontCache.Util..cctor()
--- End of inner exception stack trace ---
at MS.Internal.FontCache.Util.get_Dpi()
at System.Windows.SystemFonts.ConvertFontHeight(Int32 height)
at System.Windows.Documents.TextElement..cctor()
--- End of inner exception stack trace ---
at System.Windows.FrameworkElement..cctor()
--- End of inner exception stack trace ---
at ICSharpCode.AvalonEdit.Editing.LineNumberMargin..cctor()
Inner Exception 2:
System.TypeInitializationException: The type initializer for 'System.Windows.Documents.TextElement' threw an exception. ---> System.TypeInitializationException: The type initializer for 'MS.Internal.FontCache.Util' threw an exception. ---> System.UriFormatException: Invalid URI: The format of the URI could not be determined.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at MS.Internal.FontCache.Util..cctor()
--- End of inner exception stack trace ---
at MS.Internal.FontCache.Util.get_Dpi()
at System.Windows.SystemFonts.ConvertFontHeight(Int32 height)
at System.Windows.Documents.TextElement..cctor()
--- End of inner exception stack trace ---
at System.Windows.FrameworkElement..cctor()
Inner Exception 3:
System.TypeInitializationException: The type initializer for 'MS.Internal.FontCache.Util' threw an exception. ---> System.UriFormatException: Invalid URI: The format of the URI could not be determined.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at MS.Internal.FontCache.Util..cctor()
--- End of inner exception stack trace ---
at MS.Internal.FontCache.Util.get_Dpi()
at System.Windows.SystemFonts.ConvertFontHeight(Int32 height)
at System.Windows.Documents.TextElement..cctor()
Inner Exception 4:
System.UriFormatException: Invalid URI: The format of the URI could not be determined.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at MS.Internal.FontCache.Util..cctor()
Anonymous
What OS are you running on this? Can you confirm you have the font Lucida Console installed (that is the default font used if you haven't changed the results preview font)?
Thanks.
It looks like this is caused by the path variable being to long. Here is a fix for the issue where getting it under 2047 characters will fix the issue: http://superuser.com/questions/355594/windows-7s-path-and-environment-variables-are-corrupted/379173#379173