Uploaded image for project: 'XMLGraphicsCommons'
  1. XMLGraphicsCommons
  2. XGC-109

Exception in DoubleFormatUtil.tooManyDigitsUsed with Windows 64 bits / Java 8

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.2, 2.6
    • None
    • utilities
    • None
    • Windows 64 bits / Java 8 64 bits
    • Patch

    Description

      Hi,
      I was recently confronted to this trouble with Windows 64 bits / Java 8:
      When you start a JVM (Java 8 / 64 bits) from a C, C++ (or other non Java) program using xml-graphics to convert a svg to pdf, a crash occurs with  number 0 or negative in DoubleFormatUtil.tooManyDigitsUsed.
      It's because the VM is not handling correctly Floating point exception (fixed in Java 9)
      To avoid this error, I propose to protect the call of function tooManyDigitsUsed

      Attachments

        1. DoubleFormatUtil.java
          15 kB
          Valery LEPRETRE
        2. patch.txt
          1 kB
          Julien Gouesse

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            macrophage Valery LEPRETRE

            Dates

              Created:
              Updated:

              Slack

                Issue deployment