character-map-uwp / Character-Map-UWP

A modern, native UWP replacement for the Win32 Character Map and Windows Font Viewer with flawless high DPI and touch support.
MIT License
615 stars 52 forks source link

After importing fonts and adding them to the library, an error occurred when saving as SVG images #170

Closed gobifox closed 3 years ago

gobifox commented 3 years ago
COM object that has been separated from its underlying RCW cannot be used.
   at System.Runtime.InteropServices.McgMarshal.GetInterface(__ComObject, RuntimeTypeHandle) + 0xfe
   at __Interop.ComCallHelpers.Call(__ComObject, RuntimeTypeHandle, Int32, Void*) + 0x3a
   at __Interop.ForwardComStubs.Stub_3[TThis, TResult](__ComObject, Int32) + 0x37
   at CharacterMap.Views.FontMapView.<FontMapView_Loaded>b__30_0(Object, AppNotificationMessage) + 0x20
   at CharacterMap!<BaseAddress>+0x436e8e
   at Microsoft.Toolkit.Mvvm.Messaging.WeakReferenceMessenger.Send[TMessage, TToken](TMessage, TToken) + 0x29d
   at Microsoft.Toolkit.Mvvm.Messaging.IMessengerExtensions.Send[TMessage](IMessenger, TMessage) + 0x3f
   at CharacterMap.ViewModels.FontMapViewModel.<SaveSvgAsync>d__169.MoveNext() + 0x29f
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult() + 0xb
   at CharacterMap.ViewModels.FontMapViewModel.<<-ctor>b__148_1>d.MoveNext() + 0x8c
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__7_0(Object) + 0x1e
   at System.Action`1.Invoke(T) + 0x28
   at System.Threading.WinRTSynchronizationContext.Invoker.InvokeCore() + 0x33

OS Version: 10.0.17763.316 OS Architecture: X64 App Version: 2021.3.0.0 App Culture: zh-CN

gobifox commented 3 years ago

After restarting the application, it returns to normal.