{ "id": "149561", "key": "TIMOB-19647", "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": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" }, { "id": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-11-19T23:28:39.000+0000", "created": "2015-07-09T02:31:31.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "ImageView", "Images" ], "versions": [ { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" }, { "id": "16778", "description": "Release 5.0.1", "name": "Release 5.0.1", "archived": false, "released": true, "releaseDate": "2015-09-25" }, { "id": "16904", "description": "Release 5.0.2", "name": "Release 5.0.2", "archived": true, "released": true, "releaseDate": "2015-10-01" }, { "id": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "issuelinks": [ { "id": "49422", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "148154", "key": "TIMOB-19036", "fields": { "summary": "iOS: Remote ImageViews not loading while scrolling ListView ", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "49153", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "151618", "key": "AC-438", "fields": { "summary": "IOS: ListView images fail to load using xcode 7", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "49389", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "152168", "key": "AC-474", "fields": { "summary": "App crashes unexpectedly when using ImageViews with remote URLs", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-01-20T21:38:41.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "This issue has been happening since version 4.0. I have a ListView with infinite scrolling that display a thumbnail loaded remotely for each thumbnail. The loading of the images is really slow, and sometimes they fail without error and will not load.\r\n\r\nThis doesn't happen on SDK 3.5.1, which has all images loading correctly and at the expected speed based on my network speed an image size.\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: ImageViews with remote images slow and failing", "creator": { "name": "ulizama", "key": "ulizama", "displayName": "Uriel Lizama", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "ulizama", "key": "ulizama", "displayName": "Uriel Lizama", "active": true, "timeZone": "America/Mexico_City" }, "environment": "Titanium SDK version 5.0.0.GA, it happens on ANY SDK after 3.5.1.GA\r\niOS", "closedSprints": [ { "id": 525, "state": "closed", "name": "2015 Sprint 23 SDK", "startDate": "2015-11-07T01:30:15.519Z", "endDate": "2015-11-21T01:30:00.000Z", "completeDate": "2015-11-23T02:54:27.887Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "364506", "author": { "name": "ulizama", "key": "ulizama", "displayName": "Uriel Lizama", "active": true, "timeZone": "America/Mexico_City" }, "body": "I can confirm that issue is still present on 5.0.0.GA", "updateAuthor": { "name": "ulizama", "key": "ulizama", "displayName": "Uriel Lizama", "active": true, "timeZone": "America/Mexico_City" }, "created": "2015-09-21T18:09:15.000+0000", "updated": "2015-09-21T18:09:15.000+0000" }, { "id": "364511", "author": { "name": "albemuth", "key": "albemuth", "displayName": "Alfredo Mesén", "active": true, "timeZone": "America/Los_Angeles" }, "body": "+1, noticed this when updating from 3.5.1", "updateAuthor": { "name": "albemuth", "key": "albemuth", "displayName": "Alfredo Mesén", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-09-21T19:41:06.000+0000", "updated": "2015-09-21T19:41:06.000+0000" }, { "id": "364512", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can someone add timing information that shows the difference in speed?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-09-21T19:50:35.000+0000", "updated": "2015-09-21T19:50:35.000+0000" }, { "id": "364513", "author": { "name": "ulizama", "key": "ulizama", "displayName": "Uriel Lizama", "active": true, "timeZone": "America/Mexico_City" }, "body": "The issue is very very noticeable. I created a couple of comparison videos, one with an app running SDK 3.5.1.GA and the other one using the latest 5.0.0.GA.\r\n\r\nThe difference is obvious, and on the latest SDKs image loading has become unusable almost. I tried to stay on 3.5.1 as long as possible just because of this, but now I don't have another choice, so I'm hoping we can fix this.\r\n\r\n*SDK 3.5.1 Image Loading*\r\nhttps://drive.google.com/file/d/0B8nGzMS1NSFwZi1aaldiWnladjA/view?usp=sharing\r\n\r\n*SDK 5.0.0 Image Loading*\r\nhttps://drive.google.com/file/d/0B8nGzMS1NSFwT2VhUFhtbm1SVFE/view?usp=sharing\r\n", "updateAuthor": { "name": "ulizama", "key": "ulizama", "displayName": "Uriel Lizama", "active": true, "timeZone": "America/Mexico_City" }, "created": "2015-09-21T20:10:57.000+0000", "updated": "2015-09-21T20:10:57.000+0000" }, { "id": "364849", "author": { "name": "jvandijk", "key": "jvandijk", "displayName": "Jeroen van Dijk", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "+1, did not notice it directly. But now I've been experimenting myself as well with 3.5.1 versus 4.0.0 and up and see the difference.", "updateAuthor": { "name": "jvandijk", "key": "jvandijk", "displayName": "Jeroen van Dijk", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-09-24T06:13:06.000+0000", "updated": "2015-09-24T06:13:06.000+0000" }, { "id": "365042", "author": { "name": "ulizama", "key": "ulizama", "displayName": "Uriel Lizama", "active": true, "timeZone": "America/Mexico_City" }, "body": "I think this issue has to be set as top priority.\r\n\r\nThe fact that apps can't reliably fetch remote images is a big issue. This gives a negative impact on any app built with any SDK newer than 3.5.1 and it translates into a poor user experience.", "updateAuthor": { "name": "ulizama", "key": "ulizama", "displayName": "Uriel Lizama", "active": true, "timeZone": "America/Mexico_City" }, "created": "2015-09-26T16:05:49.000+0000", "updated": "2015-09-26T16:05:49.000+0000" }, { "id": "365396", "author": { "name": "martz256", "key": "martz256", "displayName": "Martyn Joyce", "active": true, "timeZone": "Europe/London" }, "body": "I have created a new issue with ListViews and XCode 7 which may relate to this, it would be good to know if my use case applies here.\r\n\r\nPlease see: AC-438\r\n\r\n", "updateAuthor": { "name": "martz256", "key": "martz256", "displayName": "Martyn Joyce", "active": true, "timeZone": "Europe/London" }, "created": "2015-09-30T11:16:43.000+0000", "updated": "2015-09-30T11:16:43.000+0000" }, { "id": "365407", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tentatively slating for next major release.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-09-30T14:02:30.000+0000", "updated": "2015-09-30T14:02:30.000+0000" }, { "id": "365409", "author": { "name": "ulizama", "key": "ulizama", "displayName": "Uriel Lizama", "active": true, "timeZone": "America/Mexico_City" }, "body": "Glad to see this being moved forward.\r\n\r\nI do believe case AC-438 relates to this, as I've seen this change of behaviour as well.", "updateAuthor": { "name": "ulizama", "key": "ulizama", "displayName": "Uriel Lizama", "active": true, "timeZone": "America/Mexico_City" }, "created": "2015-09-30T14:05:45.000+0000", "updated": "2015-09-30T14:05:45.000+0000" }, { "id": "365444", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~ulizama] Can you please provide a simplified demo code to reproduce your issue? We did some internal tests and could not reproduce the issue, yet. Also make sure you have disabled the iOS9 \"App Transport Security\" as documented here: http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Network\r\n\r\nThank you!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-09-30T18:19:13.000+0000", "updated": "2015-09-30T18:19:13.000+0000" }, { "id": "366261", "author": { "name": "ulizama", "key": "ulizama", "displayName": "Uriel Lizama", "active": true, "timeZone": "America/Mexico_City" }, "body": "I will check on the Transport Security thing and see if it changes anything, and I'll post a test code, though it will a simple ListView loading rows with image thumbnails on them.", "updateAuthor": { "name": "ulizama", "key": "ulizama", "displayName": "Uriel Lizama", "active": true, "timeZone": "America/Mexico_City" }, "created": "2015-10-08T17:51:37.000+0000", "updated": "2015-10-08T17:51:37.000+0000" }, { "id": "366675", "author": { "name": "juanblo", "key": "juanblo", "displayName": "Juan Pablo Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please guys fix this error, on iOS the image loading experience is very bad using the 4.x or 5.x versions of Titanium SDK. ", "updateAuthor": { "name": "juanblo", "key": "juanblo", "displayName": "Juan Pablo Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-13T17:42:48.000+0000", "updated": "2015-10-13T17:42:48.000+0000" }, { "id": "366677", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~juanblo] Can you provide a simplified demo as [~hansknoechel] requested?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-13T17:53:25.000+0000", "updated": "2015-10-13T17:53:25.000+0000" }, { "id": "366733", "author": { "name": "ulizama", "key": "ulizama", "displayName": "Uriel Lizama", "active": true, "timeZone": "America/Mexico_City" }, "body": "I created a simple test app. Is just a listview with inifnite scroll that fetches results from an API:\r\n\r\nhttps://drive.google.com/file/d/0B-oU9c3d4Cn5bEZMTjRiaHlPNDg/view?usp=sharing\r\n\r\nI have been doing more tests, and the issue is more noticeable on the device itself. To test, run the app and paginate quickly so you have 20-30 images loading at a time.", "updateAuthor": { "name": "ulizama", "key": "ulizama", "displayName": "Uriel Lizama", "active": true, "timeZone": "America/Mexico_City" }, "created": "2015-10-13T23:53:50.000+0000", "updated": "2015-10-13T23:53:50.000+0000" }, { "id": "366737", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "We worked in the issue the last days and fixed it just today. We will continue testing and provide a solution asap. ", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-10-14T00:15:02.000+0000", "updated": "2015-10-14T00:15:02.000+0000" }, { "id": "366815", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We Updated the SDK, which should fix the delay when loading the images. I've added a dropbox link with the SDK, could you please test it and see if the problem still persists? Thank you!\r\nhttps://www.dropbox.com/s/51y3lca28wropza/mobilesdk-5.2.0-osx.zip?dl=0\r\n\r\nP.S.: We can include this change into the upcoming 5.1.0 release, if we get a response this week.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-10-14T20:09:38.000+0000", "updated": "2015-10-14T20:13:03.000+0000" }, { "id": "366828", "author": { "name": "ulizama", "key": "ulizama", "displayName": "Uriel Lizama", "active": true, "timeZone": "America/Mexico_City" }, "body": "Downloaded the SDK.\r\n\r\nImage loading is faster, but I'm encountering app crashes:\r\n\r\n\r\n{code}\r\n[DEBUG] tcp_connection_destination_perform_socket_connect 102 connectx to 2400:cb00:2048:1::681f:5b71.443@0 failed: [65] No route to host\r\n[DEBUG] tcp_connection_destination_perform_socket_connect 102 connectx to 2400:cb00:2048:1::681f:5a71.443@0 failed: [65] No route to host\r\n[DEBUG] -[__NSCFString objectForKey:]: unrecognized selector sent to instance 0x125fc6700\r\n[ERROR] The application has crashed with an uncaught exception 'NSInvalidArgumentException'.\r\n[ERROR] Reason:\r\n[ERROR] -[__NSCFString objectForKey:]: unrecognized selector sent to instance 0x125fc6700\r\n[ERROR] Stack trace:\r\n[ERROR] \r\n[ERROR] 0 CoreFoundation 0x000000018524cf5c + 124\r\n[ERROR] 1 libobjc.A.dylib 0x0000000199e43f80 objc_exception_throw + 56\r\n[ERROR] 2 CoreFoundation 0x0000000185253c6c + 0\r\n[ERROR] 3 CoreFoundation 0x0000000185250c14 + 872\r\n[ERROR] 4 CoreFoundation 0x0000000185154dcc _CF_forwarding_prep_0 + 92\r\n[ERROR] 5 CFNetwork 0x000000018495f1f0 + 96\r\n[ERROR] 6 CFNetwork 0x000000018495d38c + 128\r\n[ERROR] 7 CFNetwork 0x0000000184a09f00 + 2000\r\n[ERROR] 8 CFNetwork 0x0000000184a09660 + 144\r\n[ERROR] 9 CFNetwork 0x0000000184a095bc + 360\r\n[ERROR] 10 CFNetwork 0x0000000184a06d4c + 280\r\n[ERROR] 11 CFNetwork 0x0000000184a47da8 + 72\r\n[ERROR] 12 CFNetwork 0x000000018493bca0 + 32\r\n[ERROR] 13 libdispatch.dylib 0x000000019a63d770 + 16\r\n[ERROR] 14 libdispatch.dylib 0x000000019a646a54 + 540\r\n[ERROR] 15 CFNetwork 0x000000018493bc70 + 36\r\n[ERROR] 16 CoreFoundation 0x00000001851307ec CFArrayApplyFunction + 68\r\n[ERROR] 17 CFNetwork 0x000000018493bb54 + 136\r\n[ERROR] 18 CFNetwork 0x000000018493ba14 + 312\r\n[ERROR] 19 CFNetwork 0x000000018493b840 + 68\r\n[ERROR] 20 CoreFoundation 0x00000001852045a4 + 24\r\n[ERROR] 21 CoreFoundation 0x0000000185204038 + 540\r\n[ERROR] 22 CoreFoundation 0x0000000185201d38 + 724\r\n[ERROR] 23 CoreFoundation 0x0000000185130dc0 CFRunLoopRunSpecific + 384\r\n[ERROR] 24 CFNetwork 0x00000001849ce074 + 412\r\n[ERROR] 25 Foundation 0x000000018618b138 + 1000\r\n[ERROR] 26 libsystem_pthread.dylib 0x000000019a853b3c + 156\r\n[ERROR] 27 libsystem_pthread.dylib 0x000000019a853aa0 + 0\r\n[ERROR] 28 libsystem_pthread.dylib 0x000000019a851030 thread_start + 4\r\n[ERROR] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString objectForKey:]: unrecognized selector sent to instance 0x125fc6700'\r\n[ERROR] *** First throw call stack:\r\n[ERROR] (0x18524cf5c 0x199e43f80 0x185253c6c 0x185250c14 0x185154dcc 0x18495f1f0 0x18495d38c 0x184a09f00 0x184a09660 0x184a095bc 0x184a06d4c 0x184a47da8 0x18493bca0 0x19a63d770 0x19a646a54 0x18493bc70 0x1851307ec 0x18493bb54 0x18493ba14 0x18493b840 0x1852045a4 0x185204038 0x185201d38 0x185130dc0 0x1849ce074 0x18618b138 0x19a853b3c 0x19a853aa0 0x19a851030)\r\n{code}\r\n", "updateAuthor": { "name": "ulizama", "key": "ulizama", "displayName": "Uriel Lizama", "active": true, "timeZone": "America/Mexico_City" }, "created": "2015-10-14T21:22:24.000+0000", "updated": "2015-10-14T21:22:45.000+0000" }, { "id": "366832", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi, sorry to see you're getting errors. Do these error's consist with the current master version of our SDK if you was to build the same project or is it only on 5.2.0 SDK that i sent. ", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-14T21:45:36.000+0000", "updated": "2015-10-14T21:45:36.000+0000" }, { "id": "366833", "author": { "name": "ulizama", "key": "ulizama", "displayName": "Uriel Lizama", "active": true, "timeZone": "America/Mexico_City" }, "body": "So, I had been testing my app with 5.0.1.GA and haven't seen that error so far.\r\n\r\nThe error did come up rather quickly in the version you sent: 5.2", "updateAuthor": { "name": "ulizama", "key": "ulizama", "displayName": "Uriel Lizama", "active": true, "timeZone": "America/Mexico_City" }, "created": "2015-10-14T21:48:06.000+0000", "updated": "2015-10-14T21:48:06.000+0000" }, { "id": "366834", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hmm that's weird , could you send us the app your testing. So we can run it on 5.2 as well , to see if i encounter the same errors and if so ill try my best to fix them. Could you also test your app with the newest build (http://builds.appcelerator.com.s3.amazonaws.com/index.html#5_1_X) to see if the app crashes? It does not include the changes for now, but so we could see if the crash is related to the fix or a different issue. Also, please and send us the trace logs. ", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-10-14T21:51:02.000+0000", "updated": "2015-10-15T15:42:38.000+0000" }, { "id": "366844", "author": { "name": "juanblo", "key": "juanblo", "displayName": "Juan Pablo Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I've downloaded the SDK (5.2) and for me the fix works fine. My environment:\r\n\r\n* Mac OSX 10.10.4\r\n* Appcelerator Command-Line Interface, version 5.0.3\r\n* Alloy 1.7.16\r\n* Xcode 7.0.1 (build 7A1001)\r\n* Node.js Version 0.10.29\r\n* npm Version 1.4.18\r\n* Titanium CLI Version 5.0.5\r\n* node-appc Version 0.2.31", "updateAuthor": { "name": "juanblo", "key": "juanblo", "displayName": "Juan Pablo Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-14T23:04:08.000+0000", "updated": "2015-10-14T23:04:08.000+0000" }, { "id": "366917", "author": { "name": "martz256", "key": "martz256", "displayName": "Martyn Joyce", "active": true, "timeZone": "Europe/London" }, "body": "Thanks for your work on this guys, I can confirm that it has also fixed my issue at AC-438.\r\n\r\nI am getting a lot of indiscriminate app crashes, with no obvious error, but these also occur with the latest 5.1.x nightly build, so i assume they are unrelated.\r\n\r\n", "updateAuthor": { "name": "martz256", "key": "martz256", "displayName": "Martyn Joyce", "active": true, "timeZone": "Europe/London" }, "created": "2015-10-15T10:04:01.000+0000", "updated": "2015-10-15T10:04:01.000+0000" }, { "id": "366940", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~juanblo] Thanks for verifying!\r\n[~ulizama] [~martz256] Can you provide a trace log to reproduce the crash? We want to make sure, that the fix does not affect the stability of other components.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-10-15T15:37:24.000+0000", "updated": "2015-10-15T15:37:24.000+0000" }, { "id": "366945", "author": { "name": "juanblo", "key": "juanblo", "displayName": "Juan Pablo Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Is possible include this fix in the next release of SDK ?", "updateAuthor": { "name": "juanblo", "key": "juanblo", "displayName": "Juan Pablo Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-15T16:44:11.000+0000", "updated": "2015-10-15T16:44:11.000+0000" }, { "id": "366999", "author": { "name": "martz256", "key": "martz256", "displayName": "Martyn Joyce", "active": true, "timeZone": "Europe/London" }, "body": "I don't get any crashes / errors when using the demo app that i created to test this issue, all works fine.\r\n\r\nMy main app crashes on device only using both the nightly of 5.1.x and 5.2.0 that you sent over. I have a lot going on in that app and so cannot currently pin down where the issue is. I do not get any trace errors, the app just quits. I have a crash log from my phone at the following link, although im not sure how much help it will be.\r\n\r\nhttps://dl.dropboxusercontent.com/u/24724357/Scredible%20%2016-10-2015%2014-49.crash\r\n\r\nThanks, Martyn", "updateAuthor": { "name": "martz256", "key": "martz256", "displayName": "Martyn Joyce", "active": true, "timeZone": "Europe/London" }, "created": "2015-10-16T14:31:34.000+0000", "updated": "2015-10-16T14:31:34.000+0000" }, { "id": "367000", "author": { "name": "ulizama", "key": "ulizama", "displayName": "Uriel Lizama", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hey guys,\r\n\r\nI downloaded mobilesdk-5.1.0.v20151014101225 and tested the app with that SDK. And the crash doesn't occur.\r\n\r\nI then cleaned and built with the 5.2 and the crash happened again. There is no TRACE data, just this:\r\n\r\n{code}\r\n[DEBUG] -[NSTaggedPointerString __setObject:forKey:]: unrecognized selector sent to instance 0xa000000013f4b4f4\r\n[ERROR] The application has crashed with an uncaught exception 'NSInvalidArgumentException'\r\n[ERROR] Reason:\r\n[ERROR] -[NSTaggedPointerString __setObject:forKey:]: unrecognized selector sent to instance 0xa000000013f4b4f4\r\n[ERROR] Stack trace:\r\n[ERROR] \r\n[ERROR] 0 CoreFoundation 0x000000018524cf5c + 124\r\n[ERROR] 1 libobjc.A.dylib 0x0000000199e43f80 objc_exception_throw + 56\r\n[ERROR] 2 CoreFoundation 0x0000000185253c6c + 0\r\n[ERROR] 3 CoreFoundation 0x0000000185250c14 + 872\r\n[ERROR] 4 CoreFoundation 0x0000000185154dcc _CF_forwarding_prep_0 + 92\r\n[ERROR] 5 CFNetwork 0x000000018495f254 + 196\r\n[ERROR] 6 CFNetwork 0x000000018495d38c + 128\r\n[ERROR] 7 CFNetwork 0x0000000184a09f00 + 2000\r\n[ERROR] 8 CFNetwork 0x0000000184a09660 + 144\r\n[ERROR] 9 CFNetwork 0x0000000184a0b30c + 28\r\n[ERROR] 10 libdispatch.dylib 0x000000019a63d770 + 16\r\n[ERROR] 11 libdispatch.dylib 0x000000019a646a54 + 540\r\n[ERROR] 12 CFNetwork 0x000000018493bc70 + 36\r\n[ERROR] 13 CoreFoundation 0x00000001851307ec CFArrayApplyFunction + 68\r\n[ERROR] 14 CFNetwork 0x000000018493bb54 + 136\r\n[ERROR] 15 CFNetwork 0x000000018493ba14 + 312\r\n[ERROR] 16 CFNetwork 0x000000018493b840 + 68\r\n[ERROR] 17 CoreFoundation 0x00000001852045a4 + 24\r\n[ERROR] 18 CoreFoundation 0x0000000185204038 + 540\r\n[ERROR] 19 CoreFoundation 0x0000000185201d38 + 724\r\n[ERROR] 20 CoreFoundation 0x0000000185130dc0 CFRunLoopRunSpecific + 384\r\n[ERROR] 21 CFNetwork 0x00000001849ce074 + 412\r\n[ERROR] 22 Foundation 0x000000018618b138 + 1000\r\n[ERROR] 23 libsystem_pthread.dylib 0x000000019a853b3c + 156\r\n[ERROR] 24 libsystem_pthread.dylib 0x000000019a853aa0 + 0\r\n[ERROR] 25 libsystem_pthread.dylib 0x000000019a851030 thread_start + 4\r\n[ERROR] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSTaggedPointerString __setObject:forKey:]: unrecognized selector sent to instance 0xa000000013f4b4f4'\r\n[ERROR] *** First throw call stack:\r\n[ERROR] (0x18524cf5c 0x199e43f80 0x185253c6c 0x185250c14 0x185154dcc 0x18495f254 0x18495d38c 0x184a09f00 0x184a09660 0x184a0b30c 0x19a63d770 0x19a646a54 0x18493bc70 0x1851307ec 0x18493bb54 0x18493ba14 0x18493b840 0x1852045a4 0x185204038 0x185201d38 0x185130dc0 0x1849ce074 0x18618b138 0x19a853b3c 0x19a853aa0 0x19a851030)\r\n{code}\r\n\r\nSome things I noticed:\r\n\r\n1. The crash happens randomly, but it seems to happen whenever I start a new http request to load more items on the infinite scroll.\r\n\r\n2. The http request to load more items, seems to be blocked until all the previous images have been loaded, I don't know if this is the intended behaviour, but I would assume that http requests should take precedence on loading the images.\r\n\r\nThanks for your all help.\r\n\r\n", "updateAuthor": { "name": "ulizama", "key": "ulizama", "displayName": "Uriel Lizama", "active": true, "timeZone": "America/Mexico_City" }, "created": "2015-10-16T14:54:23.000+0000", "updated": "2015-10-16T14:55:47.000+0000" }, { "id": "367081", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi everyone!\r\n\r\nWe discussed the solution internally. First of all, the crashes above don't look like being related to the list view change, so please file tickets, if you can define a component, that causes the crash.\r\n\r\nRegarding the list view remote images, we will not change the default behavior, but introduce a new property {{lazyLoadingEnabled}} which is {{true}} by default. That means, that images are loaded as soon as they come into the visible area like it is now. If you want to load images even if they are not in the visible area (which reflects the fix we provided above), you can then set {{lazyLoadingEnabled}} to {{false}}. \r\n\r\nIs everyone good with this solution? We would then get it into the upcoming 5.1 SDK release. Feedback appreciated!\r\n\r\nP.S.: The property will be available for {{Ti.UI.ListView}} on iOS.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-10-17T20:02:40.000+0000", "updated": "2015-10-29T22:57:37.000+0000" }, { "id": "367082", "author": { "name": "juanblo", "key": "juanblo", "displayName": "Juan Pablo Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thank you very so much Hans for this fix. From my point of view this solution is right. To testing what version (or branch) of SDK can we use ? ", "updateAuthor": { "name": "juanblo", "key": "juanblo", "displayName": "Juan Pablo Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-17T20:48:59.000+0000", "updated": "2015-10-17T20:48:59.000+0000" }, { "id": "367084", "author": { "name": "ulizama", "key": "ulizama", "displayName": "Uriel Lizama", "active": true, "timeZone": "America/Mexico_City" }, "body": "Thanks!\r\n\r\nI really like that solution ;)\r\n\r\n", "updateAuthor": { "name": "ulizama", "key": "ulizama", "displayName": "Uriel Lizama", "active": true, "timeZone": "America/Mexico_City" }, "created": "2015-10-17T21:27:12.000+0000", "updated": "2015-10-17T21:27:12.000+0000" }, { "id": "367126", "author": { "name": "martz256", "key": "martz256", "displayName": "Martyn Joyce", "active": true, "timeZone": "Europe/London" }, "body": "Thanks, thats a great solution! Getting it into 5.1 is also a massive thumbs up!", "updateAuthor": { "name": "martz256", "key": "martz256", "displayName": "Martyn Joyce", "active": true, "timeZone": "Europe/London" }, "created": "2015-10-19T08:18:41.000+0000", "updated": "2015-10-19T08:18:41.000+0000" }, { "id": "367144", "author": { "name": "balanza", "key": "balanza", "displayName": "emanuele de cupis", "active": true, "timeZone": "Europe/Berlin" }, "body": "I experienced this wrong behaviour as well, here's my thoughts.\n\nI have a `TableView`, in each `TableViewRow` I have a `ImageView` that loads an image from a url. The app crashes with *nothing in logs*. Here what I discovered after some investigation:\n * The issue happens with SDK 4.x.GA and 5.0.x.GA. On 5.2.0 still happens, but less frequently.\n * As far as I understood, the issue is somewhat related to the delay for downloading the image. Thus is more frequent when using a 3g connection instead of WiFi, or when the image is slightly bigger. \n\nAnyway, the sample app provided from Uriel Lizama works fine for me with all the previous sdk. \n\nI hope this few thoughts can help\n", "updateAuthor": { "name": "balanza", "key": "balanza", "displayName": "emanuele de cupis", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-10-19T15:16:39.000+0000", "updated": "2015-10-19T15:16:39.000+0000" }, { "id": "367293", "author": { "name": "balanza", "key": "balanza", "displayName": "emanuele de cupis", "active": true, "timeZone": "Europe/Berlin" }, "body": "After some further investigation, I came out with a crash log from my device. Here an excerpt:\n{panel}\nOS Version: iOS 8.1.3 (12B466)\nReport Version: 105\n\nException Type: EXC_BAD_ACCESS (SIGSEGV)\nException Subtype: KERN_INVALID_ADDRESS at 0x0000000c\nTriggered by Thread: 0\n\nThread 0 name: Dispatch queue: com.apple.main-thread\nThread 0 Crashed:\n0 libobjc.A.dylib \t0x3209ef46 objc_msgSend + 6\n1 XXXYYYZZZ \t0x0020a158 +[TiLayoutQueue layoutProxy:] (TiLayoutQueue.m:78)\n2 XXXYYYZZZ \t0x00209fb8 performLayoutRefresh (TiLayoutQueue.m:46)\n3 CoreFoundation \t0x2485ec84 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 12\n4 CoreFoundation \t0x2485e7fe __CFRunLoopDoTimer + 646\n5 CoreFoundation \t0x2485ca4e __CFRunLoopRun + 1414\n6 CoreFoundation \t0x247aa3bc CFRunLoopRunSpecific + 472\n7 CoreFoundation \t0x247aa1ce CFRunLoopRunInMode + 102\n8 GraphicsServices \t0x2bba80a4 GSEventRunModal + 132\n9 UIKit \t0x27db87ac UIApplicationMain + 1436\n10 XXXYYYZZZ \t0x0008603e main (main.m:37)\n11 libdyld.dylib \t0x32612aac start + 0\n\nThread 0 crashed with ARM Thread State (32-bit):\n r0: 0x1541ac00 r1: 0x00534c87 r2: 0x1541ac00 r3: 0x3209ef41\n r4: 0x00000020 r5: 0x007d5bf4 r6: 0x007d5c80 r7: 0x007d5b98\n r8: 0x34d94074 r9: 0x00000000 r10: 0x14e845a0 r11: 0x14d47a50\n ip: 0x0020a131 sp: 0x007d5b84 lr: 0x0020a15b pc: 0x3209ef46\n cpsr: 0x600f0030\n\n{panel}\n(XXXYYYZZZ is my app)\n\n", "updateAuthor": { "name": "balanza", "key": "balanza", "displayName": "emanuele de cupis", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-10-20T14:13:23.000+0000", "updated": "2015-10-20T14:13:23.000+0000" }, { "id": "367467", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/7320\r\nPR (5_1_X): https://github.com/appcelerator/titanium_mobile/pull/7329", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-10-21T22:52:01.000+0000", "updated": "2015-10-21T22:52:01.000+0000" }, { "id": "367484", "author": { "name": "nunocostapt", "key": "nunocostapt", "displayName": "Nuno Costa", "active": true, "timeZone": "Europe/Lisbon" }, "body": "wow what I improvement, just tested. Thanks.", "updateAuthor": { "name": "nunocostapt", "key": "nunocostapt", "displayName": "Nuno Costa", "active": true, "timeZone": "Europe/Lisbon" }, "created": "2015-10-22T01:16:00.000+0000", "updated": "2015-10-22T01:16:00.000+0000" }, { "id": "367635", "author": { "name": "martz256", "key": "martz256", "displayName": "Martyn Joyce", "active": true, "timeZone": "Europe/London" }, "body": "FYI I found the cause of my crashes to be TIMOB-19682 javascript executing on the main thread, this was fixed following the notes here: https://github.com/appcelerator/titanium_mobile/pull/6891 I hope this will help others who are having issues.\r\n\r\nThis ListView update is working perfectly, thanks", "updateAuthor": { "name": "martz256", "key": "martz256", "displayName": "Martyn Joyce", "active": true, "timeZone": "Europe/London" }, "created": "2015-10-23T12:55:29.000+0000", "updated": "2015-10-23T12:55:29.000+0000" }, { "id": "367640", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-10-23T16:44:22.000+0000", "updated": "2015-10-23T16:44:22.000+0000" }, { "id": "368363", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed, using:\r\n\r\nMacOS 10.11.2 (15C27e)\r\nStudio 4.4.0.201510280736\r\nTi SDK 5.1.0.v20151028190028\r\nAppc NPM 4.2.1\r\nAppc CLI 5.1.0-38\r\nTi CLI 5.0.5\r\nAlloy 1.7.16\r\nArrow 1.3.13\r\nXcode 7.2 (7C46l)\r\nNode v0.12.7\r\nJava 1.7.0_80\r\nproduction\r\n\r\nUsed the sample code to test load times/errors on remote images, with lazyLoadingEnabled set to true and false. Loading was very responsive and the new property works as intended.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-10-29T23:01:25.000+0000", "updated": "2015-10-29T23:01:25.000+0000" } ], "maxResults": 45, "total": 45, "startAt": 0 } } }