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

OOM Exception when creating some geom objects on different threads and rendering/printing them

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 1.4.2, 5.0
    • client-libs
    • 2d
    • Cause Known
    • generic
    • generic

      I am creating multiple threads and within each thread, I am creating some geom objects and trying to render them to the printer's graphics context through PrinterJob's print method. When I run this application, the application crashes after a few loops on Win32 platform.

      I tried to narrow down this further and found that it happens even when rendering those geom objects on the screen, without printing them. This crash is reproducible on Tiger as well as Mustang (b91). Crash is not reproducible on SolSparc10. Crash is reproducible with Server as well as Client VM.

      To reproduce the bug, do the following:
      1. Untar the attached tar file
      2. Go to geomlib and run the batch file provided (run.bat).
      (Otherwise, you can compile all the classes and run them by giving the command
      java -classpath <path to class files> geomlib.PrinterJobPrintGeomTest)

      The problem seems to be happening because of ClipComplexTest. The crash disappears if I exclude that.

      Here is the crash info (also attached) :
      ----------------------------------------
      #
      # An unexpected error has been detected by Java Runtime Environment:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d933307, pid=3876, tid=2984
      #
      # Java VM: Java HotSpot(TM) Client VM (1.6.0-rc-b91 mixed mode, sharing)
      # Problematic frame:
      # V [jvm.dll+0x133307]
      #
      # If you would like to submit a bug report, please visit:
      # http://java.sun.com/webapps/bugreport/crash.jsp
      #

      --------------- T H R E A D ---------------

      Current thread (0x02b04000): VMThread [id=2984]

      siginfo: ExceptionCode=0xc0000005, reading address 0x00000060

      Registers:
      EAX=0x1e6d9e18, EBX=0x6da02b14, ECX=0x26ff2a48, EDX=0x00000000
      ESP=0x02c3f84c, EBP=0x02c3f918, ESI=0xffff0681, EDI=0x02c3f908
      EIP=0x6d933307, EFLAGS=0x00010206

      Top of Stack: (sp=0x02c3f84c)
      0x02c3f84c: 1e6d9e18 6d93370a 00000003 6d943a46
      0x02c3f85c: 0586f318 00a3b108 02c3f908 6da02aa4
      0x02c3f86c: 02c3f918 02f6d108 00000007 00000003
      0x02c3f87c: 00000002 0681e301 6da0ffff 6d943bf8
      0x02c3f88c: 02c3f908 02ff278c 02c3f918 6da02aa4
      0x02c3f89c: 6d943390 6da02b14 6da02b14 6d89679c
      0x02c3f8ac: 02c3f908 00a3b108 02c3f918 6da02aa4
      0x02c3f8bc: 02fa6800 02c3f908 00000000 00000001

      Instructions: (pc=0x6d933307)
      0x6d9332f7: 08 8b 08 8b 04 8a 8b 48 04 8b 51 08 83 c1 08 50
      0x6d933307: ff 52 60 a1 78 48 a1 6d 83 38 00 75 dc c3 cc cc


      Stack: [0x02bf0000,0x02c40000), sp=0x02c3f84c, free space=318k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [jvm.dll+0x133307]

      VM_Operation (0x0586f0e8): generation collection for allocation, mode: safepoint, requested by thread 0x02fa6800


      --------------- P R O C E S S ---------------

      Java Threads: ( => current thread )
        0x02b65400 JavaThread "Thread-28" [_thread_blocked, id=3352]
        0x02fae800 JavaThread "Thread-27" [_thread_blocked, id=3348]
        0x02af7800 JavaThread "Thread-26" [_thread_blocked, id=3200]
        0x02e9f400 JavaThread "Thread-25" [_thread_blocked, id=2828]
        0x02fa6800 JavaThread "Thread-24" [_thread_blocked, id=3340]
        0x02f20c00 JavaThread "Thread-23" [_thread_blocked, id=2640]
        0x02f0a800 JavaThread "Thread-22" [_thread_blocked, id=3476]
        0x02e8fc00 JavaThread "Thread-21" [_thread_blocked, id=3816]
        0x02bb6400 JavaThread "Thread-20" [_thread_blocked, id=3296]
        0x02e50400 JavaThread "Thread-19" [_thread_blocked, id=3076]
        0x02fb6400 JavaThread "Thread-18" [_thread_blocked, id=1856]
        0x02b74c00 JavaThread "Thread-17" [_thread_blocked, id=2896]
        0x02b83800 JavaThread "Thread-16" [_thread_blocked, id=3300]
        0x02b74800 JavaThread "Thread-15" [_thread_blocked, id=2892]
        0x02b57800 JavaThread "Thread-14" [_thread_blocked, id=2164]
        0x02fe8800 JavaThread "Thread-13" [_thread_blocked, id=1332]
        0x02ff0400 JavaThread "Thread-12" [_thread_blocked, id=3100]
        0x02f9c400 JavaThread "Thread-9" [_thread_blocked, id=428]
        0x02f94800 JavaThread "Thread-8" [_thread_blocked, id=1604]
        0x02fe0000 JavaThread "Thread-6" [_thread_blocked, id=504]
        0x02f02800 JavaThread "RMI TCP Connection(idle)" daemon [_thread_blocked, id=460]
        0x02ef7400 JavaThread "RMI TCP Connection(5)-129.158.229.233" daemon [_thread_blocked, id=492]
        0x02ef6c00 JavaThread "RMI TCP Connection(4)-129.158.229.233" daemon [_thread_in_native, id=3132]
        0x02eba800 JavaThread "JMX server connection timeout 21" daemon [_thread_blocked, id=2352]
        0x02eaf000 JavaThread "RMI TCP Connection(3)-129.158.229.233" daemon [_thread_blocked, id=2668]
        0x02e8dc00 JavaThread "RMI Scheduler(0)" daemon [_thread_blocked, id=2664]
        0x02e8b400 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=2272]
        0x02e8a800 JavaThread "MemoryThread" [_thread_blocked, id=2816]
        0x02e88000 JavaThread "RMI TCP Connection(idle)" daemon [_thread_blocked, id=1148]
        0x02e80000 JavaThread "AWT-Windows" daemon [_thread_in_native, id=2260]
        0x02e7f400 JavaThread "AWT-Shutdown" [_thread_blocked, id=2292]
        0x02e7dc00 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=292]
        0x02e76c00 JavaThread "Thread-1" daemon [_thread_in_native, id=3844]
        0x02e69400 JavaThread "RMI TCP Accept-1090" daemon [_thread_in_native, id=3988]
        0x02bef000 JavaThread "RMI TCP Accept-0" daemon [_thread_in_native, id=3360]
        0x02b55400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2956]
        0x02b50800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=4088]
        0x02b4f800 JavaThread "Attach Listener" daemon [_thread_blocked, id=3900]
        0x02b4e800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3128]
        0x02b11800 JavaThread "Finalizer" daemon [_thread_blocked, id=1732]
        0x02b0d400 JavaThread "Reference Handler" daemon [_thread_blocked, id=1144]
        0x00296800 JavaThread "main" [_thread_blocked, id=2300]

      Other Threads:
      =>0x02b04000 VMThread [id=2984]
        0x02e6c000 WatcherThread [id=3420]

      VM state:at safepoint (normal execution)

      VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
      [0x00295300/0x00000718] Threads_lock - owner thread: 0x02b04000
      [0x002954a0/0x000006d8] Heap_lock - owner thread: 0x02fa6800

      Heap
       def new generation total 10112K, used 1088K [0x16960000, 0x17450000, 0x17d10000)
        eden space 9024K, 0% used [0x16960000, 0x16960000, 0x17230000)
        from space 1088K, 100% used [0x17340000, 0x17450000, 0x17450000)
        to space 1088K, 0% used [0x17230000, 0x17230000, 0x17340000)
       tenured generation total 134836K, used 134818K [0x17d10000, 0x200bd000, 0x26960000)
         the space 134836K, 99% used [0x17d10000, 0x200b8a28, 0x200b8c00, 0x200bd000)
       compacting perm gen total 12288K, used 3525K [0x26960000, 0x27560000, 0x2a960000)
         the space 12288K, 28% used [0x26960000, 0x26cd1430, 0x26cd1600, 0x27560000)
          ro space 8192K, 70% used [0x2a960000, 0x2aeff718, 0x2aeff800, 0x2b160000)
          rw space 12288K, 54% used [0x2b160000, 0x2b7f2660, 0x2b7f2800, 0x2bd60000)

      Dynamic libraries:
      0x00400000 - 0x00423000 e:\jdk1.6.0\bin\java.exe
      0x7c900000 - 0x7c9b0000 C:\WINDOWS\system32\ntdll.dll
      0x7c800000 - 0x7c8f4000 C:\WINDOWS\system32\kernel32.dll
      0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
      0x77e70000 - 0x77f01000 C:\WINDOWS\system32\RPCRT4.dll
      0x7c340000 - 0x7c396000 e:\jdk1.6.0\jre\bin\msvcr71.dll
      0x6d800000 - 0x6da42000 e:\jdk1.6.0\jre\bin\client\jvm.dll
      0x77d40000 - 0x77dd0000 C:\WINDOWS\system32\USER32.dll
      0x77f10000 - 0x77f57000 C:\WINDOWS\system32\GDI32.dll
      0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
      0x6d310000 - 0x6d318000 e:\jdk1.6.0\jre\bin\hpi.dll
      0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
      0x6d7b0000 - 0x6d7bc000 e:\jdk1.6.0\jre\bin\verify.dll
      0x6d3b0000 - 0x6d3cf000 e:\jdk1.6.0\jre\bin\java.dll
      0x6d7f0000 - 0x6d7ff000 e:\jdk1.6.0\jre\bin\zip.dll
      0x6d560000 - 0x6d569000 E:\jdk1.6.0\jre\bin\management.dll
      0x6d570000 - 0x6d583000 E:\jdk1.6.0\jre\bin\net.dll
      0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.dll
      0x77c10000 - 0x77c68000 C:\WINDOWS\system32\msvcrt.dll
      0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll
      0x71a50000 - 0x71a8f000 C:\WINDOWS\System32\mswsock.dll
      0x76f20000 - 0x76f47000 C:\WINDOWS\system32\DNSAPI.dll
      0x76fb0000 - 0x76fb8000 C:\WINDOWS\System32\winrnr.dll
      0x76f60000 - 0x76f8c000 C:\WINDOWS\system32\WLDAP32.dll
      0x76fc0000 - 0x76fc6000 C:\WINDOWS\system32\rasadhlp.dll
      0x0ffd0000 - 0x0fff8000 C:\WINDOWS\system32\rsaenh.dll
      0x769c0000 - 0x76a73000 C:\WINDOWS\system32\USERENV.dll
      0x5b860000 - 0x5b8b4000 C:\WINDOWS\system32\netapi32.dll
      0x662b0000 - 0x66308000 C:\WINDOWS\system32\hnetcfg.dll
      0x71a90000 - 0x71a98000 C:\WINDOWS\System32\wshtcpip.dll
      0x6d000000 - 0x6d1c2000 E:\jdk1.6.0\jre\bin\awt.dll
      0x73000000 - 0x73026000 C:\WINDOWS\system32\WINSPOOL.DRV
      0x76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32.dll
      0x774e0000 - 0x7761d000 C:\WINDOWS\system32\ole32.dll
      0x73760000 - 0x737a9000 C:\WINDOWS\system32\ddraw.dll
      0x73bc0000 - 0x73bc6000 C:\WINDOWS\system32\DCIMAN32.dll
      0x6d2b0000 - 0x6d302000 E:\jdk1.6.0\jre\bin\fontmanager.dll
      0x10000000 - 0x1016f000 C:\WINDOWS\system32\nview.dll
      0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
      0x7c9c0000 - 0x7d1d5000 C:\WINDOWS\system32\SHELL32.dll
      0x77120000 - 0x771ac000 C:\WINDOWS\system32\OLEAUT32.dll
      0x5d090000 - 0x5d127000 C:\WINDOWS\system32\COMCTL32.dll
      0x77c00000 - 0x77c08000 C:\WINDOWS\system32\VERSION.dll
      0x773d0000 - 0x774d2000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll
      0x77690000 - 0x776b1000 C:\WINDOWS\system32\NTMARTA.DLL
      0x71bf0000 - 0x71c03000 C:\WINDOWS\system32\SAMLIB.dll
      0x6d6d0000 - 0x6d6d6000 E:\jdk1.6.0\jre\bin\rmi.dll
      0x034a0000 - 0x034b5000 C:\WINDOWS\system32\nvwddi.dll
      0x6d590000 - 0x6d599000 E:\jdk1.6.0\jre\bin\nio.dll
      0x77b40000 - 0x77b62000 C:\WINDOWS\system32\Apphelp.dll
      0x763b0000 - 0x763f9000 C:\WINDOWS\system32\COMDLG32.DLL
      0x5e1f0000 - 0x5e213000 C:\WINDOWS\System32\spool\DRIVERS\W32X86\3\PS5UI.DLL
      0x5e160000 - 0x5e1d4000 C:\WINDOWS\System32\spool\DRIVERS\W32X86\3\PSCRIPT5.DLL
      0x73b30000 - 0x73b45000 C:\WINDOWS\system32\mscms.dll
      0x70000000 - 0x7000b000 C:\WINDOWS\System32\spool\DRIVERS\W32X86\3\XPS4025.DLL
      0x6d220000 - 0x6d243000 E:\jdk1.6.0\jre\bin\dcpr.dll

      VM Arguments:
      jvm_args: -Xms64m -Xmx256m -Dcom.sun.management.jmxremote.port=1090 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dloopcount=25 -Dresultsdir=Windows_NT_JAWS-SQE-01_J2DBasher_reports
      java_command: J2DBasher
      Launcher Type: SUN_STANDARD

      Environment Variables:
      JAVA_HOME=e:/jdk1.6.0
      PATH=d:\gnu_utils\win32;e:\jdk1.6.0\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C:\PROGRA~1\MKSTOO~1\bin;C:\PROGRA~1\MKSTOO~1\bin\x11;C:\PROGRA~1\MKSTOO~1\mksnt;C:\PROGRA~1\ULTRAE~1
      USERNAME=praveen
      SHELL=C:/PROGRA~1/MKSTOO~1/mksnt/sh.exe
      DISPLAY=:0.0
      OS=Windows_NT
      PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 9, GenuineIntel



      --------------- S Y S T E M ---------------

      OS: Windows XP Build 2600 Service Pack 2

      CPU:total 1 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht

      Memory: 4k page, physical 522992k(46760k free), swap 1278288k(740116k free)

      vm_info: Java HotSpot(TM) Client VM (1.6.0-rc-b91) for windows-x86, built on Jul 13 2006 00:56:42 by "java_re" with unknown MS VC++:1310
      Crash is not reproducible on b92 but I get OutOfMemoryError on b92 on WinXP.

            avu Alexey Ushakov
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: