sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #11291
[Bug 1014870] Re: C [VisionProxy.dll] creates EXCEPTION_ACCESS_VIOLATION
Thanks for your reply. Please find below a stripped down version of my
class:
public final class Example implements SikuliEventObserver {
private final Region test;
public Example(Region r)
{
this.test = r;
//on a single pixel change, trigger onChange
this.test.onChange(1, this);
this.test.observeInBackground(99999999);
}
public void targetAppeared(AppearEvent ae) {
throw new UnsupportedOperationException("Not supported yet.");
}
public void targetVanished(VanishEvent ve) {
throw new UnsupportedOperationException("Not supported yet.");
}
public void targetChanged(ChangeEvent ce) {
String myText = this.test.text();
/*
* insert into our db
*/
this.dbInsert(myText);
}
}
To address some possible immediate concerns you might have:
I used
this.test.onChange(1, this);
in the constructor and passed "this" into the onChange function because that's what implements the observer. i saw no other way to do it.
i gave
this.test.observeInBackground(99999999);
the large value to keep it running forever. i saw no function for Java (saw one for Python) that allowed the observer to observe in the background forever. i restart the java app every week or so.
so, essentially whenever the observer detects a 1 pixel change in the
region, it calls the onChange event which grabs the text and puts it
into a database. i have to use the OCR capability because the
application i'm monitoring doesn't have a normal windows control, and i
can't use Sikuli's getText capability.
--
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