- 
                Notifications
    
You must be signed in to change notification settings  - Fork 58
 
Open
Labels
Description
I dragged this TTF file from Windows Explorer onto Character Map UWP.
The application called an interface that was marshalled for a different thread.
The font URI specified is not a valid application URI that can be opened by StorageFile.GetFileFromApplicationUriAsync.
   at System.Runtime.InteropServices.McgMarshal.ThrowOnExternalCallFailed(Int32, RuntimeTypeHandle) + 0x21
   at __Interop.ComCallHelpers.Call(__ComObject, RuntimeTypeHandle, Int32, Void*, HSTRING, Void*, Single, Single, Void*) + 0xee
   at Microsoft.Graphics.Canvas.Text.ICanvasTextLayoutFactory__Impl.Stubs.Create(__ComObject, ICanvasResourceCreator, String, CanvasTextFormat, Single, Single) + 0xfd
   at Microsoft.Graphics.Canvas.Text.CanvasTextLayout.__Factory_Microsoft_Graphics_Canvas_Text__ICanvasTextLayoutFactory_Create(String, ICanvasResourceCreator, String, CanvasTextFormat, Single, Single) + 0x4c
   at Microsoft.Graphics.Canvas.Text.CanvasTextLayout..ctor(ICanvasResourceCreator, String, CanvasTextFormat, Single, Single) + 0x4f
   at CharacterMap.ViewModels.FontMapViewModel.GetCharAnalysis(Character) + 0x1e5
   at CharacterMap.ViewModels.FontMapViewModel.UpdateCharAnalysis() + 0xd4
   at CharacterMap.ViewModels.FontMapViewModel.set_SelectedChar(Character) + 0xc1
   at CharacterMap.ViewModels.FontMapViewModel.SetDefaultChar(Int32) + 0x17e
   at CharacterMap.ViewModels.FontMapViewModel.set_SelectedVariant(FontVariant) + 0xc1
   at CharacterMap.ViewModels.FontMapViewModel.SelectedFont_PropertyChanged(Object, PropertyChangedEventArgs) + 0x4e
   at System.Action`2.InvokeMulticastThunk(T1, T2) + 0x4e
   at System.EventHandler`1.Invoke(Object, TEventArgs) + 0x2e
   at CommunityToolkit.Mvvm.ComponentModel.ObservableObject.OnPropertyChanged(PropertyChangedEventArgs) + 0x21
   at CharacterMap.ViewModels.FontItem.OnPropertyChanged(PropertyChangedEventArgs) + 0x11
   at CharacterMap.ViewModels.FontItem.SetFont(InstalledFont) + 0xb1
   at CharacterMap.Views.MainPage.ViewModel_PropertyChanged(Object, PropertyChangedEventArgs) + 0x25f
   at System.Action`2.InvokeMulticastThunk(T1, T2) + 0x4e
   at System.EventHandler`1.Invoke(Object, TEventArgs) + 0x2e
   at CharacterMap.ViewModels.ViewModelBase.OnPropertyChanged(PropertyChangedEventArgs) + 0x20
   at CharacterMap.ViewModels.MainViewModel.set_SelectedFont(InstalledFont) + 0xac
   at CharacterMap.ViewModels.MainViewModel.TrySetSelectionFromImport(FontImportResult) + 0xcd
   at CharacterMap.Views.MainPage.<Grid_Drop>d__71.MoveNext() + 0x20b
--- 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.19045.5854
OS Architecture: X64
App Version: 2024.9.2.0
App Culture: en-GB