{ "id": "146516", "key": "TIMOB-18774", "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": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-04-15T03:59:01.000+0000", "created": "2015-04-01T23:28:30.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [ { "id": "47812", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "147992", "key": "TIMOB-18928", "fields": { "summary": "Windows: Reduce number of VS module projects", "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 } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T20:18:37.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": "The _TitaniumWindows_ module contains references to 17 different modules. If another reference is added, bumping the count to 18 (e.g https://github.com/appcelerator/titanium_mobile_windows/pull/191) the build will fail.\r\n\r\nWhat's strange is when a clean build is performed with 17 references. The build will succeed, if another reference is added and a normal build is performed it too will succeed. But if a clean build is performed again, the build will fail.\r\n\r\nI don't think this is a CMake issue, since I can reproduce this using only Visual Studio.", "attachment": [], "flagged": false, "summary": "TitaniumWindows References/Link Library issue", "creator": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "348397", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I was able to reproduce this issue. I believe this is not a compiler/linker issue but there's a kind of bug or limitation around applicatioin packager (appx). What I am seeing is that there's external module (winmd) built and exe is successfully built, but there's an unexpected failure on {{GenerateAppxManifest}} task at {{AppxPackage\\Microsoft.AppXPackage.Targets}}. What this mean I think is that appx packager is not working well with certain conditions (I guess it happens when we referenced over 18 external winmd). I also saw that the \"Create App Packages\" (which you can launch from VS \"Project -> Store\" menu) standalone packager crashes for the project. To workaround this, we might want to add module files against certain target such as {{TitaniumWindows}} instead of adding new module as winmd.\r\n\r\n{code}\r\nError\t22\terror MSB4018: The \"GenerateAppxManifest\" task failed unexpectedly.\r\nSystem.IndexOutOfRangeException: Index was outside the bounds of the array.\r\n at Microsoft.Cci.MetadataReader.PEFileToObjectModel.GetCoreAssemblySymbolicIdentity()\r\n\r\nError 21 error APPX0002: Task 'GenerateAppxManifest' failed. Index was outside the bounds of the array. C:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\v12.0\\AppxPackage\\Microsoft.AppXPackage.Targets 1356 9 NG\r\n{code}\r\n\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-04-03T05:29:51.000+0000", "updated": "2015-04-03T05:44:45.000+0000" }, { "id": "349441", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/214", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-04-14T08:13:00.000+0000", "updated": "2015-04-14T08:13:00.000+0000" }, { "id": "349630", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Fixed by https://github.com/appcelerator/titanium_mobile_windows/pull/218", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-04-15T03:59:01.000+0000", "updated": "2015-04-15T03:59:01.000+0000" }, { "id": "413888", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T20:18:37.000+0000", "updated": "2017-03-20T20:18:37.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }