8000 Unable to load a document - multiple floating point traps · Issue #178 · pvginkel/PdfiumViewer · GitHub
[go: up one dir, main page]

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

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

Open

Description

@bhoman

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0