Sikuli 1.1.4. App.open: not found in taskList after 0 secs - sikuli

Try to start app (Mojave, Sikuli 1.1.4)
x = App("/Applications/Calculator.app")
x.open()
App starts, but in message area appears error:
[error] App.open: not found in taskList after 0 secs
(/Applications/Calculator.app)
Screenshot

It was a bug.
I reported this to sikuli bug tracker, developers fixed that and released a new build (2018-12-14_08:11 (Build 148) )

Related

Google Chrome always crashes after opening a page

Opening google-chrome and starting any page will lead to "freezing". When start with terminal, it shows some errors:
ERROR: gpu_process_host.cc(956)] GPU process exited unexpectedly: exit_code=139
ERROR: gpu_init.cc(453)] Passthrough is not supported, GL is swiftshader, ANGLE is
ERROR: command_buffer_proxy_impl.cc(125)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
ERROR: chrome_browser_main_extra_parts_metrics.cc(228)] crbug.com/1216328: Checking Bluetooth availability started. Please report if there is no report that this ends.
ERROR: chrome_browser_main_extra_parts_metrics.cc(231)] crbug.com/1216328: Checking Bluetooth availability ended.
ERROR: chrome_browser_main_extra_parts_metrics.cc(234)] crbug.com/1216328: Checking default browser status started. Please report if there is no report that this ends.
ERROR: chrome_browser_main_extra_parts_metrics.cc(238)] crbug.com/1216328: Checking default browser status ended.
ERROR: platform_thread_posix.cc(147)] pthread_create: Resource temporarily unavailable (11)
I delete the repeated lines. Actually, this situation arise when I upgraded Ubuntu 18.04 to 20.04, and updated chrome to newest. I have no idea what's the problem about. I searched these output but seems nobody has similar problem.
By the way, vscode sometimes freeze like chrome after that upgrade. I don't know if there are any relationships...
What are you trying to do? Where these errors are getting displayed ? If you are using Selenium and you are getting these errors in the console then add these options into your Selenium code-
options = webdriver.ChromeOptions()
options.add_experimental_option('excludeSwitches', ['enable-logging'])
driver = webdriver.Chrome(options=options)

Puppeteer Error: Failed to launch the browser process when run in Google Cloud Function

