X 1.0rc1: Windows XP: crash in standalone sikuli-script.jar

Asked by Aleksey

#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x10006001, pid=1364, tid=1420
#
# JRE version: 6.0_23-b05
# Java VM: Java HotSpot(TM) Client VM (19.0-b09 mixed mode, sharing windows-x86 )
# Problematic frame:
# C 0x10006001
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

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

Current thread (0x02cdd400): JavaThread "Finalizer" daemon [_thread_in_native, id=1420, stack(0x02e60000,0x02eb0000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x10006001

Registers:
EAX=0x10006001, EBX=0x32f22160, ECX=0x02cdd518, EDX=0x33265f90
ESP=0x02eaf6ec, EBP=0x02eaf720, ESI=0x32f22160, EDI=0x02cdd400
EIP=0x10006001, EFLAGS=0x00010283

Register to memory mapping:

EAX=0x10006001
0x10006001 is pointing to unknown location

EBX=0x32f22160
{method}
 - klass: {other class}

ECX=0x02cdd518
0x02cdd518 is pointing to unknown location

EDX=0x33265f90
{constant pool cache}
 - klass: {other class}

ESP=0x02eaf6ec
0x02eaf6ec is pointing into the stack for thread: 0x02cdd400
"Finalizer" daemon prio=8 tid=0x02cdd400 nid=0x58c runnable [0x02eaf000]
   java.lang.Thread.State: RUNNABLE

EBP=0x02eaf720
0x02eaf720 is pointing into the stack for thread: 0x02cdd400
"Finalizer" daemon prio=8 tid=0x02cdd400 nid=0x58c runnable [0x02eaf000]
   java.lang.Thread.State: RUNNABLE

ESI=0x32f22160
{method}
 - klass: {other class}

EDI=0x02cdd400
"Finalizer" daemon prio=8 tid=0x02cdd400 nid=0x58c runnable [0x02eaf000]
   java.lang.Thread.State: RUNNABLE

Top of Stack: (sp=0x02eaf6ec)
0x02eaf6ec: 00a19fc7 02cdd518 02eaf728 03667940
0x02eaf6fc: 00000000 02eaf700 00000000 02eaf734
0x02eaf70c: 33265f90 00000000 32f22160 00000000
0x02eaf71c: 02eaf730 02eaf758 00a12e21 32f224c8
0x02eaf72c: 00a182e9 03667940 00000000 02eaf738
0x02eaf73c: 32f2030d 02eaf760 33265f90 00000000
0x02eaf74c: 32f20330 02eaf730 02eaf760 02eaf77c
0x02eaf75c: 00a10364 13f61c58 02eaf78c 6d8e2c7e

Instructions: (pc=0x10006001)
0x10005ff1:
[error occurred during error reporting (printing registers, top of stack, instructions near pc), id 0xc0000005]

Stack: [0x02e60000,0x02eb0000], sp=0x02eaf6ec, free space=317k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C 0x10006001
j com.sun.jna.Memory.finalize()V+13
v ~StubRoutines::call_stub
V [jvm.dll+0xf33c9]
V [jvm.dll+0x188a91]
V [jvm.dll+0xf344d]
V [jvm.dll+0xfd07f]
V [jvm.dll+0xffd74]
C [java.dll+0x2100]
j java.lang.ref.Finalizer.runFinalizer()V+45
j java.lang.ref.Finalizer.access$100(Ljava/lang/ref/Finalizer;)V+1
j java.lang.ref.Finalizer$FinalizerThread.run()V+11
v ~StubRoutines::call_stub
V [jvm.dll+0xf33c9]
V [jvm.dll+0x188a91]
V [jvm.dll+0xf3587]
V [jvm.dll+0xf35eb]
V [jvm.dll+0x11e780]
V [jvm.dll+0x1ea6c4]
V [jvm.dll+0x18843c]
C [msvcr71.dll+0x9565]
C [kernel32.dll+0xb729]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.sun.jna.Memory.free(J)V+0
j com.sun.jna.Memory.finalize()V+13
v ~StubRoutines::call_stub
j java.lang.ref.Finalizer.invokeFinalizeMethod(Ljava/lang/Object;)V+0
j java.lang.ref.Finalizer.runFinalizer()V+45
j java.lang.ref.Finalizer.access$100(Ljava/lang/ref/Finalizer;)V+1
j java.lang.ref.Finalizer$FinalizerThread.run()V+11
v ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
  0x0329c800 JavaThread "AWT-Shutdown" [_thread_blocked, id=3632, stack(0x04d50000,0x04da0000)]
  0x03497400 JavaThread "Thread-2" daemon [_thread_in_native, id=4064, stack(0x051a0000,0x051f0000)]
  0x003b6800 JavaThread "DestroyJavaVM" [_thread_blocked, id=3384, stack(0x00990000,0x009e0000)]
  0x03150800 JavaThread "weakref reaper" daemon [_thread_blocked, id=3192, stack(0x05150000,0x051a0000)]
  0x03543800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=1700, stack(0x03f80000,0x03fd0000)]
  0x02cecc00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2360, stack(0x02fa0000,0x02ff0000)]
  0x02ce7000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3572, stack(0x02f50000,0x02fa0000)]
  0x02ce5800 JavaThread "Attach Listener" daemon [_thread_blocked, id=3820, stack(0x02f00000,0x02f50000)]
  0x02ce4000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2080, stack(0x02eb0000,0x02f00000)]
