← Back to team overview

sikuli-driver team mailing list archive

[Bug 1014870] Re: C [VisionProxy.dll] creates EXCEPTION_ACCESS_VIOLATION

 

I stripped down the error log a little bit.

It seems, that you are using onChange("some text") in the region !?
Seems to be some null-pointer problem.

Post the respective part of your code, where you define and use the
observer, so I can have a look at it.

** Description changed:

  Sikuli Version:
  RaiMan's Observer mod (using sikuli_script.jar and Observer), built off of Sikuli X rc3
  
  I'm using Java and incorporting the Sikuli observer to monitor a region.
  Here is the Java dump when it fatals:
  
  [info] Windows utilities loaded.
  [RaiMan] observer started
  [info] Sikuli vision engine loaded.
  [info] Text Recognizer inited.
  #
  # A fatal error has been detected by the Java Runtime Environment:
  #
  #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x034c3ba0, pid=5544, tid=5620
  #
  # JRE version: 6.0_31-b05
  # Java VM: Java HotSpot(TM) Client VM (20.6-b01 mixed mode, sharing windows-x86
  )
  # Problematic frame:
  # C  [VisionProxy.dll+0x93ba0]
  #
- # An error report file with more information is saved as:
- # C:\Documents and Settings\me\Desktop\dist\hs_err_pid5544.log
- #
- # 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.
- #
- 
- 
- 
- Here is the contents of hs_err_pid5544.log:
- 
- 
- 
- #
- # A fatal error has been detected by the Java Runtime Environment:
- #
- #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x034c3ba0, pid=5544, tid=5620
- #
- # JRE version: 6.0_31-b05
- # Java VM: Java HotSpot(TM) Client VM (20.6-b01 mixed mode, sharing windows-x86 )
- # Problematic frame:
- # C  [VisionProxy.dll+0x93ba0]
- #
- # 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 (0x02cedc00):  JavaThread "Thread-2" [_thread_in_native,
- id=5620, stack(0x033e0000,0x03430000)]
- 
- siginfo: ExceptionCode=0xc0000005, reading address 0x0412c000
- 
- Registers:
- EAX=0x00000034, EBX=0x00000000, ECX=0x00000000, EDX=0x03fa0020
- ESP=0x0342e4f8, EBP=0x00000000, ESI=0x000317fc, EDI=0x00000000
- EIP=0x034c3ba0, EFLAGS=0x00010246
- 
- Top of Stack: (sp=0x0342e4f8)
- 0x0342e4f8:   0342e902 00000001 0342e900 0342e568
- 0x0342e508:   034c42d3 03fa0020 0002770f 00000000
- 0x0342e518:   00000034 00000000 0342e8d4 00000000
- 0x0342e528:   00000001 0342e6e8 03da5230 034c4af7
- 0x0342e538:   03fa0020 0342e568 00000001 00000000
- 0x0342e548:   03da4928 00000000 00000001 03da46a0
- 0x0342e558:   0342e78c 0342e830 034c4eb3 03fa0020
- 0x0342e568:   0002770f 00000000 00000005 0342e900 
- 
- Instructions: (pc=0x034c3ba0)
- 0x034c3b80:   83 c4 04 8b 54 24 14 81 3c f2 00 f8 ff ff 75 07
- 0x034c3b90:   83 7c f2 04 ff 74 3e 8b 6c 24 24 eb 03 8d 49 00
- 0x034c3ba0:   8b 0c f2 81 e1 ff 00 00 00 3b c8 75 13 85 ed 74
- 0x034c3bb0:   31 8b 0c f2 81 e1 00 04 00 00 33 ff 0b cf 75 22 
- 
- 
- Register to memory mapping:
- 
- EAX=0x00000034 is an unknown value
- EBX=0x00000000 is an unknown value
- ECX=0x00000000 is an unknown value
- EDX=0x03fa0020 is an unknown value
- ESP=0x0342e4f8 is pointing into the stack for thread: 0x02cedc00
- EBP=0x00000000 is an unknown value
- ESI=0x000317fc is an unknown value
- EDI=0x00000000 is an unknown value
- 
- 
  Stack: [0x033e0000,0x03430000],  sp=0x0342e4f8,  free space=313k
  Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
  C  [VisionProxy.dll+0x93ba0]
  
  [error occurred during error reporting (printing native stack), id
  0xc0000005]
  
  Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
  j  org.sikuli.script.natives.VisionProxyJNI.Vision_recognize(JLorg/sikuli/script/natives/Mat;)Ljava/lang/String;+0
  j  org.sikuli.script.natives.Vision.recognize(Lorg/sikuli/script/natives/Mat;)Ljava/lang/String;+5
  j  org.sikuli.script.TextRecognizer.recognize(Ljava/awt/image/BufferedImage;)Ljava/lang/String;+13
  j  org.sikuli.script.TextRecognizer.recognize(Lorg/sikuli/script/ScreenImage;)Ljava/lang/String;+7
  j  org.sikuli.script.Region.text()Ljava/lang/String;+35
  j  streamerscraper.StreamerScraperStock.targetChanged(Lorg/sikuli/script/ChangeEvent;)V+100
  J  org.sikuli.script.EventManager.callChangeObserver(Lorg/sikuli/script/natives/FindResults;)V
  j  org.sikuli.script.EventManager.checkChanges(Lorg/sikuli/script/ScreenImage;)V+66
  J  org.sikuli.script.Region.observe(D)V
  j  org.sikuli.script.Region$1.run()V+8
  v  ~StubRoutines::call_stub
  
- ---------------  P R O C E S S  ---------------
- 
- Java Threads: ( => current thread )
-   0x003b6800 JavaThread "DestroyJavaVM" [_thread_blocked, id=5560, stack(0x00990000,0x009e0000)]
- =>0x02cedc00 JavaThread "Thread-2" [_thread_in_native, id=5620, stack(0x033e0000,0x03430000)]
-   0x03197c00 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=5624, stack(0x03390000,0x033e0000)]
-   0x02cdf000 JavaThread "AWT-Windows" daemon [_thread_in_native, id=5580, stack(0x030a0000,0x030f0000)]
-   0x02cde400 JavaThread "AWT-Shutdown" [_thread_blocked, id=5564, stack(0x03050000,0x030a0000)]
-   0x02cd2400 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=5596, stack(0x03000000,0x03050000)]
-   0x02c59400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=5300, stack(0x02ed0000,0x02f20000)]
-   0x02c56400 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=5312, stack(0x02e80000,0x02ed0000)]
-   0x02c51800 JavaThread "Attach Listener" daemon [_thread_blocked, id=5460, stack(0x02e30000,0x02e80000)]
-   0x02c50000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5320, stack(0x02de0000,0x02e30000)]
-   0x02c4bc00 JavaThread "Finalizer" daemon [_thread_blocked, id=5504, stack(0x02d90000,0x02de0000)]
-   0x02c47000 JavaThread "Reference Handler" daemon [_thread_blocked, id=5572, stack(0x02d40000,0x02d90000)]
- 
- Other Threads:
-   0x02c0a400 VMThread [stack: 0x02cf0000,0x02d40000] [id=5556]
-   0x02c63c00 WatcherThread [stack: 0x02f20000,0x02f70000] [id=5348]
- 
- VM state:not at safepoint (normal execution)
- 
- VM Mutex/Monitor currently owned by a thread: None
- 
- Heap
-  def new generation   total 4928K, used 3288K [0x22990000, 0x22ee0000, 0x27ee0000)
-   eden space 4416K,  72% used [0x22990000, 0x22cad068, 0x22de0000)
-   from space 512K,  19% used [0x22e60000, 0x22e79028, 0x22ee0000)
-   to   space 512K,   0% used [0x22de0000, 0x22de0000, 0x22e60000)
-  tenured generation   total 10944K, used 1213K [0x27ee0000, 0x28990000, 0x32990000)
-    the space 10944K,  11% used [0x27ee0000, 0x2800f5c0, 0x2800f600, 0x28990000)
-  compacting perm gen  total 12288K, used 584K [0x32990000, 0x33590000, 0x36990000)
-    the space 12288K,   4% used [0x32990000, 0x32a22028, 0x32a22200, 0x33590000)
-     ro space 10240K,  51% used [0x36990000, 0x36ebe318, 0x36ebe400, 0x37390000)
-     rw space 12288K,  55% used [0x37390000, 0x37a2a088, 0x37a2a200, 0x37f90000)
- 
- Code Cache  [0x00a10000, 0x00ae8000, 0x02a10000)
-  total_blobs=378 nmethods=180 adapters=134 free_code_cache=32697408 largest_free_block=0
- 
- Dynamic libraries:
- 0x00400000 - 0x00425000 	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 - 0x6da9f000 	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
- 0x6d7e0000 - 0x6d7ef000 	C:\Program Files\Java\jre6\bin\zip.dll
- 0x6d000000 - 0x6d14c000 	C:\Program Files\Java\jre6\bin\awt.dll
- 0x73000000 - 0x73026000 	C:\WINDOWS\system32\WINSPOOL.DRV
- 0x77c10000 - 0x77c68000 	C:\WINDOWS\system32\msvcrt.dll
- 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
- 0x4fdd0000 - 0x4ff76000 	C:\WINDOWS\system32\d3d9.dll
- 0x03130000 - 0x03136000 	C:\WINDOWS\system32\d3d8thk.dll
- 0x77c00000 - 0x77c08000 	C:\WINDOWS\system32\VERSION.dll
- 0x7c9c0000 - 0x7d1d7000 	C:\WINDOWS\system32\shell32.dll
- 0x10000000 - 0x10007000 	C:\Program Files\Sikuli X\libs\Win32Util.dll
- 0x6d350000 - 0x6d356000 	C:\Program Files\Java\jre6\bin\jawt.dll
- 0x78520000 - 0x785c3000 	C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.6161_x-ww_31a54e43\MSVCR90.dll
- 0x03430000 - 0x03578000 	C:\Program Files\Sikuli X\libs\VisionProxy.dll
- 0x71ab0000 - 0x71ac7000 	C:\WINDOWS\system32\WS2_32.dll
- 0x71aa0000 - 0x71aa8000 	C:\WINDOWS\system32\WS2HELP.dll
- 0x03590000 - 0x037ae000 	C:\Program Files\Sikuli X\libs\cxcore210.dll
- 0x78480000 - 0x7850e000 	C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.6161_x-ww_31a54e43\MSVCP90.dll
- 0x037c0000 - 0x03a48000 	C:\Program Files\Sikuli X\libs\cv210.dll
- 0x03a60000 - 0x03b2a000 	C:\Program Files\Sikuli X\libs\highgui210.dll
- 0x73b50000 - 0x73b67000 	C:\WINDOWS\system32\AVIFIL32.dll
- 0x77be0000 - 0x77bf5000 	C:\WINDOWS\system32\MSACM32.dll
- 0x75a70000 - 0x75a91000 	C:\WINDOWS\system32\MSVFW32.dll
- 0x73b80000 - 0x73b92000 	C:\WINDOWS\system32\AVICAP32.dll
- 0x5edd0000 - 0x5ede7000 	C:\WINDOWS\system32\OLEPRO32.DLL
- 0x77120000 - 0x771ab000 	C:\WINDOWS\system32\OLEAUT32.dll
- 0x6d600000 - 0x6d613000 	C:\Program Files\Java\jre6\bin\net.dll
- 0x71a50000 - 0x71a8f000 	C:\WINDOWS\system32\mswsock.dll
- 0x662b0000 - 0x66308000 	C:\WINDOWS\system32\hnetcfg.dll
- 0x71a90000 - 0x71a98000 	C:\WINDOWS\System32\wshtcpip.dll
- 0x76bf0000 - 0x76bfb000 	C:\WINDOWS\system32\PSAPI.DLL
- 0x59a60000 - 0x59b01000 	C:\WINDOWS\system32\dbghelp.dll
- 
  VM Arguments:
  java_command: StreamerScraper.jar 5
  Launcher Type: SUN_STANDARD
  
  Environment Variables:
  CLASSPATH=.;C:\Program Files\Java\jre6\lib\ext\QTJava.zip
  PATH=C:\Program Files\ATI Stream\bin\x86;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Java\jdk1.6.0_22\bin\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Sikuli X\libs;C:\Program Files\Java\jre6\\bin
  USERNAME=me
  OS=Windows_NT
  PROCESSOR_IDENTIFIER=x86 Family 15 Model 107 Stepping 2, AuthenticAMD
