emoji.wpf icon indicating copy to clipboard operation
emoji.wpf copied to clipboard

emoji.wpf makes an exception if it cannot render the emoji

Open disable-0001 opened this issue 3 years ago • 5 comments

Example of line: <Image Height="24" emoji:Image.Source="🧱"/>

I got a user of my software that doesn't have support for these types of emojis cuz he is running Windows 8, making the program generate an exception and it won't load the emojis.

Is there any way we can handle this exception? I'm loading the emoji via XAML.

Thanks!

disable-0001 avatar Apr 08 '21 10:04 disable-0001

Do you think you could find the exception message, stack trace etc.? I’ll try to investigate the problem but the exception details would be really helpful.

samhocevar avatar Apr 08 '21 14:04 samhocevar

Het instellen van eigenschap Emoji.Wpf.Image.Source heeft een uitzondering veroorzaakt. regelnummer 435 en regelpositie 36. bij System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri) bij System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri) bij System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream) bij System.Windows.Application.LoadComponent(Object component, Uri resourceLocator) bij Restocks.MainWindow.InitializeComponent() bij Restocks.MainWindow..ctor() PresentationFramework

Sorry, the user is from Denmark, couldn't get it in English

disable-0001 avatar Apr 10 '21 14:04 disable-0001

La propriété Set 'Emoji.Wpf.Image.Source' a levé une exception. à System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri) à System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri) à System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream) à System.Windows.Application.LoadComponent(Object component, Uri resourceLocator) à -.I1iIil1Il1II.InitializeComponent() à -.I1iIil1Il1II..ctor() PresentationFramework

Other one over here, thanks!

disable-0001 avatar Apr 16 '21 10:04 disable-0001

Any news into this ? I need to build two releases, one without this library due to it crashes loading the emojis visually.

disable-0001 avatar Jul 11 '21 19:07 disable-0001

Hi! I tried to reproduce the problem and found a crash on Windows 8 that was fixed in Emoji.Wpf version 0.3.3. Could you maybe confirm this was the same problem?

samhocevar avatar Jul 21 '21 09:07 samhocevar

I’m closing this issue because I believe it was fixed. Please feel free to reopen if the problem is still there.

samhocevar avatar Nov 17 '22 08:11 samhocevar