[ 
https://issues.apache.org/jira/browse/CB-10898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Omar Mefire updated CB-10898:
-----------------------------
    Description: 
When trying to run the mobilespec app on the iOS simulator, an error: 'Invalid 
Device State' is encountered.

Log: 
https://ci.apache.org/builders/cordova-ios/builds/2076/steps/running-tests/logs/stdio
======
Results at 
'/Users/buildbot/slaves/apache/cordova-ios/mobilespec/platforms/ios/build/device/mobilespec.ipa'
 
[....] Waiting up to 1 seconds for iOS device to be connected
No target specified for emulator. Deploying to iPhone-6s-Plus, 9.1 simulator
An error was encountered processing the command 
(domain=com.apple.CoreSimulator.SimError, code=159):
Invalid device state
logPath: 
/Users/buildbot/slaves/apache/cordova-ios/mobilespec/platforms/ios/cordova/console.log
[MEDIC LOG Thu, 17 Mar 2016 06:06:24 GMT] Finished waiting for run command
[MEDIC LOG Thu, 17 Mar 2016 06:06:24 GMT] started waiting for test results
[MEDIC LOG Thu, 17 Mar 2016 06:30:25 GMT] Finished polling for mobilespec 
results.
[MEDIC LOG Thu, 17 Mar 2016 06:30:25 GMT]     Results Found:   false
[MEDIC LOG Thu, 17 Mar 2016 06:30:25 GMT]     Total attempts:  144
[MEDIC LOG Thu, 17 Mar 2016 06:30:25 GMT]     Failed attempts: 0
[MEDIC LOG Thu, 17 Mar 2016 06:30:25 GMT] FATAL: Could not find test results. 
Check the output of medic-log to see if the app crashed before it could upload 
them to couchdb.
program finished with exit code 1
elapsedTime=1491.694117



  was:
Plugin contact tests fail consistently with various reasons on android-osx. 

Recent build links:
https://ci.apache.org/builders/cordova-android-osx/builds/2076
https://ci.apache.org/builders/cordova-android-osx/builds/2075

Build log:
Total failures: 3
Failing tests:
    cordova-plugin-contacts-tests.tests >> Contacts (navigator.contacts) save 
method contacts.spec.22 update a contact
        Error: Timeout - Async callback was not invoked within timeout 
specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
            Error: Timeout - Async callback was not invoked within timeout 
specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
                at 
file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1764:23
        Error: Timeout - Async callback was not invoked within timeout 
specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
            Error: Timeout - Async callback was not invoked within timeout 
specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
                at 
file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1764:23
    cordova-plugin-contacts-tests.tests >> Contacts (navigator.contacts) 
Contact.remove method contacts.spec.23 calling remove on a contact that has an 
id of null should return ContactError.UNKNOWN_ERROR
        Error: Timeout - Async callback was not invoked within timeout 
specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
            Error: Timeout - Async callback was not invoked within timeout 
specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
                at 
file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1764:23
    cordova-plugin-contacts-tests.tests >> Contacts (navigator.contacts) Round 
trip Contact tests (creating + save + delete + find) contacts.spec.25 Creating, 
saving, finding a contact should work
        Error: Timeout - Async callback was not invoked within timeout 
specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
            Error: Timeout - Async callback was not invoked within timeout 
specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
                at 
file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1764:23
        Expected spy unknownErrorCallback not to have been called.
            Error: Expected spy unknownErrorCallback not to have been called.
                at stack 
(file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1455:17)
                at buildExpectationResult 
(file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1425:14)
                at Spec.Env.expectationResultFactory 
(file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:572:18)
                at Spec.addExpectationResult 
(file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:321:34)
                at Expectation.addExpectationResult 
(file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:516:21)
                at Expectation.toHaveBeenCalled 
(file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1379:12)
                at 
file:///android_asset/www/plugins/cordova-plugin-contacts-tests/tests.js:73:51
                at fail 
(file:///android_asset/www/plugins/cordova-plugin-contacts/www/Contact.js:111:9)
                at Contact.remove 
(file:///android_asset/www/plugins/cordova-plugin-contacts/www/Contact.js:114:9)
                at removeContact 
(file:///android_asset/www/plugins/cordova-plugin-contacts-tests/tests.js:60:21)


> 'Invalid Device State' when starting iOS simulator
> --------------------------------------------------
>
>                 Key: CB-10898
>                 URL: https://issues.apache.org/jira/browse/CB-10898
>             Project: Apache Cordova
>          Issue Type: Test
>            Reporter: Omar Mefire
>            Assignee: Omar Mefire
>            Priority: Critical
>              Labels: cordova-ios, found-by-ci
>
> When trying to run the mobilespec app on the iOS simulator, an error: 
> 'Invalid Device State' is encountered.
> Log: 
> https://ci.apache.org/builders/cordova-ios/builds/2076/steps/running-tests/logs/stdio
> ======
> Results at 
> '/Users/buildbot/slaves/apache/cordova-ios/mobilespec/platforms/ios/build/device/mobilespec.ipa'
>  
> [....] Waiting up to 1 seconds for iOS device to be connected
> No target specified for emulator. Deploying to iPhone-6s-Plus, 9.1 simulator
> An error was encountered processing the command 
> (domain=com.apple.CoreSimulator.SimError, code=159):
> Invalid device state
> logPath: 
> /Users/buildbot/slaves/apache/cordova-ios/mobilespec/platforms/ios/cordova/console.log
> [MEDIC LOG Thu, 17 Mar 2016 06:06:24 GMT] Finished waiting for run command
> [MEDIC LOG Thu, 17 Mar 2016 06:06:24 GMT] started waiting for test results
> [MEDIC LOG Thu, 17 Mar 2016 06:30:25 GMT] Finished polling for mobilespec 
> results.
> [MEDIC LOG Thu, 17 Mar 2016 06:30:25 GMT]     Results Found:   false
> [MEDIC LOG Thu, 17 Mar 2016 06:30:25 GMT]     Total attempts:  144
> [MEDIC LOG Thu, 17 Mar 2016 06:30:25 GMT]     Failed attempts: 0
> [MEDIC LOG Thu, 17 Mar 2016 06:30:25 GMT] FATAL: Could not find test results. 
> Check the output of medic-log to see if the app crashed before it could 
> upload them to couchdb.
> program finished with exit code 1
> elapsedTime=1491.694117



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to