Skip to content
This repository has been archived by the owner on Aug 2, 2019. It is now read-only.

Unable to load a document - multiple floating point traps #178

Open
bhoman opened this issue Sep 14, 2018 · 0 comments
Open

Unable to load a document - multiple floating point traps #178

bhoman opened this issue Sep 14, 2018 · 0 comments

Comments

@bhoman
Copy link

bhoman commented Sep 14, 2018

I have an executable which is a combination of both managed and unmanaged C++ with several sub-projects (dll's) that are C#. We are building in x86 mode using .Net 4.6.1. I used Nuget to install both PPdfiumViewer and PdfiumViewer.Native.x86.v8-xfa packages to one of the C# dll's. When I try to call PdfDocument.Load(file_and_path_name) I get an exception from Pdfium.dll. The exception is:

  • Exception thrown at 0x172632F8 (pdfium.dll) in Traffic.exe: 0xC00002B5: Multiple floating point traps (parameters: 0x00000000, 0x00001121).
  • Exception thrown: 'System.Runtime.InteropServices.SEHException' in PdfiumViewer.dll

I got the PdfiumViewer pdb files from the PDFiumViewer project and can drill down to the call to FPDF_AddRef(). It errors out at Imports.FPDF_AddRef() on line 25 in NativeMethods.Pdfium.cs.

I have my copy of PdfiumViewer in the same directory as the exe file and the Pdfium.dll in an x86 subdirectory. If I call LoadLibrary(pdfium_path), LoadLibrary appears to succeed.

I have both your Demo project and a separate stand alone WinForm project running correctly using the same files and formats, so I'm not sure what is different here.

Any suggestions or steps I could use to debug the problem?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant