Skip to content

Cannot generate PDF #45

@Baltasarq

Description

@Baltasarq

I'm using Manjaro Linux with mono 6.10.

When trying to generate PDF, and after clicking Ok in the dialog, NClass crashes with the following stack trace:

System.EntryPointNotFoundException: GetDC assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) PdfSharp.Internal.NativeMethods.GetDC(intptr)
  at PdfSharp.Fonts.OpenType.FontData.CreateGdiFontImage (PdfSharp.Drawing.XFont font, PdfSharp.Drawing.XPdfFontOptions options) [0x00020] in <2a80a7aa909f4f4394d33f68c6061743>:0 
  at PdfSharp.Fonts.OpenType.FontData..ctor (PdfSharp.Drawing.XFont font, PdfSharp.Drawing.XPdfFontOptions options) [0x00011] in <2a80a7aa909f4f4394d33f68c6061743>:0 
  at PdfSharp.Fonts.OpenType.OpenTypeDescriptor..ctor (PdfSharp.Drawing.XFont font, PdfSharp.Drawing.XPdfFontOptions options) [0x00028] in <2a80a7aa909f4f4394d33f68c6061743>:0 
  at PdfSharp.Fonts.OpenType.OpenTypeDescriptor..ctor (PdfSharp.Drawing.XFont font) [0x00008] in <2a80a7aa909f4f4394d33f68c6061743>:0 
  at PdfSharp.Fonts.FontDescriptorStock.CreateDescriptor (PdfSharp.Drawing.XFont font) [0x00046] in <2a80a7aa909f4f4394d33f68c6061743>:0 
  at PdfSharp.Drawing.XFont.get_Metrics () [0x0000d] in <2a80a7aa909f4f4394d33f68c6061743>:0 
  at PdfSharp.Drawing.XFont.Initialize () [0x0007e] in <2a80a7aa909f4f4394d33f68c6061743>:0 
  at PdfSharp.Drawing.XFont..ctor (System.String familyName, System.Double emSize, PdfSharp.Drawing.XFontStyle style) [0x00026] in <2a80a7aa909f4f4394d33f68c6061743>:0 
  at PDFExport.PDFGraphics.FontToXFont (System.Drawing.Font font) [0x0001f] in <ed3dc674d55a465cadf7d0f8ef13bd98>:0 
  at PDFExport.PDFGraphics.DrawString (System.String s, System.Drawing.Font font, System.Drawing.Brush brush, System.Drawing.RectangleF layoutRectangle, System.Drawing.StringFormat format) [0x00008] in <ed3dc674d55a465cadf7d0f8ef13bd98>:0 
  at NClass.DiagramEditor.ClassDiagram.Shapes.TypeShape.DrawHeaderText (NClass.DiagramEditor.IGraphics g, NClass.DiagramEditor.Style style) [0x0015a] in <6ebb94798b114ed1b331f3764e45c037>:0 
  at NClass.DiagramEditor.ClassDiagram.Shapes.TypeShape.Draw (NClass.DiagramEditor.IGraphics g, System.Boolean onScreen, NClass.DiagramEditor.Style style) [0x00009] in <6ebb94798b114ed1b331f3764e45c037>:0 
  at NClass.DiagramEditor.Diagrams.Diagram`1[T].Print (NClass.DiagramEditor.IGraphics g, System.Boolean selectedOnly, NClass.DiagramEditor.Style style) [0x000ef] in <6ebb94798b114ed1b331f3764e45c037>:0 
  at PDFExport.PDFExporter.Export () [0x00147] in <ed3dc674d55a465cadf7d0f8ef13bd98>:0 
  at PDFExport.PDFExportPlugin.Launch () [0x0012c] in <ed3dc674d55a465cadf7d0f8ef13bd98>:0 
  at PDFExport.PDFExportPlugin.menuItem_Click (System.Object sender, System.EventArgs e) [0x00000] in <ed3dc674d55a465cadf7d0f8ef13bd98>:0 
  at System.Windows.Forms.ToolStripItem.OnClick (System.EventArgs e) [0x00019] in <313abb6e08e943459ea3b455bc2f9adb>:0 
  at System.Windows.Forms.ToolStripMenuItem.OnClick (System.EventArgs e) [0x00090] in <313abb6e08e943459ea3b455bc2f9adb>:0 
  at System.Windows.Forms.ToolStripMenuItem.HandleClick (System.Int32 mouse_clicks, System.EventArgs e) [0x00000] in <313abb6e08e943459ea3b455bc2f9adb>:0 
  at System.Windows.Forms.ToolStripItem.FireEvent (System.EventArgs e, System.Windows.Forms.ToolStripItemEventType met) [0x00054] in <313abb6e08e943459ea3b455bc2f9adb>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.ToolStripItem.FireEvent(System.EventArgs,System.Windows.Forms.ToolStripItemEventType)
  at System.Windows.Forms.ToolStrip.OnMouseUp (System.Windows.Forms.MouseEventArgs mea) [0x00048] in <313abb6e08e943459ea3b455bc2f9adb>:0 
  at System.Windows.Forms.ToolStripDropDown.OnMouseUp (System.Windows.Forms.MouseEventArgs mea) [0x00000] in <313abb6e08e943459ea3b455bc2f9adb>:0 
  at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x00078] in <313abb6e08e943459ea3b455bc2f9adb>:0 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x001b4] in <313abb6e08e943459ea3b455bc2f9adb>:0 
  at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <313abb6e08e943459ea3b455bc2f9adb>:0 
  at System.Windows.Forms.ToolStrip.WndProc (System.Windows.Forms.Message& m) [0x00000] in <313abb6e08e943459ea3b455bc2f9adb>:0 
  at System.Windows.Forms.ToolStripDropDown.WndProc (System.Windows.Forms.Message& m) [0x00017] in <313abb6e08e943459ea3b455bc2f9adb>:0 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <313abb6e08e943459ea3b455bc2f9adb>:0 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0000b] in <313abb6e08e943459ea3b455bc2f9adb>:0 
  at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00085] in <313abb6e08e943459ea3b455bc2f9adb>:0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions