[
https://issues.apache.org/jira/browse/CB-10574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15143789#comment-15143789
]
ASF GitHub Bot commented on CB-10574:
-------------------------------------
GitHub user sarangan12 opened a pull request:
https://github.com/apache/cordova-plugin-geolocation/pull/70
CB-10574: MobileSpec can't get results for WP8.1 Builds
The MobileSpec can't get results for WP8.1 Builds.
**Why?**
Because, one of the tests in the geolocation plugin is failing and causes
the app to crash. This test gets the "0x80004004 - JavaScript runtime error:
Operation aborted" error. So, the app crashes. The issue around this test must
be fixed for the CI to finish successfully for Windows Phone 8.1.
**What is the scenario for the crash?**
The scenario could be seen manually also. When you run the mobilespec test
for geolocatio API, try the following steps:
1. Start Watching
2. Stop Watching
3. Start Watching
4. Start Watching
The app will crash in step 4. But it will not crash on step 3.
**Why does the app crash on step 4?**
Per code, the loc object (instance of
Windows.Devices.Geolocation.Geolocator object) is being reused in both the
steps - which causes the crash.
**What is the fix?**
The current fix is to create a new instance of the object instead of
resuing the same object. I have validated the fix by running the geolocation
tests and all of them are passing.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/sarangan12/cordova-plugin-geolocation CB-10574
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-plugin-geolocation/pull/70.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #70
----
commit fbe3bdaef60155cefe2cf789cc62cb27e5a8a3af
Author: Sarangan Rajamanickam <[email protected]>
Date: 2016-02-12T00:19:04Z
CB-10574: MobileSpec can't get results for WP8.1 Builds
MobileSpec can't get results for WP8.1 Builds
----
> MobileSpec can't get results for WP8.1 Builds
> ---------------------------------------------
>
> Key: CB-10574
> URL: https://issues.apache.org/jira/browse/CB-10574
> Project: Apache Cordova
> Issue Type: Test
> Environment: Windows
> Reporter: Omar Mefire
> Assignee: Sarangan Rajamanickam
> Priority: Critical
> Labels: found-by-ci, wp8.1
>
> Log 1:
> (https://ci.apache.org/builders/cordova-windows-phone8.1/builds/1524/steps/running-tests/logs/stdio)
> ======
> CordovaApp.Phone ->
> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_AnyCPU_bundle_debug.appxupload
> Your package has been successfully created.
> Deploying phone package to emulator:
> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_debug_Test\CordovaApp.Phone_0.0.1.0_AnyCPU_debug.appxbundle
> Attempting to remove previously installed application...
> Deploying app package...
> didn't get test results: timed out
> program finished with exit code 1
> elapsedTime=1143.444000
> ====
> Log 2:
> -----------
> ERROR running one or more of the platforms: Unexpected error from
> installation: C:\Program Files (x86)\Microsoft SDKs\Windows
> Phone\v8.1\Tools\AppDeploy\AppDeployCmd.exe: Command failed with exit code
> 2148734208 Error output:
> Error: Deployment failed because no Windows Phone was detected. Make sure a
> phone is connected and powered on. You may have previously installed the app
> with an earlier version of cordova-windows. Ensure the app is uninstalled
> from the phone and then try to run again.
> You may not have the required environment or OS to run this project
> [MEDIC LOG Mon, 08 Feb 2016 16:39:10 GMT] no device found, so switching to
> emulator
> ==========
> Log 3:
> https://ci.apache.org/builders/cordova-windows-phone8.1/builds/1506/steps/running-tests/logs/stdio
> -----------
> Attempting to remove previously installed application...
> Deploying app package...
> query failed for mobilespec_results { [Error: connect ETIMEDOUT] code:
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> query failed for mobilespec_results { [Error: connect ETIMEDOUT] code:
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> didn't get test results: timed out
> program finished with exit code 1
> elapsedTime=1142.741000
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]