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

Out of Memory when updating custom cursor frequently

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      I have a test program that updates the mouse cursor very often. With Java 1.5 after a while the whole system freezes. Task Manager shows that the number of GDI objects increases dramatically until the limit of 9999. Then the system nearly freezes until command prompt tells a OutOfMemory error.We sell a product based on JAVA that uses code like in the test program. Some customers have huge problems with Java 1.5. Either the scenario described above happens (GDI objects rise), or the whole Java VM crashes.

      We have a test case handy which is not showing the exact behaviour but while running the test case for a long while (~5-10 hours) we are facing the following error,

      D:\Uli>java cursor_update
      #
      # An unexpected error has been detected by HotSpot Virtual Machine:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x77f5b386, pid=1632, tid=632
      #
      # Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode, sharing)
      # Problematic frame:
      # C [ntdll.dll+0xb386]
      #
      # An error report file with more information is saved as hs_err_pid1632.log
      #
      # If you would like to submit a bug report, please visit:
      # http://java.sun.com/webapps/bugreport/crash.jsp
      #
       
      D:\Uli>java -version
      java version "1.5.0_06"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
      Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              btellasunw Bhanu Tella (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: