[Insight-users] Crash when allocating large arrays with Java
bindings.
sumit shah
sshah at mednet.ucla.edu
Tue Aug 16 12:00:01 EDT 2005
Dear All,
I forgot to include the hs_err log as well.
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# Internal Error (0xe06d7363), pid=932, tid=2428
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_04-b05 mixed mode)
# Problematic frame:
# C [kernel32.dll+0x1eb33]
#
--------------- T H R E A D ---------------
Current thread (0x48ed3d28): JavaThread
"Thread-2" [_thread_in_native, id=2428]
siginfo: ExceptionCode=0xe06d7363, ExceptionInformation=0x19930520
0x4955f9d0 0x7c3d8230
Registers:
EAX=0x4955f92c, EBX=0x43bcb558, ECX=0x00000000, EDX=0x00006e6f
ESP=0x4955f928, EBP=0x4955f97c, ESI=0x4955f9bc, EDI=0x4955f9bc
EIP=0x7c81eb33, EFLAGS=0x00000206
Top of Stack: (sp=0x4955f928)
0x4955f928: 7c380edc e06d7363 00000001 00000000
0x4955f938: 7c81eb33 00000003 19930520 4955f9d0
0x4955f948: 7c3d8230 7c90ee18 7c9106f0 ffffffff
0x4955f958: 7c9106eb 7c3416b3 495b0000 00000000
0x4955f968: 7c3416b8 7c414b44 4955f9d0 43bcb558
0x4955f978: 48ed3d28 4955f9bc 7c359aed e06d7363
0x4955f988: 00000001 00000003 4955f9b0 48ed3d28
0x4955f998: 7c3d1654 e06d7363 00000001 00000000
Instructions: (pc=0x7c81eb33)
0x7c81eb23: 8d 7d c4 f3 a5 5f 8d 45 b0 50 ff 15 04 15 80 7c
0x7c81eb33: 5e c9 c2 10 00 85 ff 0f 8e e6 d0 fe ff 8b 55 fc
Stack: [0x49520000,0x49560000), sp=0x4955f928, free space=254k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code,
C=native code)
C [kernel32.dll+0x1eb33]
C [MSVCR71.dll+0x19aed]
C [MSVCP71.dll+0x28b5a]
C [ITKCommonAJava.dll+0x4fb9f8]
j InsightToolkit.SwigExtras.new_FArray(I)LInsightToolkit/
SWIGTYPE_p_float;+1
j edu.ucla.rip.MedicalImageSequence.getITKFormat(Ljavax/swing/
BoundedRangeModel;Ljava/util/Stack;)LInsightToolkit/itkImageF3;+308
j edu.ucla.rip.MedicalImageSequence.getITKFormat(Ljavax/swing/
BoundedRangeModel;)LInsightToolkit/itkImageF3;+6
j edu.ucla.rip.process.RegistrationUtils.resample(Ledu/ucla/rip/
MedicalImageSequence;[FLjavax/swing/BoundedRangeModel;Ljavax/swing/
BoundedRangeModel;)V+27
j edu.ucla.rip.process.RegistrationToolITK$4$1.run()V+40
v ~StubRoutines::call_stub
V [jvm.dll+0x82696]
V [jvm.dll+0xd6fd9]
V [jvm.dll+0x82567]
V [jvm.dll+0x822c4]
V [jvm.dll+0x9d216]
V [jvm.dll+0x101489]
V [jvm.dll+0x101457]
C [MSVCRT.dll+0x2a3b0]
C [kernel32.dll+0xb50b]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j InsightToolkit.SwigExtrasJNI.new_FArray(I)J+0
j InsightToolkit.SwigExtras.new_FArray(I)LInsightToolkit/
SWIGTYPE_p_float;+1
j edu.ucla.rip.MedicalImageSequence.getITKFormat(Ljavax/swing/
BoundedRangeModel;Ljava/util/Stack;)LInsightToolkit/itkImageF3;+308
j edu.ucla.rip.MedicalImageSequence.getITKFormat(Ljavax/swing/
BoundedRangeModel;)LInsightToolkit/itkImageF3;+6
j edu.ucla.rip.process.RegistrationUtils.resample(Ledu/ucla/rip/
MedicalImageSequence;[FLjavax/swing/BoundedRangeModel;Ljavax/swing/
BoundedRangeModel;)V+27
j edu.ucla.rip.process.RegistrationToolITK$4$1.run()V+40
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
=>0x48ed3d28 JavaThread "Thread-2" [_thread_in_native, id=2428]
0x49e499d8 JavaThread "Debug info" [_thread_blocked, id=264]
0x00038e20 JavaThread "DestroyJavaVM" [_thread_blocked, id=2360]
0x48f170a8 JavaThread "TimerQueue" daemon [_thread_blocked, id=3364]
0x48ef7588 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=1020]
0x48e682a8 JavaThread "Java2D Disposer" daemon [_thread_blocked,
id=2900]
0x48e5fac8 JavaThread "AWT-Windows" daemon [_thread_in_native,
id=3456]
0x48e5f618 JavaThread "AWT-Shutdown" [_thread_blocked, id=3528]
0x48e0ebf0 JavaThread "Monitor Ctrl-Break" daemon
[_thread_in_native, id=2860]
0x00a93b80 JavaThread "Low Memory Detector" daemon
[_thread_blocked, id=356]
0x00a92758 JavaThread "CompilerThread0" daemon [_thread_blocked,
id=2676]
0x00a91ae0 JavaThread "Signal Dispatcher" daemon [_thread_blocked,
id=3728]
0x00a88ec0 JavaThread "Finalizer" daemon [_thread_blocked, id=3280]
0x00a87a30 JavaThread "Reference Handler" daemon [_thread_blocked,
id=3304]
Other Threads:
0x00a85060 VMThread [id=3368]
0x00a94d20 WatcherThread [id=3932]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 45184K, used 8090K [0x02ad0000,
0x05bd0000, 0x07990000)
eden space 40192K, 20% used [0x02ad0000, 0x032b6ba0, 0x05210000)
from space 4992K, 0% used [0x05210000, 0x05210000, 0x056f0000)
to space 4992K, 0% used [0x056f0000, 0x056f0000, 0x05bd0000)
tenured generation total 601588K, used 360951K [0x07990000,
0x2c50d000, 0x42ad0000)
the space 601588K, 59% used [0x07990000, 0x1da0de20, 0x1da0e000,
0x2c50d000)
compacting perm gen total 17408K, used 17395K [0x42ad0000,
0x43bd0000, 0x46ad0000)
the space 17408K, 99% used [0x42ad0000, 0x43bccf18, 0x43bcd000,
0x43bd0000)
No shared spaces configured.
Dynamic libraries:
0x00400000 - 0x0040c000 C:\j2sdk\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
0x77c10000 - 0x77c68000 C:\WINDOWS\system32\MSVCRT.dll
0x6d6b0000 - 0x6d839000 C:\j2sdk\jre\bin\client\jvm.dll
0x77d40000 - 0x77dd0000 C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f56000 C:\WINDOWS\system32\GDI32.dll
0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
0x5dac0000 - 0x5dac8000 C:\WINDOWS\system32\rdpsnd.dll
0x76360000 - 0x76370000 C:\WINDOWS\system32\WINSTA.dll
0x5b860000 - 0x5b8b4000 C:\WINDOWS\system32\NETAPI32.dll
0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
0x6d2f0000 - 0x6d2f8000 C:\j2sdk\jre\bin\hpi.dll
0x6d680000 - 0x6d68c000 C:\j2sdk\jre\bin\verify.dll
0x6d370000 - 0x6d38d000 C:\j2sdk\jre\bin\java.dll
0x6d6a0000 - 0x6d6af000 C:\j2sdk\jre\bin\zip.dll
0x009a0000 - 0x009a7000 C:\IntelliJ-IDEA-4.5\bin\breakgen.dll
0x6d530000 - 0x6d543000 C:\j2sdk\jre\bin\net.dll
0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.dll
0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll
0x71a50000 - 0x71a8f000 C:\WINDOWS\system32\mswsock.dll
0x662b0000 - 0x66308000 C:\WINDOWS\system32\hnetcfg.dll
0x71a90000 - 0x71a98000 C:\WINDOWS\System32\wshtcpip.dll
0x6d070000 - 0x6d1d7000 C:\j2sdk\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
0x5ad70000 - 0x5ada8000 C:\WINDOWS\system32\uxtheme.dll
0x73760000 - 0x737a9000 C:\WINDOWS\system32\ddraw.dll
0x73bc0000 - 0x73bc6000 C:\WINDOWS\system32\DCIMAN32.dll
0x74720000 - 0x7476b000 C:\WINDOWS\system32\MSCTF.dll
0x7c9c0000 - 0x7d1d4000 C:\WINDOWS\system32\shell32.dll
0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
0x773d0000 - 0x774d2000 C:\WINDOWS\WinSxS
\x86_Microsoft.Windows.Common-
Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll
0x5d090000 - 0x5d127000 C:\WINDOWS\system32\comctl32.dll
0x6d2b0000 - 0x6d2ed000 C:\j2sdk\jre\bin\fontmanager.dll
0x6d550000 - 0x6d559000 C:\j2sdk\jre\bin\nio.dll
0x6d430000 - 0x6d44f000 C:\j2sdk\jre\bin\jpeg.dll
0x605d0000 - 0x605d9000 C:\WINDOWS\system32\mslbui.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
0x76d60000 - 0x76d79000 C:\WINDOWS\system32\iphlpapi.dll
0x76d40000 - 0x76d58000 C:\WINDOWS\system32\MPRAPI.dll
0x77cc0000 - 0x77cf2000 C:\WINDOWS\system32\ACTIVEDS.dll
0x76e10000 - 0x76e35000 C:\WINDOWS\system32\adsldpc.dll
0x76b20000 - 0x76b31000 C:\WINDOWS\system32\ATL.DLL
0x77120000 - 0x771ac000 C:\WINDOWS\system32\OLEAUT32.dll
0x76e80000 - 0x76e8e000 C:\WINDOWS\system32\rtutils.dll
0x71bf0000 - 0x71c03000 C:\WINDOWS\system32\SAMLIB.dll
0x77920000 - 0x77a13000 C:\WINDOWS\system32\SETUPAPI.dll
0x6d200000 - 0x6d22f000 C:\j2sdk\jre\bin\cmm.dll
0x6d230000 - 0x6d253000 C:\j2sdk\jre\bin\dcpr.dll
0x49940000 - 0x49c70000 C:\j2sdk\jre\bin\mlib_jai.dll
0x495a0000 - 0x495a8000 X:\itk\bin\SwigRuntimeJava.dll
0x7c340000 - 0x7c396000 C:\WINDOWS\system32\MSVCR71.dll
0x4a4a0000 - 0x4a6c4000 X:\itk\bin\VXLNumericsJava.dll
0x7c3a0000 - 0x7c41b000 C:\WINDOWS\system32\MSVCP71.dll
0x4a6d0000 - 0x4a7a0000 X:\itk\bin\ITKNumericsJava.dll
0x4a7a0000 - 0x4a896000 X:\itk\bin\ITKCommon.dll
0x4a8a0000 - 0x4b501000 X:\itk\bin\ITKCommonAJava.dll
0x4b510000 - 0x4b70f000 X:\itk\bin\ITKCommonBJava.dll
0x4b710000 - 0x4c68c000 X:\itk\bin\ITKBasicFiltersAJava.dll
VM Arguments:
jvm_args: -Xmx1024m -Xms512m -Ddbhost=localhost -Dqiwsnumscreens=1 -
Dqiwsuser=shah -Dqiwspass=shah -Dqiwsexperiment=Reg -
Dqiwstool=edu.ucla.rip.process.RegistrationToolITK -
Didea.launcher.port=7537 -Didea.launcher.library=C:\IntelliJ-IDEA-4.5
\bin\breakgen.dll -Dfile.encoding=windows-1252
java_command: com.intellij.rt.execution.application.AppMain
edu.ucla.rip.App
Environment Variables:
JAVA_HOME=c:\j2sdk
CLASSPATH=C:\IntelliJ-IDEA-4.5\lib\idea.jar;C:\IntelliJ-IDEA-4.5\lib
\jdom.jar;C:\IntelliJ-IDEA-4.5\lib\log4j.jar;C:\IntelliJ-IDEA-4.5\lib
\openapi.jar;C:\IntelliJ-IDEA-4.5\bin\lax.jar;
PATH=C:\PROGRA~1\CMake20\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS
\System32\Wbem;C:\Program Files\Subversion\bin;c:\ant\bin;c:\program
files\postgresql\8.0\bin;C:\Program Files\Microsoft Platform SDK\Bin
\win64
USERNAME=sshah
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 47 Stepping 0, AuthenticAMD
--------------- S Y S T E M ---------------
OS: Windows XP Build 2600 Service Pack 2
CPU:total 1 family 47, cmov, cx8, fxsr, mmx, sse, sse2
Memory: 4k page, physical 1047792k(176524k free), swap 3043636k
(1906628k free)
vm_info: Java HotSpot(TM) Client VM (1.5.0_04-b05) for windows-x86,
built on Jun 3 2005 02:10:41 by "java_re" with MS VC++ 6.0
On Aug 15, 2005, at 11:54 PM, sumit shah wrote:
> Dear Insight Users:
>
> I am compiling the latest from CVS ITK and CableSwig with Visual
> Studio 2003 on XP with the Java (1.5) bindings. I use
> SwigExtras.newFArray. to allocate an array in which I use in
> conjunction with ImportImageFilter to create an Itk Image. For
> large images, around 512x512x400 images it crashes on the newFArray
> call. I have fiddled a little with the compile settings e.g.
> StackSize, /Zm etc to no effect. The stack trace that results is
> shown at the end of this message. Does anybody know a solution to
> this? On the same machine but with Linux (Ubuntu 5.04) and
> compiling with gcc it works perfectly without crashing (though
> significantly slower). Please let me know if you need more
> information.
>
> Thanks,
> Sumit
>
> #
> # An unexpected error has been detected by HotSpot Virtual Machine:
> #
> # Internal Error (0xe06d7363), pid=932, tid=2428
> #
> # Java VM: Java HotSpot(TM) Client VM (1.5.0_04-b05 mixed mode)
> # Problematic frame:
> # C [kernel32.dll+0x1eb33]
> #
> # An error report file with more information is saved as
> hs_err_pid932.log
> #
> # If you would like to submit a bug report, please visit:
> # http://java.sun.com/webapps/bugreport/crash.jsp
> #
>
> Process finished with exit code 1
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
More information about the Insight-users
mailing list