=>0x02cdd400 JavaThread "Finalizer" daemon [_thread_in_native, id=1420, stack(0x02e60000,0x02eb0000)]
  0x02cdbc00 JavaThread "Reference Handler" daemon [_thread_blocked, id=912, stack(0x02e10000,0x02e60000)]

Other Threads:
  0x02cda400 VMThread [stack: 0x02dc0000,0x02e10000] [id=640]
  0x02cf7c00 WatcherThread [stack: 0x02ff0000,0x03040000] [id=3212]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation total 22272K, used 117K [0x12990000, 0x141b0000, 0x1d430000)
  eden space 19840K, 0% used [0x12990000, 0x129941f0, 0x13cf0000)
  from space 2432K, 4% used [0x13f50000, 0x13f69558, 0x141b0000)
  to space 2432K, 0% used [0x13cf0000, 0x13cf0000, 0x13f50000)
 tenured generation total 49284K, used 29462K [0x1d430000, 0x20451000, 0x32990000)
   the space 49284K, 59% used [0x1d430000, 0x1f0f5aa0, 0x1f0f5c00, 0x20451000)
 compacting perm gen total 12288K, used 10556K [0x32990000, 0x33590000, 0x36990000)
   the space 12288K, 85% used [0x32990000, 0x333df188, 0x333df200, 0x33590000)
    ro space 10240K, 51% used [0x36990000, 0x36ebbd20, 0x36ebbe00, 0x37390000)
    rw space 12288K, 54% used [0x37390000, 0x37a27d58, 0x37a27e00, 0x37f90000)

Dynamic libraries:
0x00400000 - 0x00424000 C:\WINDOWS\system32\java.exe
0x7c900000 - 0x7c9b2000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f6000 C:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 - 0x77f03000 C:\WINDOWS\system32\RPCRT4.dll
0x77fe0000 - 0x77ff1000 C:\WINDOWS\system32\Secur32.dll
0x7c340000 - 0x7c396000 C:\Program Files\Java\jre6\bin\msvcr71.dll
0x6d7f0000 - 0x6da9c000 C:\Program Files\Java\jre6\bin\client\jvm.dll
0x7e410000 - 0x7e4a1000 C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f59000 C:\WINDOWS\system32\GDI32.dll
0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
0x76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32.DLL
0x6d7a0000 - 0x6d7ac000 C:\Program Files\Java\jre6\bin\verify.dll
0x6d320000 - 0x6d33f000 C:\Program Files\Java\jre6\bin\java.dll
0x6d280000 - 0x6d288000 C:\Program Files\Java\jre6\bin\hpi.dll
0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
0x6d7e0000 - 0x6d7ef000 C:\Program Files\Java\jre6\bin\zip.dll
0x68000000 - 0x68036000 C:\WINDOWS\system32\rsaenh.dll
0x77c10000 - 0x77c68000 C:\WINDOWS\system32\msvcrt.dll
0x769c0000 - 0x76a74000 C:\WINDOWS\system32\USERENV.dll
0x5b860000 - 0x5b8b5000 C:\WINDOWS\system32\netapi32.dll
0x6d600000 - 0x6d613000 C:\Program Files\Java\jre6\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
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
0x6d000000 - 0x6d14a000 C:\Program Files\Java\jre6\bin\awt.dll
0x73000000 - 0x73026000 C:\WINDOWS\system32\WINSPOOL.DRV
0x774e0000 - 0x7761e000 C:\WINDOWS\system32\ole32.dll
0x773d0000 - 0x774d3000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.6028_x-ww_61e65202\COMCTL32.dll
0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
0x5ad70000 - 0x5ada8000 C:\WINDOWS\system32\uxtheme.dll
0x6d230000 - 0x6d27f000 C:\Program Files\Java\jre6\bin\fontmanager.dll
0x74720000 - 0x7476c000 C:\WINDOWS\system32\MSCTF.dll
0x755c0000 - 0x755ee000 C:\WINDOWS\system32\msctfime.ime
0x77c00000 - 0x77c08000 C:\WINDOWS\system32\VERSION.dll
0x041f0000 - 0x04326000 C:\code-depot\CATS\trunk\client_automation\WinTestRunner\libs\VisionProxy.dll
0x04340000 - 0x0455e000 C:\code-depot\CATS\trunk\client_automation\WinTestRunner\libs\cxcore210.dll
0x78480000 - 0x7850e000 C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_6f74963e\MSVCP90.dll
0x78520000 - 0x785c3000 C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_6f74963e\MSVCR90.dll
0x04570000 - 0x047f8000 C:\code-depot\CATS\trunk\client_automation\WinTestRunner\libs\cv210.dll
0x04810000 - 0x048da000 C:\code-depot\CATS\trunk\client_automation\WinTestRunner\libs\highgui210.dll
0x73b50000 - 0x73b67000 C:\WINDOWS\system32\AVIFIL32.dll
0x77be0000 - 0x77bf5000 C:\WINDOWS\system32\MSACM32.dll
0x75a70000 - 0x75a91000 C:\WINDOWS\system32\MSVFW32.dll
0x7c9c0000 - 0x7d1d7000 C:\WINDOWS\system32\SHELL32.dll
0x73b80000 - 0x73b92000 C:\WINDOWS\system32\AVICAP32.dll
0x5edd0000 - 0x5ede7000 C:\WINDOWS\system32\OLEPRO32.DLL
0x77120000 - 0x771ab000 C:\WINDOWS\system32\OLEAUT32.dll
0x04d00000 - 0x04d07000 C:\code-depot\CATS\trunk\client_automation\WinTestRunner\libs\Win32Util.dll
0x6d350000 - 0x6d356000 C:\Program Files\Java\jre6\bin\jawt.dll
0x04d20000 - 0x04d29000 C:\code-depot\CATS\trunk\client_automation\WinTestRunner\libs\VDictProxy.dll
0x6d620000 - 0x6d629000 C:\Program Files\Java\jre6\bin\nio.dll

