sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #10341
[Bug 992009] Re: [request] Java: want a preload option for all or an individual library when a Java application launches --- workaround
It seems that window() also calls the same instances of the previous
line so, the minimal preload setup workaround can be just:
new App("").window();
TextRecognizer.getInstance();
which outputs:
[info] Windows utilities loaded.
[info] Sikuli vision engine loaded.
[info] VDictProxy loaded.
[info] Text Recognizer inited.
I also tried with just:
new App("").window().find("");
but, although it gives the same output (loading and initializing the 4
libraries), the JVM crashes.
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/992009
Title:
[request] Java: want a preload option for all or an individual library
when a Java application launches --- workaround
Status in Sikuli:
New
Bug description:
*** workaround
put the following code at the beginning.
It will force preload all stuff.
new Finder((new Screen()).capture(0,0,1,1), new Screen());
new App("").window();
TextRecognizer.getInstance();
(source: https://launchpad.net/~filipe-alonso)
------------------------------------------------------
this is based on the related question:
Is there any embed function in sikuli-script to preload all or an
individual library when a Java application launches so that one
doesn't experience loading delay at first calls on depending
functions?
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/992009/+subscriptions
References