Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6357413

loading ddraw.dll is not handled correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P5
    • None
    • 1.4.2
    • client-libs
    • 2d
    • x86
    • windows_nt

    Description

      FULL PRODUCT VERSION :
      java version "1.4.2_03"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b01)
      Java HotSpot(TM) Client VM (build 1.4.2_03-b01, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Windows NT Version 4.0

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      I have 1 gegabyte of RAM on my machine

      A DESCRIPTION OF THE PROBLEM :
      If maximum heap size is set high enough (-Xmx800m on my machine), a Java program fails to load ddraw.dll with message "Initialization of the dynamic link library c:\winnt\system32\ddraw.dll failed.". I believe the reason is that heap allocation reserves memory that ddraw.dll must use (it likes to occupy the specific address). The solution is to change JVM to load ddraw.dll before heap is allocated, unless -Dsun.java2d.noddraw=true is passed.

      Passing -Dsun.java2d.noddraw=true as recommended workaround causes Java Web Start to hang randomly while trying to launch our application.


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      set maximum heap size high enough till you get the ddraw error.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      "Initialization of the dynamic link library c:\winnt\system32\ddraw.dll failed" error should never be displayed.
      ACTUAL -
      "Initialization of the dynamic link library c:\winnt\system32\ddraw.dll failed" error is displayed if maximum heap size is high enough.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      "Initialization of the dynamic link library c:\winnt\system32\ddraw.dll failed"

      REPRODUCIBILITY :
      This bug can be reproduced always.

      Attachments

        Issue Links

          Activity

            People

              tdv Dmitri Trembovetski (Inactive)
              prr Philip Race
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: