{ "id": "166223", "key": "TIMOB-24422", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-01-30T12:05:00.000+0000", "created": "2017-02-22T16:25:42.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "18154", "name": "Release 6.0.1", "archived": false, "released": true, "releaseDate": "2016-12-21" }, { "id": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "issuelinks": [ { "id": "57134", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "inwardIssue": { "id": "172934", "key": "TIMOB-26782", "fields": { "summary": "Windows: Error thrown when installing a packaged application to device using wptools", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } }, { "id": "54822", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "167445", "key": "TIMOB-24656", "fields": { "summary": "Windows: Failed to install app on device", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "57132", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "172928", "key": "TIMOB-26776", "fields": { "summary": "Windows: App launch failed with \"cyclic redundancy check\" error on device", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "54856", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "162517", "key": "TIMOB-23758", "fields": { "summary": "Windows: Unable to build to 10.0.10586 emulator after installing Windows SDK 10.0.14393", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "57130", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "172914", "key": "TIMOB-26766", "fields": { "summary": "Windows: Timeout error thrown when installing to wp-device ", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "54564", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "166613", "key": "TIDOC-2806", "fields": { "summary": "Add/Update notes about getting started with Windows 10 mobile emulators", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-01-30T17:24:53.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "When attempting to install a Titanium app onto a Windows Phone 10 emulator (specifically Mobile Emulator 10.0.14393.0 WVGA 4 inch 512MB), the process fails when trying to install the library dependency:\r\n\r\n{code}\r\n[INFO] Installing dependency: Microsoft.VCLibs.x86.14.00.appx\r\n[INFO] Project built successfully in 1m 15s 438ms\r\n\r\n[ERROR] Failed to install app (code 2147943860): Windows App Deployment Tool\r\nVersion 10.0.0.0\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\n\r\nOpening connection to device at '169.254.199.16'.\r\n\r\nInstalling app...\r\nDisconnecting.\r\n\r\n0x80131500 - Failed to install or update package: Unspecified error\r\n\r\n'Microsoft Platform Extensions' violates pattern constraint of '\\bms-resource:.{1,256}'.\r\n\r\n0x80131505 - Unspecified error\r\n\r\n'Microsoft Platform Extensions' violates pattern constraint of '\\bms-resource:.{1,256}'.\r\n\r\n0x800705B4 - Unspecified error\r\n\r\n'Microsoft Platform Extensions' violates pattern constraint of '\\bms-resource:.{1,256}'.\r\n{code}\r\n\r\n*Steps to reproduce;*\r\n# Create a new alloy application {{appc new}}\r\n# Build to device {{appc run -p windows -T wp-device}}", "attachment": [], "flagged": false, "summary": "Windows: Deployment fails with \"violates pattern constraint of bms-resource\"", "creator": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "environment": null, "closedSprints": [ { "id": 1109, "state": "closed", "name": "2019 Sprint 3", "startDate": "2019-01-28T17:38:43.075Z", "endDate": "2019-02-09T17:38:00.000Z", "completeDate": "2019-02-08T21:37:29.498Z", "originBoardId": 114 }, { "id": 854, "state": "closed", "name": "2017 Sprint 06 SDK", "startDate": "2017-03-12T19:14:58.337Z", "endDate": "2017-03-26T19:14:00.000Z", "completeDate": "2017-03-26T22:01:15.828Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "407583", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Note the version number of the Windows SDK/Phone: 10.0.14393.0\r\n\r\nI think this may be a new issue specifically for this version of the SDK. If I install he app manually with winappdeploycmd.exe that works fine. I think we typically attempt to install the dependency manually ourselves before the app, and the new tooling lets you specify the dependency to install or automagically picks it up. We may just need to roll back to letting the winappdeploycmd do that?", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2017-02-22T16:28:28.000+0000", "updated": "2017-02-22T16:28:28.000+0000" }, { "id": "407644", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/958", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-02-23T02:51:48.000+0000", "updated": "2017-02-23T02:51:48.000+0000" }, { "id": "407658", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Even after we skip installing dependencies, Jenkins still has errors with this: [PR-958/1/pipeline/42|https://jenkins.appcelerator.org/blue/organizations/jenkins/appcelerator%2Ftitanium_mobile_windows/detail/PR-958/1/pipeline/42]\r\n\r\n{code}\r\n[ERROR] : \b\b \bFailed to install app (code 2147943860): Windows App Deployment Tool\r\nVersion 10.0.0.0\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nOpening connection to device at '169.254.227.193'.\r\nInstalling app...\r\nDisconnecting.\r\n0x80131500 - Failed to install or update package: Unspecified error\r\n'Microsoft Platform Extensions' violates pattern constraint of '\\bms-resource:.{1,256}'.\r\n0x80131505 - Unspecified error\r\n'Microsoft Platform Extensions' violates pattern constraint of '\\bms-resource:.{1,256}'.\r\n0x800705B4 - Unspecified error\r\n'Microsoft Platform Extensions' violates pattern constraint of '\\bms-resource:.{1,256}'.\r\n{code}\r\n\r\n[~cwilliams] I find [this thread|https://social.msdn.microsoft.com/Forums/en-US/afb81643-e84e-4df9-9533-b68d2d603cfe/uwpunable-to-deploy-uwp-app-with-winappdeploycmd-getting-error-microsoft-platform-extensions?forum=wpdevelop], maybe we could try this?\r\n\r\n{quote}\r\nI faced that problem when deploying by real IP address.\r\nAfter I checked the device IP by \"winappdeploycmd devices\" it shows 127.0.0.1 as a IP address of your phone. Then used winappdeploycmd -ip 127.0.0.1 .... and it installed without that error. \r\n{quote}\r\n\r\n{code}\r\nwinappdeploycmd -ip 127.0.0.1\r\n{code}\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-02-23T09:11:58.000+0000", "updated": "2017-02-23T09:11:58.000+0000" }, { "id": "414679", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I believe [~cwilliams] already resolved this, original issue was emulator didn't properly pair the device and now it's working. Resolving this as \"Won't Do\". ", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T23:42:01.000+0000", "updated": "2017-03-21T23:42:01.000+0000" }, { "id": "418123", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "[~kota] So I am *still* seeing this on our build machine, specifically on trying to get our windowslib library built and tested. The \"TestApp10.0\" we use in the unit tests there is failing to install the app intermittently on the Windows 10 emulator. I'm going off of hints like this http://stackoverflow.com/questions/29991693/cant-deploy-universal-app-to-phone-with-windows-10-mobile-tech-preview where I think we need to update the appxmanifest to specify different dependencies. I think we may need to add the .NET.CoreRuntime dependency ourselves? Still working on it here: https://jenkins.appcelerator.org/job/cli/job/windowslib/job/PR-67/", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2017-04-26T18:58:40.000+0000", "updated": "2017-04-26T18:58:40.000+0000" }, { "id": "418273", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Finally found the source of the issue. The windowslib emulator.stop method works fine for Windows 8.1 emulators, but was not really stopping Windows 10 emulators (as verified in the Hyper-V manager). I have hacked it to use Stop-VM with the -TurnOff flag for now, but I need to do some more work to sniff OS version to determine if the Stop-VM powershell cmd is available (it is on Windows 10, but not stock Windows 8.1).", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2017-04-28T19:41:54.000+0000", "updated": "2017-04-28T19:41:54.000+0000" }, { "id": "418566", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "And, tracking down another issue that can contribute. I believe not only were we not properly shutting down emulators for Windows 10, but we're experiencing a timing issue on Windows 10 emulators using windowslib.emulator.install. I *think* that the unit test we have exposes that if you try to install an app to a Windows 10 emulator that isn't running, the windowslib code will \"connect\" to launch the emulator and then try to install the app, and I don't think it's waiting long enough for the install portion. We likely need to add some code to wait for the emulator to transition state after the connect call and before the install (but only for emulators!)", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2017-05-02T15:17:49.000+0000", "updated": "2017-05-02T15:17:49.000+0000" }, { "id": "419076", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I have faced similar issue on Windows 10 Mobile device on the latest 6.1.x build (6.1.0.v20170502132103).\r\n\r\nFor me, skipping installing dependencies solves this issue on my device. (Added {{--installDependencies}} flag)\r\nWould you try this [~cwilliams]?\r\nhttps://github.com/appcelerator/titanium_mobile_windows/pull/958\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-04T02:26:18.000+0000", "updated": "2017-05-04T02:26:18.000+0000" }, { "id": "419089", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "TIMOB-24656 ({{--skipInstallDependencies}})\r\n\r\nThis only intends to fix for the deployment issue described in the ticket.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-04T12:43:52.000+0000", "updated": "2017-05-04T12:43:52.000+0000" }, { "id": "419152", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~cwilliams] Regarding the timeout issue, do you mean [this config|https://github.com/appcelerator/titanium_mobile_windows/blob/master/cli/hooks/wp-run.js#L205]? It's set to 60 sec, but I guess it's too short because it usually takes 100 sec on my laptop (Surface Pro 3) to launch/install app on the emulator. (BTW I don't know why are we using the \"windows.log.timeout\" for the configuration key...(?)(?))", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-05T07:15:55.000+0000", "updated": "2017-05-05T07:16:26.000+0000" }, { "id": "419360", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "[~kota] I'm specifically running into this issue when running windowsill's unit tests on a Windows 10 build box in our CI build. It seems that the unit test that calls windowslib.emulator.install to both start the emulator and install the test app is seeing this specific error pretty much 100% of the time.\r\n\r\nI attempted to add some code between the wptool.connect call that launches the emulator and the app install that polled the emulator status to verify it is \"Running\", but that seems to state it's running immediately and doesn't avoid the issue. I'm wondering if this is simply because the default checkpoint already has a debug app installed in it? (But then why do the other tests that call launch and then install the app after work nearly 100% of the time without this issue?).\r\n", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2017-05-09T13:48:50.000+0000", "updated": "2017-05-09T13:48:50.000+0000" }, { "id": "424874", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm also seeing this issue consistently when deploying to my Windows 10 device. I haven't found a workaround yet.", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-27T10:19:10.000+0000", "updated": "2017-07-27T10:19:10.000+0000" }, { "id": "424877", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~gmathews] You've been using VS2017 right? It has a newer VCLibs dep see TIMOB-24934\r\n", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-07-27T11:52:36.000+0000", "updated": "2017-07-27T11:52:36.000+0000" }, { "id": "424881", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~eharris] Using {{--skipInstallDependencies}} didn't resolve the issue", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-27T13:08:00.000+0000", "updated": "2017-07-27T13:08:00.000+0000" }, { "id": "439485", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~gmathews] Is this still the issue for you? Could you try latest release (such as 7.2.0.GA)?", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-07-26T03:46:20.000+0000", "updated": "2018-07-26T03:46:20.000+0000" }, { "id": "445733", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this on 8.0.0 especially for an alloy app with hyperloop enabled. Interestingly I saw sometimes app is actually installed to the device even when Windows Deployment Tools errors out with this \"unspecified error\"...Increasing timeout & specifying {{--skipInstallDependencies}} didn't help.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-01-29T04:05:06.000+0000", "updated": "2019-01-29T04:05:06.000+0000" }, { "id": "445752", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Merged to titanium_mobile master & 8_0_X\r\n\r\nShould be available in [nightly build|https://builds.appcelerator.com/#8_0_X]\r\n\r\n{{appc ti sdk install --branch 8_0_X 8.0.0.v20190129074948}}", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-01-29T23:22:58.000+0000", "updated": "2019-01-29T23:22:58.000+0000" }, { "id": "445753", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Related PR: https://github.com/appcelerator/windowslib/pull/87", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-01-29T23:23:56.000+0000", "updated": "2019-01-29T23:23:56.000+0000" }, { "id": "445762", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "*Closing Ticket*\r\n\r\nThe fix can be found it SDK;\r\n\r\n{noformat}\r\n8.0.0.v20190129200738\r\n{noformat}\r\n", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2019-01-30T12:04:48.000+0000", "updated": "2019-01-30T12:04:48.000+0000" }, { "id": "445772", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "So my best guess here is that the VCLibs dependency is the one getting flagged as an issue here, since that app manifest contains a publisher name of \"Microsoft Platform Extensions\".\r\n\r\nI can't see anything wrong with that package itself personally, and I doubt MS would ship a busted app for VCLibs.\r\n\r\nSo my best stab in the dark at solving this is that we're not properly setting up the dependencies. In fact, I see we do not add VCLibs to the appxmanifest of the user app as a PackageDependency(https://github.com/appcelerator/titanium_mobile_windows/blob/master/templates/build/Package.win10.appxmanifest.in.ejs#L27). This link seems most relevant: https://developercommunity.visualstudio.com/content/problem/233202/microsoftnetnativeframework20-0x80073cf3.html\r\n\r\nSo a first attempt to fix this would likely be to add to the template the dependency:\r\n{code:xml}\r\n\r\n{code}\r\n\r\nThe second guess is that we should not try and install the dependencies manually ourselves in the build, but just install our apps and I assume it'll pick up the dependencies properly on it's own. (https://github.com/appcelerator/titanium_mobile_windows/blob/master/cli/hooks/wp-run.js#L194-L333) I guess the quick way to test that theory is to add the dependency in the template above and then build with the {{--skipInstallDependencies}} flag", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-01-30T17:19:28.000+0000", "updated": "2019-01-30T17:19:28.000+0000" } ], "maxResults": 20, "total": 20, "startAt": 0 } } }