I have function tracking use Cloud Scheduler run every min, every day deploy in Google Cloud Function.
In this function, I have use puppeteer and mostly function tracking run very well but sometimes, my functions have an error
Error: Failed to launch the browser process!
[0220/073301.661396:ERROR:address_tracker_linux.cc(201)] Could not bind NETLINK socket: Permission denied (13)
[0220/073301.661935:ERROR:file_path_watcher_linux.cc(71)] Failed to read /proc/sys/fs/inotify/max_user_watches
Inconsistency detected by ld.so: ../elf/dl-tls.c: 481: _dl_allocate_tls_init: Assertion `listp->slotinfo[cnt].gen <= GL(dl_tls_generation)' failed!
TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/master/docs/troubleshooting.md
at onClose (/srv/node_modules/puppeteer/lib/Launcher.js:750:14)
at ChildProcess.helper.addEventListener (/srv/node_modules/puppeteer/lib/Launcher.js:740:61)
at emitTwo (events.js:131:20)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
This is the frequency of errors
Puppeteer version: v2.0.0 and update newest v2.1.1 yesterday
Platform/ OS version: Google Cloud Function
Node.js version: 8
I searched for all the issues of puppeteer but unsolvable my case. Please help me
Thankyou
You need to downgrade your puppeteer version to 2.0.0, it's looks like if there is something which make failed puppeteer when you deploy your app.
You can check
https://github.com/puppeteer/puppeteer/issues/5379#issuecomment-587185091
For elastic beanstalk worked for me by downgrade puppeteer version.

Selenium Timedout Exception while running test cases from Jenkins

Am running a set of test cases from Jenkins. All the test cases are failing with org.openqa.selenium.TimedoutException on all the functions. I have tested the same code using eclipse in local and its executing fine. Please check on the below error and help on resolving this issue
Configurations:
Selenium- standalone - jar - 2.53
Chromedriver - 2.36
Chrome Browser - 65
testng jar = 6.8
Code Sample:
WebDriverWait wait = new WebDriverWait(driver, 1000);
wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(ORCollection.get("BtnMDUEligibilityClick").toString())));
WebElement el = driver.findElement(By.xpath(ORCollection.get("BtnMDUEligibilityClick").toString()));
((JavascriptExecutor) driver).executeScript("arguments[0].scrollIntoView(true);", el);
WebElementClick(" ",ORCollection.get("BtnMDUEligibilityClick").toString());
Thread.sleep(10000);
Logs:
org.openqa.selenium.TimeoutException: Timed out after 40 seconds waiting for visibility of element located by By.xpath: //button[contains(#class,'js-submit')]
I have increased webdriver.wait value in code from 40 seconds to 1000 but still we are getting the same error as Timedout.
I assume that your XPath expressions are correct and you can manually open the browser on the Jenkins slave machine.
The issue could be connected with the lack of interactive desktop. This could happen if you have installed Jenkins on the slave machine as windows service. The recommended for Windows way to control a Windows slave is by using Launch slave agents via Java Web Start. More info here and here.

LIBGDX ios simulator crash. LibGDX / Robovm compiles for 64bit instead of 32bit. What should I do?

My libgdx app starts up on ios simulator and shows ios intro libgdx pic, then crashes.
I get:
[ERROR] Session could not be started: Error Domain=NSPOSIXErrorDomain Code=3 "Unable to run app in Simulator" UserInfo=0x7f853960ff60 {NSUnderlyingError=0x7f8539464ff0 "Failed to lookup the process ID of se.myapp.IOSLauncher after successful launch. Perhaps it crashed after launch.", NSLocalizedFailureReason=An error was encountered while running (Domain = NSPOSIXErrorDomain, Code = 3), NSLocalizedDescription=Unable to run app in Simulator}
Seems to be related to trying to run 64bit on iPhone 4s, where it is not supported. Does anyone know how to turn off 64bit for robovm in libgdx?
If I change the ios-sim command:
/Users/macuser/Documents/workspace/.metadata/.plugins/org.robovm.eclipse.ui/robovm-1.4.0/bin/ios-sim launch /Users/macuser/Documents/workspace/.metadata/.plugins/org.robovm.eclipse.ui/build/myapp-ios/myapp-ios/ios/x86_64/IOSLauncher.app --timeout 90 --unbuffered --devicetypeid "com.apple.CoreSimulator.SimDeviceType.iPhone-4s, 8.0" --stdout /var/folders/ml/zdhkbw3x0g9550pq9mgfrcsw0000gn/T/robovm-stdout-6250612031367207111.fifo --stderr /var/folders/ml/zdhkbw3x0g9550pq9mgfrcsw0000gn/T/robovm-stderr-5592986297298678222.fifo --setenv ROBOVM_LAUNCH_MODE=release --args -rvm:log=warn
To:
/Users/macuser/Documents/workspace/.metadata/.plugins/org.robovm.eclipse.ui/robovm-1.4.0/bin/ios-sim launch /Users/macuser/Documents/workspace/.metadata/.plugins/org.robovm.eclipse.ui/build/myapp-ios/myapp-ios/ios/x86/IOSLauncher.app --timeout 90 --unbuffered --devicetypeid "com.apple.CoreSimulator.SimDeviceType.iPhone-4s, 8.0" --stdout /var/folders/ml/zdhkbw3x0g9550pq9mgfrcsw0000gn/T/robovm-stdout-6250612031367207111.fifo --stderr /var/folders/ml/zdhkbw3x0g9550pq9mgfrcsw0000gn/T/robovm-stderr-5592986297298678222.fifo --setenv ROBOVM_LAUNCH_MODE=release --args -rvm:log=warn
It works with the old robovm. But for the new version it seems those directories aren't even built at all, so it fails.
Where should I specify the architecture? There is:
<arch>thumbv7</arch>
in robovm.xml but it doesn't seem to do anything?
Has this anything to do with the eclipse integration plugin (I am running from eclipse)?
OK I found out (after about 12 hours of digging)!
I looked in the wrong place all the time. The solution is (in eclipse) to go to Run Configurations / iOS Simulator App / Choose a device and select 32-bit (x86).

Dalekjs test scripts on OS windows-8 64-bit Chrome doesn't run?

I have successfully installed Dalekjs on windows OS but when i try to run my first test script , the test doesn't run. Though it runs successfully on PhontomJs but when running with real browser, the browser opens and closes and shows error.
Running tests
Running Browser: Google Chrome
OS: Windows NT 6.2 x86_64
Browser Version:
RUNNING TEST - "Page title is correct"
> OPEN http://google.com
x TITLE
0 EXPECTED: Google
0 FOUND: [object Object]
0 MESSAGE: It has title
x TEST - "Page title is correct" FAILED
0/1 assertions passed. Elapsed Time: 4.99 sec
When running on phantonJS, it shows
Running Browser: PhantomJS
OS: windows 8 32bit
Browser Version: 1.9.7
RUNNING TEST - "Page title is correct"
> OPEN http://google.com
* TITLE It has title
* 1 Assertions run
* TEST - "Page title is correct" SUCCEEDED
Does DalekJs have problem with Window8 64bit system because it runs fine on 32 bit?
I analysed the problem, it seems like this is a bug during the system architecture check.
Could you please file an issue here?!