PawelTroka / Computator.NET

Computator.NET is a special kind of numerical software that is fast and easy to use but not worse than others feature-wise. It's features include: - Real and complex functions charts - Real and complex calculator - Real functions numerical calculations including different methods - Over 107 Elementary functions - Over 141 Special functions - Over 21 Matrix functions and operations - Scripting language with power to easy computations including matrices - You can declare your own custom functions with scripting language
GNU General Public License v3.0
234 stars 51 forks source link

Chart3D crashing on some environments due to missing Font #130

Closed PawelTroka closed 6 years ago

PawelTroka commented 6 years ago

clr_exception_system.io.filenotfoundexception_80070002_presentationcore.dll!ms.internal.text.textinterface.font.createfontface This is from Windows Store developer dashboard. image

Failure log:

Date Package version Device type Device model OS build Links
11/25/2017 8:41:50 PM 2.3.1.0 PC Generic PCOther 10.0.14393.321 Stack trace

Stack Trace:

Frame Image Function Offset
0 PresentationCore.ni.dll MS.Internal.Text.TextInterface.Native.Util.ConvertHresultToException 0x00000000009458FA
1 PresentationCore.ni.dll MS.Internal.Text.TextInterface.Font.CreateFontFace 0x00000000000000AE
2 PresentationCore.ni.dll MS.Internal.Text.TextInterface.Font.AddFontFaceToCache 0x0000000000000022
3 PresentationCore.ni.dll MS.Internal.Text.TextInterface.Font.GetFontFace 0x00000000000000B8
4 PresentationCore.ni.dll System.Windows.Media.GlyphTypeface..ctor 0x0000000000000052
5 PresentationCore.ni.dll MS.Internal.FontFace.PhysicalFontFamily.GetGlyphTypeface 0x000000000000003E
6 PresentationCore.ni.dll MS.Internal.FontFace.PhysicalFontFamily.MS.Internal.FontFace.IFontFamily.GetTypefaceMetrics 0x000000000000000A
7 PresentationCore.ni.dll System.Windows.Media.Typeface.ConstructCachedTypeface 0x0000000000000134
8 PresentationCore.ni.dll System.Windows.Media.Typeface.get_CachedTypeface 0x0000000000000070
9 PresentationCore.ni.dll System.Windows.Media.Typeface.CheckFastPathNominalGlyphs 0x00000000000000A7
10 PresentationCore.ni.dll MS.Internal.TextFormatting.SimpleRun.CreateSimpleTextRun 0x00000000000001F4
11 PresentationCore.ni.dll MS.Internal.TextFormatting.SimpleRun.Create 0x0000000000000229
12 PresentationCore.ni.dll MS.Internal.TextFormatting.SimpleTextLine.Create 0x00000000000001BF
13 PresentationCore.ni.dll MS.Internal.TextFormatting.TextFormatterImp.FormatLineInternal 0x0000000000000119
14 PresentationCore.ni.dll MS.Internal.TextFormatting.TextFormatterImp.FormatLine 0x0000000000000034
15 PresentationFramework.ni.dll System.Windows.Controls.TextBlock.MeasureOverride 0x00000000000002FE
16 PresentationFramework.ni.dll System.Windows.FrameworkElement.MeasureCore 0x000000000000053F
17 PresentationCore.ni.dll System.Windows.UIElement.Measure 0x000000000000026E
18 PresentationFramework.ni.dll System.Windows.Controls.Canvas.MeasureOverride 0x00000000000000AB
19 PresentationFramework.ni.dll System.Windows.FrameworkElement.MeasureCore 0x000000000000053F
20 PresentationCore.ni.dll System.Windows.UIElement.Measure 0x000000000000026E
21 PresentationCore.ni.dll System.Windows.ContextLayoutManager.UpdateLayout 0x0000000000000218
22 PresentationCore.ni.dll System.Windows.ContextLayoutManager.UpdateLayoutCallback 0x0000000000000022
23 PresentationCore.ni.dll System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks 0x0000000000000091
24 PresentationCore.ni.dll System.Windows.Media.MediaContext.RenderMessageHandlerCore 0x000000000000009C
25 PresentationCore.ni.dll System.Windows.Media.MediaContext.RenderMessageHandler 0x000000000000007B
26 WindowsBase.ni.dll System.Windows.Threading.ExceptionWrapper.InternalRealCall 0x0000000000000061
27 WindowsBase.ni.dll System.Windows.Threading.ExceptionWrapper.TryCatchWhen 0x0000000000000036
28 WindowsBase.ni.dll System.Windows.Threading.DispatcherOperation.InvokeImpl 0x00000000000000DC
29 WindowsBase.ni.dll MS.Internal.CulturePreservingExecutionContext.CallbackWrapper 0x000000000000004A
30 mscorlib.ni.dll System.Threading.ExecutionContext.RunInternal 0x000000000000015E
31 mscorlib.ni.dll System.Threading.ExecutionContext.Run 0x0000000000000017
32 mscorlib.ni.dll System.Threading.ExecutionContext.Run 0x0000000000000052
33 WindowsBase.ni.dll MS.Internal.CulturePreservingExecutionContext.Run 0x00000000000000CF
34 WindowsBase.ni.dll System.Windows.Threading.DispatcherOperation.Invoke 0x0000000000000064
35 WindowsBase.ni.dll System.Windows.Threading.Dispatcher.ProcessQueue 0x00000000000001C2
36 WindowsBase.ni.dll System.Windows.Threading.Dispatcher.WndProcHook 0x0000000000000071
37 WindowsBase.ni.dll MS.Win32.HwndWrapper.WndProc 0x00000000000000C3
38 WindowsBase.ni.dll MS.Win32.HwndSubclass.DispatcherCallbackOperation 0x0000000000000082
39 WindowsBase.ni.dll System.Windows.Threading.ExceptionWrapper.InternalRealCall 0x0000000000000061
40 WindowsBase.ni.dll System.Windows.Threading.ExceptionWrapper.TryCatchWhen 0x0000000000000036
41 WindowsBase.ni.dll System.Windows.Threading.Dispatcher.LegacyInvokeImpl 0x0000000000000176
42 WindowsBase.ni.dll MS.Win32.HwndSubclass.SubclassWndProc 0x000000000000011F
43 System.Windows.Forms.ni.dll System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW 0x0000000000000001
44 System.Windows.Forms.ni.dll System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop 0x000000000000034B
45 System.Windows.Forms.ni.dll System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner 0x00000000000001BC
46 System.Windows.Forms.ni.dll System.Windows.Forms.Application+ThreadContext.RunMessageLoop 0x0000000000000055
47 Computator.NET.exe Computator.NET.Program.Main 0x0000000000000009
PawelTroka commented 6 years ago

Apparently this is a well known bug in WPF: https://social.msdn.microsoft.com/Forums/vstudio/en-US/d4f60d8b-9c45-4160-9fa8-6721206f22b8/wpf-application-crashes-after-setting-label-font-family-to-a-bad-one?forum=wpf

PawelTroka commented 6 years ago

AxisLabels are to blame in Chart3D because of FontFamily("Cambria")

PawelTroka commented 6 years ago

Fixed with commit 113f863