I know is a recurring topic in the forum (I swear I read at least 20 topics about it) but I couln’t find the reason this is happening.
The only think I changed in the “Plain” theme is the font family (I know that’s the reason of the crash). Here is the begining of the code of the custom theme I’m using:
And here is the crash when I press the PDF button:
Application Specific Information:
System.NullReferenceException: Object reference not set to an instance of an object.
at #=zfaMp0RDQUKhOVk_Al5lERuv4f9YGExNalk0$3DYitqY6.#=zb$wkkV6T$sY7(Char #=zslCctQA=)
at #=zfaMp0RDQUKhOVk_Al5lERuv4f9YGExNalk0$3DYitqY6.#=zYwMHknUoB3AQ(Double #=zNdXJNkA=, Double& #=zsSiWOMViGviG_XY1ig==)
at Apitron.PDF.Kit.FlowLayout.Content.TextBlock.Measure(ResourceManager resourceManager)
at ManagerServer.Extensions.PdfConverter.GetMinWidth(ContentElement contentElement, Boolean nowrap, ResourceManager resourceManager) in C:\projects\manager\ManagerServer\Extensions\PdfConverter.cs:line 529
at ManagerServer.Extensions.PdfConverter.GetMinWidth(ContentElement contentElement, Boolean nowrap, ResourceManager resourceManager) in C:\projects\manager\ManagerServer\Extensions\PdfConverter.cs:line 540
at ManagerServer.Extensions.PdfConverter.Tr(IHtmlTableRowElement node, Font font, ResourceManager resourceManager) in C:\projects\manager\ManagerServer\Extensions\PdfConverter.cs:line 492
at ManagerServer.Extensions.PdfConverter.Table(IHtmlTableElement node, Font font, ResourceManager resourceManager) in C:\projects\manager\ManagerServer\Extensions\PdfConverter.cs:line 414
at ManagerServer.Extensions.PdfConverter.ContentElement(INode node, Font font, Boolean nowrap, ResourceManager resourceManager) in C:\projects\manager\ManagerServer\Extensions\PdfConverter.cs:line 194
at ManagerServer.Extensions.PdfConverter.ContentElement(INode node, Font font, Boolean nowrap, ResourceManager resourceManager) in C:\projects\manager\ManagerServer\Extensions\PdfConverter.cs:line 227
at ManagerServer.Extensions.PdfConverter.Tr(IHtmlTableRowElement node, Font font, ResourceManager resourceManager) in C:\projects\manager\ManagerServer\Extensions\PdfConverter.cs:line 467
at ManagerServer.Extensions.PdfConverter.ConvertHtmlToPdf(String input, Stream output, PageBoundary pageBoundary) in C:\projects\manager\ManagerServer\Extensions\PdfConverter.cs:line 87
at ManagerDesktop.WebView.<>c__DisplayClass2_0.b__7() in C:\projects\manager\ManagerDesktop\WebView.cs:line 160
I also get the crash with red text when I try to send any document by email.
I’ve tried everything I read in the forum: deleting the logo, changing the number/date formating, etc., but I always get the crash if I use a different font family than the custom one.
Any ideas?
Thanks for the support and congrats for the software. It’s amazing how easy, clean, fast and usefull it is!
Did you follow this Guide: https://www.manager.io/guides/18025? In particular, notice the boldface caution note at the end about font substitutions for emails.
I assure you, something changed. What edition (desktop, server, or cloud) and version number of Manager. What version number of macOS? What triggers the crash? What exactly happens? If there are any error messages, post screen shots.