VM Arguments:
jvm_args: -Xms64M -Xmx512M -Dpython.path=Lib/
java_command: sikuli-script.jar ../Android/tn61/TestSuites/About/test_about.sikuli
Launcher Type: SUN_STANDARD

Environment Variables:
PATH=C:\cygwin\usr\local\bin;C:\cygwin\bin;C:\cygwin\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Java\jre6\bin;libs
USERNAME=alekseyk
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 10, GenuineIntel

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

OS: Windows XP Build 2600 Service Pack 3

CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 23 stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1

Memory: 4k page, physical 3405352k(2484952k free), swap 5333852k(4464368k free)

vm_info: Java HotSpot(TM) Client VM (19.0-b09) for windows-x86 JRE (1.6.0_23-b05), built on Nov 12 2010 15:00:43 by "java_re" with MS VC++ 7.1 (VS2003)

time: Mon Jan 17 16:34:19 2011
elapsed time: 55 seconds

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

path-to-sikuli\libs seems not to be in system path !? (see bug 696822)

Revision history for this message
RaiMan (raimund-hocke) said :
#2

ok. just saw: the modules seems to be loaded from another place.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

has X 1.0rc1 ever run on your system?

Revision history for this message
Aleksey (akorenkoff) said :
#4

yep, it has run well w/o -Xms64M -Xmx512M, but always crash with it

Revision history for this message
RaiMan (raimund-hocke) said :
#5

no idea, I will later make a test on my Win7

Revision history for this message
RaiMan (raimund-hocke) said :
#6

ok, made my tests on Win7 32 Bit.

I had no problems with the following configuration:

- installed Sikuli X in standard way using the installer
-- It is then in folder c:\Program Files\Sikuli X\
-- the needed entry c:\Program Files\Sikuli X\libs is added by the installer to system path

- added the also needed c:\Java\jre6\bin to system path manually

- so all dynamic libraries will be found in any cases

- used the following .cmd for testing
set SikHome=c:\Program Files\Sikuli X\
set SikScript=%SikHome%sikuli-script.jar
set JavaParm=-Xms64M -Xmx512M -Dfile.encoding=UTF-8
java %JavaParm% -jar "%SikScript%" testunittest.sikuli
pause

the JavaParm are the recommended Java parameters. -Dpython.path ... is not needed when using sikuli-script.jar to run a script (since java automatically puts ...jar/Lib into the python sys.path

- content of testunittest.sikuli
import unittest
class TestDemo(unittest.TestCase):
    def setUp(self):
        print "in Setup"
    def tearDown(self):
        print "in tearDown"
    def test_empty(self):
        print "in test"
        self.failUnless(True)
def suite():
        suite = unittest.TestSuite()
        suite.addTest(unittest.makeSuite(TestDemo))
        return suite
unittest.TextTestRunner().run(suite())

- running the test I got the following output in all cases (with or without java parameters)

Sikuli vision engine loaded.
Text Recgonizer inited.
Windows utilities loaded.
VDictProxy loaded.
EventManager loaded.
in Setup
in test
in tearDown
.
----------------------------------------------------------------------
Ran 1 test in 0.000s

OK
[debug] close all ScreenHighlighter
Exception in thread "main" Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Program Files\Sikuli X\sikuli-script.jar\Lib\sikuli\Sikuli.py", line 153, in exit
SystemExit: 0

which means: works (besides from the known bug with the System.exit() exception)

Recommendation: try out this setup! (use everything from Sikuli X from its standard places, no copy of Sikuli distribution components somwhere else)

Can you help with this problem?

Provide an answer of your own, or ask Aleksey for more information if necessary.

To post a message you must log in.