{ "id": "155715", "key": "TIMOB-20581", "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": "17707", "name": "Release 5.3.0", "archived": false, "released": true, "releaseDate": "2016-06-04" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-03-28T13:25:33.000+0000", "created": "2016-03-14T11:08:39.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "windows", "windows8.1", "windowsphone" ], "versions": [ { "id": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-04-12T05:10:58.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": "Ti.App.Properties.setString crashes when I try to store a large string with more than 2048 characters on Windows Phone. The same thing works fine on iOS and Android where I am able to store and retrieve strings with more than 4096 characters.\r\n\r\nSteps to Reproduce :\r\n1. Create a mobile app project\r\n2. Add the code from below text file into app.js\r\nhttp://ctrlv.it/txt/4925/1177307313\r\n3. Run the app\r\n\r\nExpected Result\r\nPrints the strings onto the console\r\n(Tested on iOS and Android)\r\n\r\nActual Result\r\nError in console :\r\n{noformat}\r\n[ERROR] : Application Error: {\r\n[ERROR] : \"line\": 2,\r\n[ERROR] : \"column\": 10,\r\n[ERROR] : \"message\": \"Error while require(/app) unknown exception\",\r\n[ERROR] : \"native_stack\": [\r\n[ERROR] : \"JSExportClass::CallNamedFunction\"\r\n[ERROR] : ]\r\n[ERROR] : }\r\n{noformat}\r\nCheck attachment for Screenshot of App screen.", "attachment": [ { "id": "58624", "filename": "Capture.PNG", "author": { "name": "ibinaydas", "key": "ibinaydas", "displayName": "Binay Das", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-14T11:05:56.000+0000", "size": 37162, "mimeType": "image/png" } ], "flagged": false, "summary": "Windows: Ti App Properties Crashes while storing large data", "creator": { "name": "ibinaydas", "key": "ibinaydas", "displayName": "Binay Das", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ibinaydas", "key": "ibinaydas", "displayName": "Binay Das", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Intel i7-2760QM 2.4Ghz (64Bit)\r\nWindows 8.1 Pro\r\n8GB RAM\r\nVisual Studio Enterprise 2015\r\nAppcelerator Studio 4.5 (SDK 5.2.0)\r\nEmulator : Windows 8.1 720P 4.7 inch", "closedSprints": [ { "id": 614, "state": "closed", "name": "2016 Sprint 07 SDK", "startDate": "2016-03-26T00:38:56.432Z", "endDate": "2016-04-09T00:38:00.000Z", "completeDate": "2016-04-11T04:41:08.231Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "380243", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "According to https://msdn.microsoft.com/en-us/library/windows/apps/windows.storage.applicationdata.localsettings :\r\n{code}\r\nThe name of each setting can be 255 characters in length at most. Each setting can be up to 8K bytes in size and each composite setting can be up to 64K bytes in size.\r\n{code}\r\n\r\nGiven that Platform::String is char16, that means we should be able to get up to 4096 characters as a value. What I can't confirm, however, is if the limits mentioned are the same on 8.1 as they are on Win 10 (which is what these docs are referring to). Unfortunately MS has basically combined the WInRT API docs for 8.1/10, so I can't know for sure if the limits used to be lower.\r\n\r\nAnyways, we should likely be smart enough to catch the exception and spit out a better error for exceeding the size limits here. Also, we should see if maybe our string conversion is somehow inflating the string size causing it to take up more space.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2016-03-21T13:46:21.000+0000", "updated": "2016-03-21T13:46:21.000+0000" }, { "id": "380780", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/596", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-03-28T09:58:21.000+0000", "updated": "2016-03-28T09:58:21.000+0000" }, { "id": "380902", "author": { "name": "ibinaydas", "key": "ibinaydas", "displayName": "Binay Das", "active": true, "timeZone": "America/Los_Angeles" }, "body": "In Android and iOS, I was able to store about 200K characters in a single string property without any issue. Hope it'll work the same way on Windows after the fix.\r\n~Thanks", "updateAuthor": { "name": "ibinaydas", "key": "ibinaydas", "displayName": "Binay Das", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-29T08:53:44.000+0000", "updated": "2016-03-29T08:53:44.000+0000" }, { "id": "382417", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified using:\r\n\r\nWindows 10 Pro\r\nVisual Studio 2015 Community Update 2\r\nAppc Core: 5.3.0-12\r\nAppc NPM: 4.2.5-1\r\nTi SDK: 5.3.0.v20160411153728\r\nWindows Phone Emulator 8.1, 10\r\nLumia 930 10\r\nLumai 520 8.1\r\n\r\nUsing the code provided the app no longer crashes\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2016-04-12T05:10:53.000+0000", "updated": "2016-04-12T05:10:53.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }