{ "id": "114286", "key": "AC-1820", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-01-05T22:28:34.000+0000", "created": "2013-05-13T16:36:02.000+0000", "labels": [ "android", "core" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:40:43.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "When trying to loade remote images into the backgroundImage property of a View, the app crashes hard. See attached log.\r\n\r\nI have attached the js files which causes the crash, and a sample gif. (no remotelink's or other resources though). Please note the remote pictures loaded are only 4-7 kilobytes each, and the app crashes when loading more then 4.\r\n", "attachment": [ { "id": "38401", "filename": "littleBeltContainer.js", "author": { "name": "thomas_dk", "key": "thomas_dk", "displayName": "Thomas Froesig", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-13T16:36:02.000+0000", "size": 12693, "mimeType": "application/x-javascript" }, { "id": "38400", "filename": "log.txt", "author": { "name": "thomas_dk", "key": "thomas_dk", "displayName": "Thomas Froesig", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-13T16:36:02.000+0000", "size": 5969, "mimeType": "text/plain" }, { "id": "38402", "filename": "sample.gif", "author": { "name": "thomas_dk", "key": "thomas_dk", "displayName": "Thomas Froesig", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-13T16:36:02.000+0000", "size": 2052, "mimeType": "image/gif" } ], "flagged": false, "summary": "Android: Possible mem issue when loading remote images", "creator": { "name": "thomas_dk", "key": "thomas_dk", "displayName": "Thomas Froesig", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "thomas_dk", "key": "thomas_dk", "displayName": "Thomas Froesig", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Win 7, Android 2.3.3 both emulator and device, Titanium SDK 3.1.0 GA", "comment": { "comments": [ { "id": "252231", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thomas,\n\nI went through the code provided and I could not see a backgroundImage for a view loaded from a remote location. A remotely located backgroundImage is when an image is specified by a URL. \n\nHere is an example of using a remote image as a backgroundImage for a view:\n\n{code}\nTi.UI.backgroundColor = 'white';\nvar win = Ti.UI.createWindow();\nvar image = Ti.UI.createView({\n backgroundImage:'http://rack.2.mshcdn.com/media/ZgkyMDEyLzEyLzAzL2U0L3NlZWhvd3lvdXJnLjlyMS5qcGcKcAl0aHVtYgk5NTB4NTM0IwplCWpwZw/8fec6ce4/e71/see-how-your-google-results-measure-up-with-google-grader-video--6b8bbb4b41.jpg'\n});\nwin.add(image);\nwin.open();\n{code}\n\nThis is working as expected. Also, the code provided is a bit long to be considered as a test case for an issue, generally test cases are under 100 lines of code but it is encouraged to keep them below 50 lines if possible. This way the issue can be isolated due to removing extra factors. Would you mind reducing your test case as such? For future reference:\nhttps://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report\n\nRegards,\nCarter\n", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-15T23:15:11.000+0000", "updated": "2013-05-15T23:15:11.000+0000" }, { "id": "252532", "author": { "name": "thomas_dk", "key": "thomas_dk", "displayName": "Thomas Froesig", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi there Carter,\nI see your point that the code is too long.\nThe images are required from another .js file - and then updated as background in the views.\n\nI'll try and reproduce in smaller and more compact example.\n\nBest Wishes\n/Thomas", "updateAuthor": { "name": "thomas_dk", "key": "thomas_dk", "displayName": "Thomas Froesig", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-17T06:52:57.000+0000", "updated": "2013-05-17T06:52:57.000+0000" }, { "id": "283155", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hi Thomas,\n\nWe have not heard back from you since your last update in May. Not sure if this is still showing memory issues in your app. If so, please send us a test case so that we can take next necessary step to fix. If we don't hear back, we will assume the issue is no longer valid and close it. ", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-09T04:51:31.000+0000", "updated": "2013-12-09T04:51:31.000+0000" }, { "id": "286243", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nWe tested this issue with the test code below. We can’t reproduce this issue. It’s working as expected.\r\n\r\nh5. Test Environment:\r\n\r\nMAC OS X 10.8.5\r\nTi SDK 3.2.0.GA\r\nTi CLI 3.2.0 \r\nAndroid 2.3.3, 4.2.2\r\n\r\nh5. Test Code\r\n\r\napp.js\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\t\ttitle : ' Remote Image',\r\n\t\tnavBarHidden : false,\r\n\t\tlayout : 'vertical'\r\n \r\n\t});\r\n\t\r\n// Import module\t\r\n \r\nvar photoDisplay = require('test');\r\nvar photoView = new photoDisplay();\r\n \r\n/*\r\n * Create different view\r\n */\r\n \r\nvar view1 = Ti.UI.createView({ \r\n\tbackgroundColor:'pink' ,\r\n\twidth:'auto',\r\n\theight:'auto'\r\n\t\r\n});\r\n \r\n \r\nview1.add(photoView);\r\nwin.add(view1);\r\n win.open();\r\n{code}\r\ntest.js \r\n{code}\r\n\r\nfunction test()\r\n{\r\n\t// create view\r\n\t var viewContainer = Ti.UI.createView({ \r\n\t\tbackgroundColor:'pink' ,\r\n\t\twidth:'auto',\r\n\t\theight:'auto',\r\n\t\tlayout:'vertical'\r\n\t\t\r\n\t});\r\n\t\r\n\t\t// create imageviews\r\n \r\n\tvar imageView1 = Ti.UI.createView({\r\n backgroundImage: 'http://rack.2.mshcdn.com/media/ZgkyMDEyLzEyLzAzL2U0L3NlZWhvd3lvdXJnLjlyMS5qcGcKcAl0aHVtYgk5NTB4NTM0IwplCWpwZw/8fec6ce4/e71/see-how-your-google-results-measure-up-with-google-grader-video--6b8bbb4b41.jpg',\r\n width:'70',\r\n height:'70',\r\n top:75\r\n \r\n \r\n });\r\n var imageView2 = Ti.UI.createView({\r\n backgroundImage: 'https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-prn2/q71/s720x720/1464712_555903507835512_1935095682_n.jpg',\r\n width:'70',\r\n height:'70'\r\n \r\n \r\n });\r\n var imageView3 = Ti.UI.createView({\r\n backgroundImage: 'http://rack.2.mshcdn.com/media/ZgkyMDEyLzEyLzAzL2U0L3NlZWhvd3lvdXJnLjlyMS5qcGcKcAl0aHVtYgk5NTB4NTM0IwplCWpwZw/8fec6ce4/e71/see-how-your-google-results-measure-up-with-google-grader-video--6b8bbb4b41.jpg',\r\n width:'70',\r\n height:'70'\r\n \r\n \r\n });\r\n var imageView4 = Ti.UI.createView({\r\n backgroundImage: 'https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-prn2/q71/s720x720/1464712_555903507835512_1935095682_n.jpg',\r\n width:'70',\r\n height:'70'\r\n \r\n \r\n });\r\n var imageView5 = Ti.UI.createView({\r\n backgroundImage: 'http://rack.2.mshcdn.com/media/ZgkyMDEyLzEyLzAzL2U0L3NlZWhvd3lvdXJnLjlyMS5qcGcKcAl0aHVtYgk5NTB4NTM0IwplCWpwZw/8fec6ce4/e71/see-how-your-google-results-measure-up-with-google-grader-video--6b8bbb4b41.jpg',\r\n width:'70',\r\n height:'70'\r\n \r\n \r\n });\r\n \r\n // Add to parent\r\n \r\n viewContainer.add(imageView1);\r\n viewContainer.add(imageView2);\r\n viewContainer.add(imageView3);\r\n viewContainer.add(imageView4);\r\n viewContainer.add(imageView5);\r\n\treturn viewContainer;\r\n\t\r\n};\r\n module.exports = test;\r\n\r\n{code}\r\n\r\n\r\nThanks ", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-30T11:52:55.000+0000", "updated": "2013-12-31T04:16:18.000+0000" }, { "id": "286333", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing it since we have not heard back from the reporter. A functional code sample has been posted for reference.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-31T04:16:52.000+0000", "updated": "2013-12-31T04:16:52.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }