• Hi Guest!

    Please be aware that we have released another critical security patch for VaM. We strongly recommend updating to version 1.22.0.12 using the VaM_Updater found in your installation folder.

    Details about the security patch can be found here.

VAMUpdater doesn't start

lol715

New member
Messages
1
Reactions
0
Points
1
Recently, I have been having an issue with the updater. I open it, it loads for 4 seconds, then quits. The directory is at C:/vam, I have added it to firewall and antivirus exclusion lists. Event Viewer also mentions a .NET unhandled exception, which I have put below.

Code:
Exception Info: System.IO.FileFormatException
   at MS.Internal.Text.TextInterface.Native.Util.ConvertHresultToException(Int32)
   at MS.Internal.Text.TextInterface.FontList.get_Item(UInt32)
   at MS.Internal.FontFace.PhysicalFontFamily.MapGlyphTypeface(System.Windows.FontStyle, System.Windows.FontWeight, System.Windows.FontStretch, System.Windows.Media.TextFormatting.CharacterBufferRange, System.Globalization.CultureInfo, Int32 ByRef, Int32 ByRef)
   at MS.Internal.Shaping.TypefaceMap.MapByFontFaceFamily(System.Windows.Media.TextFormatting.CharacterBufferRange, System.Globalization.CultureInfo, System.Globalization.CultureInfo, MS.Internal.FontFace.IFontFamily, System.Windows.FontStyle, System.Windows.FontWeight, System.Windows.FontStretch, MS.Internal.FontFace.PhysicalFontFamily ByRef, Int32 ByRef, MS.Internal.FontFace.IDeviceFont, Boolean, Double, MS.Internal.SpanVector, Int32, Boolean, Int32 ByRef)
   at MS.Internal.Shaping.TypefaceMap.MapByFontFamily(System.Windows.Media.TextFormatting.CharacterBufferRange, System.Globalization.CultureInfo, System.Globalization.CultureInfo, MS.Internal.FontFace.IFontFamily, MS.Internal.FontCache.CanonicalFontFamilyReference, System.Windows.FontStyle, System.Windows.FontWeight, System.Windows.FontStretch, MS.Internal.FontFace.PhysicalFontFamily ByRef, Int32 ByRef, MS.Internal.FontFace.IDeviceFont, Double, Int32, MS.Internal.SpanVector, Int32, Int32 ByRef)
   at MS.Internal.Shaping.TypefaceMap.MapOnceByFontFamilyList(System.Windows.Media.TextFormatting.CharacterBufferRange, System.Globalization.CultureInfo, System.Globalization.CultureInfo, System.Windows.Media.FontFamily[], MS.Internal.FontFace.PhysicalFontFamily ByRef, Int32 ByRef, MS.Internal.FontFace.IDeviceFont, Double, Int32, MS.Internal.SpanVector, Int32, Int32 ByRef)
   at MS.Internal.Shaping.TypefaceMap.MapByFontFamilyList(System.Windows.Media.TextFormatting.CharacterBufferRange, System.Globalization.CultureInfo, System.Globalization.CultureInfo, System.Windows.Media.FontFamily[], MS.Internal.FontFace.PhysicalFontFamily ByRef, Int32 ByRef, MS.Internal.FontFace.IDeviceFont, Double, Int32, MS.Internal.SpanVector, Int32, Int32 ByRef)
   at MS.Internal.Shaping.TypefaceMap.MapItem(System.Windows.Media.TextFormatting.CharacterBufferRange, System.Globalization.CultureInfo, MS.Internal.Span, MS.Internal.Generic.SpanVector`1<Int32> ByRef, Int32)
   at MS.Internal.Shaping.TypefaceMap.GetShapeableText(System.Windows.Media.TextFormatting.CharacterBufferReference, Int32, System.Windows.Media.TextFormatting.TextRunProperties, System.Globalization.CultureInfo, Boolean, System.Collections.Generic.IList`1<MS.Internal.TextFormatting.TextShapeableSymbols>, MS.Internal.TextFormatting.IShapeableTextCollector, System.Windows.Media.TextFormattingMode)
   at MS.Internal.Shaping.GlyphingCache.GetShapeableText(System.Windows.Media.Typeface, System.Windows.Media.TextFormatting.CharacterBufferReference, Int32, System.Windows.Media.TextFormatting.TextRunProperties, System.Globalization.CultureInfo, Boolean, System.Collections.Generic.IList`1<MS.Internal.TextFormatting.TextShapeableSymbols>, MS.Internal.TextFormatting.IShapeableTextCollector, System.Windows.Media.TextFormattingMode)
   at System.Windows.Media.TextFormatting.TextCharacters.MS.Internal.TextFormatting.ITextSymbols.GetTextShapeableSymbols(MS.Internal.Shaping.GlyphingCache, System.Windows.Media.TextFormatting.CharacterBufferReference, Int32, Boolean, Boolean, System.Globalization.CultureInfo, System.Windows.Media.TextFormatting.TextModifierScope, System.Windows.Media.TextFormattingMode, Boolean)
   at MS.Internal.TextFormatting.TextStore.CreateTextLSRuns(MS.Internal.TextFormatting.TextRunInfo, System.Collections.Generic.IList`1<System.Windows.Media.TextEffect>, System.Globalization.CultureInfo, Int32, Int32, Int32, System.Windows.Media.TextFormattingMode, Boolean, Int32 ByRef)
   at MS.Internal.TextFormatting.TextStore.CreateLSRuns(MS.Internal.TextFormatting.TextRunInfo, System.Collections.Generic.IList`1<System.Windows.Media.TextEffect>, System.Globalization.CultureInfo, Int32, Int32, Int32, System.Windows.Media.TextFormattingMode, Boolean, Int32 ByRef, Int32 ByRef)
   at MS.Internal.TextFormatting.TextStore.CreateLSRunsUniformBidiLevel(MS.Internal.SpanVector, MS.Internal.SpanVector, Int32, Int32, Int32, Int32, System.Windows.Media.TextFormattingMode, Boolean, Int32 ByRef)
   at MS.Internal.TextFormatting.TextStore.FetchLSRun(Int32, System.Windows.Media.TextFormattingMode, Boolean, MS.Internal.TextFormatting.Plsrun ByRef, Int32 ByRef, Int32 ByRef)
   at MS.Internal.TextFormatting.LineServicesCallbacks.FetchRunRedefined(IntPtr, Int32, Int32, IntPtr, Char*, Int32, Int32 ByRef, Char* ByRef, Int32 ByRef, Int32 ByRef, MS.Internal.TextFormatting.LsChp ByRef, IntPtr ByRef)
 
This is beyond my .NET comprehension, but this is what ChatGPT had to say:

This exception, System.IO.FileFormatException, suggests that there's a problem with a font file being loaded by the WPF text rendering system. The stack trace indicates that the failure occurs during font selection and glyph mapping.

Possible Causes and Solutions:​

  1. Corrupt or Invalid Font File
    • A malformed or corrupted font installed on the system may be causing the exception.
    • Solution:
      • Check recently installed fonts.
      • Try removing suspicious fonts and restarting the application.
      • Run chkdsk /f on your system to ensure no disk corruption affecting font files.
  2. Unsupported Font Format
    • The application may be trying to load an unsupported or badly formatted font file.
    • Solution:
      • Try switching to a different font in your application.
      • Ensure that all fonts used are valid .ttf or .otf files.
  3. Font Cache Corruption
    • Windows caches fonts to improve performance, and corruption in the font cache can cause issues.
    • Solution:
      • Delete the font cache file (C:\Windows\System32\FNTCACHE.DAT).
      • Restart the computer to regenerate the cache.
  4. Permissions Issues
    • If the application does not have the necessary permissions to access font files, this could lead to errors.
    • Solution:
      • Run the application as an administrator. (Personal Note from Me: I am not recommending you run the updater with Admin privileges, no offense to the VAM Devs. Do this at your own risk).
      • Ensure that the C:\Windows\Fonts folder and font files have the correct read permissions.
  5. WPF Bug or .NET Framework Issue
    • If you're using an older version of .NET, it could be a bug in font handling.
    • Solution:
      • Update .NET and Windows to the latest version.
      • If running on a specific Windows build, check if there are known issues with font rendering.
 
The question is, what happened in between working and not working? That could show clues.
 
Back
Top Bottom