- 
  
  ---------------  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 15 model 107
  stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, mmxext, 3dnow,
  3dnowext
  
  Memory: 4k page, physical 3406888k(2348932k free), swap
  5335432k(4039836k free)
  
  vm_info: Java HotSpot(TM) Client VM (20.6-b01) for windows-x86 JRE
  (1.6.0_31-b05), built on Feb  3 2012 18:44:09 by "java_re" with MS VC++
  7.1 (VS2003)
  
  time: Mon Jun 18 09:36:35 2012
  elapsed time: 28617 seconds

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1014870

Title:
  C [VisionProxy.dll] creates EXCEPTION_ACCESS_VIOLATION

Status in Sikuli:
  New

Bug description:
  Sikuli Version:
  RaiMan's Observer mod (using sikuli_script.jar and Observer), built off of Sikuli X rc3

  I'm using Java and incorporting the Sikuli observer to monitor a
  region.  Here is the Java dump when it fatals:

  [info] Windows utilities loaded.
  [RaiMan] observer started
  [info] Sikuli vision engine loaded.
  [info] Text Recognizer inited.
  #
  # A fatal error has been detected by the Java Runtime Environment:
  #
  #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x034c3ba0, pid=5544, tid=5620
  #
  # JRE version: 6.0_31-b05
  # Java VM: Java HotSpot(TM) Client VM (20.6-b01 mixed mode, sharing windows-x86
  )
  # Problematic frame:
  # C  [VisionProxy.dll+0x93ba0]
  #
  Stack: [0x033e0000,0x03430000],  sp=0x0342e4f8,  free space=313k
  Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
  C  [VisionProxy.dll+0x93ba0]

  [error occurred during error reporting (printing native stack), id
  0xc0000005]

  Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
  j  org.sikuli.script.natives.VisionProxyJNI.Vision_recognize(JLorg/sikuli/script/natives/Mat;)Ljava/lang/String;+0
  j  org.sikuli.script.natives.Vision.recognize(Lorg/sikuli/script/natives/Mat;)Ljava/lang/String;+5
  j  org.sikuli.script.TextRecognizer.recognize(Ljava/awt/image/BufferedImage;)Ljava/lang/String;+13
  j  org.sikuli.script.TextRecognizer.recognize(Lorg/sikuli/script/ScreenImage;)Ljava/lang/String;+7
  j  org.sikuli.script.Region.text()Ljava/lang/String;+35
  j  streamerscraper.StreamerScraperStock.targetChanged(Lorg/sikuli/script/ChangeEvent;)V+100
  J  org.sikuli.script.EventManager.callChangeObserver(Lorg/sikuli/script/natives/FindResults;)V
  j  org.sikuli.script.EventManager.checkChanges(Lorg/sikuli/script/ScreenImage;)V+66
  J  org.sikuli.script.Region.observe(D)V
  j  org.sikuli.script.Region$1.run()V+8
  v  ~StubRoutines::call_stub

  VM Arguments:
  java_command: StreamerScraper.jar 5
  Launcher Type: SUN_STANDARD

  Environment Variables:
  CLASSPATH=.;C:\Program Files\Java\jre6\lib\ext\QTJava.zip
  PATH=C:\Program Files\ATI Stream\bin\x86;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Java\jdk1.6.0_22\bin\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Sikuli X\libs;C:\Program Files\Java\jre6\\bin
  USERNAME=me
  OS=Windows_NT
  PROCESSOR_IDENTIFIER=x86 Family 15 Model 107 Stepping 2, AuthenticAMD

  ---------------  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 15 model 107
  stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, mmxext, 3dnow,
  3dnowext

  Memory: 4k page, physical 3406888k(2348932k free), swap
  5335432k(4039836k free)

  vm_info: Java HotSpot(TM) Client VM (20.6-b01) for windows-x86 JRE
  (1.6.0_31-b05), built on Feb  3 2012 18:44:09 by "java_re" with MS
  VC++ 7.1 (VS2003)

  time: Mon Jun 18 09:36:35 2012
  elapsed time: 28617 seconds

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1014870/+subscriptions


References