{ "id": "170368", "key": "AC-5385", "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": "2017-11-20T16:27:46.000+0000", "created": "2017-11-17T18:37:33.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-11-20T16:27:47.000+0000", "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" } }, "components": [], "description": "h3. Steps to Reproduce\nThis happens arbitrarily. Not every time. But it is always attached to an orientation change of the camera.\n\nh3. Actual Result\n[ERROR] : The application has crashed with an uncaught exception 'NSInvalidArgumentException'.\n[ERROR] : Reason:\n[ERROR] : -[TiUILabel _containedInNavigationPalette]: unrecognized selector sent to instance 0x141e88ca0\n[ERROR] : Stack trace:\n[ERROR] : 0 CoreFoundation 0x0000000191dc2fe0 + 124\n[ERROR] : 1 libobjc.A.dylib 0x0000000190824538 objc_exception_throw + 56\n[ERROR] : 2 CoreFoundation 0x0000000191dc9ef4 + 0\n[ERROR] : 3 CoreFoundation 0x0000000191dc6f54 + 916\n[ERROR] : 4 CoreFoundation 0x0000000191cc2d4c _CF_forwarding_prep_0 + 92\n[ERROR] : 5 UIKit 0x00000001989a69cc + 76\n[ERROR] : 6 UIKit 0x00000001989a2d5c + 392\n[ERROR] : 7 Foundation 0x00000001927b553c + 308\n[ERROR] : 8 CoreFoundation 0x0000000191d5d5f4 + 20\n[ERROR] : 9 CoreFoundation 0x0000000191d5cd08 + 400\n[ERROR] : 10 CoreFoundation 0x0000000191d5ca84 + 60\n[ERROR] : 11 CoreFoundation 0x0000000191dcb7a8 + 1412\n[ERROR] : 12 CoreFoundation 0x0000000191ca095c _CFXNotificationPost + 376\n[ERROR] : 13 Foundation 0x00000001927b2930 + 68\n[ERROR] : 14 UIKit 0x00000001985b7f04 + 324\n[ERROR] : 15 UIKit 0x0000000197f223dc + 644\n[ERROR] : 16 UIKit 0x0000000197f38ad4 + 108\n[ERROR] : 17 UIKit 0x00000001985b7d08 + 480\n[ERROR] : 18 UIKit 0x00000001981bf2d0 + 616\n[ERROR] : 19 UIKit 0x00000001981c0a70 + 1232\n[ERROR] : 20 UIKit 0x0000000197f6b7f8 + 548\n[ERROR] : 21 UIKit 0x0000000197f6b478 + 148\n[ERROR] : 22 UIKit 0x0000000197f62010 + 124\n[ERROR] : 23 UIKit 0x0000000197eee064 + 472\n[ERROR] : 24 UIKit 0x00000001983b7730 + 344\n[ERROR] : 25 UIKit 0x00000001983b663c + 108\n[ERROR] : 26 UIKit 0x00000001981733b8 + 656\n[ERROR] : 27 UIKit 0x00000001981c0ed4 + 292\n[ERROR] : 28 UIKit 0x00000001985b8040 + 168\n[ERROR] : 29 UIKit 0x00000001981e97f0 + 220\n[ERROR] : 30 UIKit 0x00000001985b7e48 + 136\n[ERROR] : 31 UIKit 0x0000000197f223dc + 644\n[ERROR] : 32 UIKit 0x0000000197f38ad4 + 108\n[ERROR] : 33 UIKit 0x00000001985b7d08 + 480\n[ERROR] : 34 UIKit 0x00000001981bf2d0 + 616\n[ERROR] : 35 UIKit 0x00000001981c0a70 + 1232\n[ERROR] : 36 UIKit 0x0000000197f6b7f8 + 548\n[ERROR] : 37 UIKit 0x0000000197f6b478 + 148\n[ERROR] : 38 UIKit 0x0000000197f62010 + 124\n[ERROR] : 39 UIKit 0x0000000197eee064 + 472\n[ERROR] : 40 CoreFoundation 0x0000000191d5d5f4 + 20\n[ERROR] : 41 CoreFoundation 0x0000000191d5cd08 + 400\n[ERROR] : 42 CoreFoundation 0x0000000191d5ca84 + 60\n[ERROR] : 43 CoreFoundation 0x0000000191dcb7a8 + 1412\n[ERROR] : 44 CoreFoundation 0x0000000191ca095c _CFXNotificationPost + 376\n[ERROR] : 45 Foundation 0x00000001927b2930 + 68\n[ERROR] : 46 UIKit 0x0000000197eedbb0 + 324\n[ERROR] : 47 UIKit 0x0000000198185288 + 88\n[ERROR] : 48 UIKit 0x00000001981851f8 + 140\n[ERROR] : 49 UIKit 0x0000000197eed954 + 1440\n[ERROR] : 50 UIKit 0x0000000197eed24c + 100\n[ERROR] : 51 UIKit 0x0000000197f57fd0 + 404\n[ERROR] : 52 GraphicsServices 0x00000001937098a0 + 744\n[ERROR] : 53 GraphicsServices 0x0000000193709390 + 32\n[ERROR] : 54 CoreFoundation 0x0000000191d71ae4 + 56\n[ERROR] : 55 CoreFoundation 0x0000000191d71284 + 436\n[ERROR] : 56 CoreFoundation 0x0000000191d6ed98 + 1752\n[ERROR] : 57 CoreFoundation 0x0000000191c9eda4 CFRunLoopRunSpecific + 424\n[ERROR] : 58 GraphicsServices 0x0000000193708074 GSEventRunModal + 100\n[ERROR] : 59 UIKit 0x0000000197f52058 UIApplicationMain + 208\n[ERROR] : 60 Service Entwicklung 3 0x0000000100058f00 Service Entwicklung 3 + 20224\n[ERROR] : 61 libdyld.dylib 0x0000000190cad59c + 4\n-- End application log -------------------------------------------------------\n\n\nh3. Expected Result\ntaking a picture and close the controller.", "attachment": [ { "id": "63634", "filename": ".log", "author": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-17T18:37:53.000+0000", "size": 8900082, "mimeType": "text/plain" }, { "id": "63635", "filename": "diagnostic4287452246757257167.log", "author": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-17T18:38:08.000+0000", "size": 352382, "mimeType": "text/plain" } ], "flagged": false, "summary": "iOS: Appcrash when taking pictures and change orientation mode", "creator": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio 4.10.0", "comment": { "comments": [ { "id": "430941", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Please share the full reproducible sample code. Also, SDK CLI and testing platform info. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-11-17T19:44:47.000+0000", "updated": "2017-11-17T19:44:47.000+0000" }, { "id": "430969", "author": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Axway Appcelerator Studio, build: 4.10.0.201709271713\r\nTesting Platform: iPad 2 Mini A1490 iOS 10.3.2 \r\nSDK: Tested with 6.2.1, 6.2.2 and latest 6.3.0", "updateAuthor": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-18T13:32:34.000+0000", "updated": "2017-11-18T13:32:34.000+0000" }, { "id": "430970", "author": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "body": "\r\n{code:java}\r\nfunction take_photo(useGallery) {\r\n\ttry {\r\n\t\tmyPicture = {};\r\n\t\tfilename = uuid.getNumber();\r\n\t\tvar f = function(e) {\r\n\t\t\tlog.log(\"new_picture > take_photo: took picture e=\" + e.mediaType);\r\n\t\t\tif (e.mediaType == Ti.Media.MEDIA_TYPE_PHOTO) {\r\n\t\t\t\tphotofile = photofilename();\r\n\t\t\t\tvar f = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, photofile);\r\n\t\t\t\tvar blob = e.media;\r\n\t\t\t\tvar h = blob.height;\r\n\t\t\t\tvar w = blob.width;\r\n\t\t\t\tif (h > w) {\r\n\t\t\t\t\tblob = blob.imageAsResized(768, 1024);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tblob = blob.imageAsResized(1024, 768);\r\n\t\t\t\t}\r\n\t\t\t\tconverter.saveJpg(blob, f.nativePath, 0.3);\r\n\t\t\t\t\r\n\t\t\t\tlog.log(\"new_picture > take photo: Photo: \"+JSON.stringify(myPicture));\r\n\t\t\t\t\r\n\t\t\t\tmyPicture = Ti.Filesystem.applicationDataDirectory + photofile;\r\n\t\t\t\t$.getView(\"image\").image = myPicture;\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tif (Ti.Platform.model != \"Simulator\" || useGallery) {\r\n\t\t\tif (useGallery) {\r\n\t\t\t\tTi.Media.openPhotoGallery({\r\n\t\t\t\t\tallowEditing : true,\r\n\t\t\t\t\tmediaTypes : [Ti.Media.MEDIA_TYPE_PHOTO],\r\n\t\t\t\t\tsuccess : f\r\n\t\t\t\t});\r\n\t\t\t} else {\r\n\t\t\t\tTi.Media.showCamera({\r\n\t\t\t\t\tsuccess : f,\r\n\t\t\t\t\tmediaType : Ti.Media.MEDIA_TYPE_PHOTO\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tphotofile = photofilename();\r\n\t\t\tvar file = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, \"app_foto\" + \".jpg\");\r\n\t\t\tvar copy = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, photofile);\r\n\t\t\tvar blob = file.read();\r\n\r\n\t\t\tvar h = blob.height;\r\n\t\t\tvar w = blob.width;\r\n\t\t\t// Ratio bei Android und iOS 4:3\r\n\t\t\tif (h > w) {\r\n\t\t\t\tblob = blob.imageAsResized(768, 1024);\r\n\t\t\t} else {\r\n\t\t\t\tblob = blob.imageAsResized(1024, 768);\r\n\t\t\t}\r\n\t\t\t//copy.write(blob);\r\n\t\t\tconverter.saveJpg(blob, copy.nativePath, 0.3);\r\n\t\t\tmyPicture = Ti.Filesystem.applicationDataDirectory + photofile;\r\n\r\n\t\t\t$.getView(\"image\").image = myPicture;\r\n\t\t}\r\n\t} catch (e) {\r\n\t\tlog.exception(\"new_picture > event_photo\", e);\r\n\t}\r\n}\r\n{code}\r\n", "updateAuthor": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-18T13:36:11.000+0000", "updated": "2017-11-18T13:36:35.000+0000" }, { "id": "430973", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, This is not the full sample code. Please provide a sample app of full reproducible code that we can directly use. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-11-18T19:44:57.000+0000", "updated": "2017-11-18T19:45:34.000+0000" }, { "id": "430986", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hey there! Can you provide a few more infos regarding the crash? Does it crash when changing the orientation while showing the camera or after taking it and returning to the callback? I agree with [~sdarda], the demo-code looks very specific from your project - things like the UUID shouldn't be relevant. We would like to schedule it asap, but only with a full test-case to reproduce, I hope that makes sense. Thank you!\r\n\r\nA bit of background of the crash: It tried to call {{containedInNavigationPalette}} from a {{UILabel}} instance, but the selector is only valid for a {{UISearchBar}}.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-11-19T15:28:57.000+0000", "updated": "2017-11-19T15:32:25.000+0000" }, { "id": "431032", "author": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The cameramode appears > I change the orientation mode to take a landscape picture > and without clicking take Picture or something else the app crashes inside of my cameraMode. This doesn't happen everytime. Just sometimes. That makes it hard for me to figure out where to search for the issue. So I do have to do that several times. Open camera mode > change orientation > close .... and suddenly the app crashes.\r\n\r\n{color:#14892c}A bit of background of the crash: It tried to call containedInNavigationPalette from a UILabel instance, but the selector is only valid for a UISearchBar.{color}\r\nYes. I've seen that. But I don't have an idea why he wants to do that? A searchbar is only available inside of lists, isn't it? But I am neither inside of a list- nor a tableview... ", "updateAuthor": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-20T13:23:33.000+0000", "updated": "2017-11-20T13:23:33.000+0000" }, { "id": "431033", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Do you use any custom overlay? At this point we really need a full example to continue (best if classic Titanium in a single file) so it's easier for us to debug. Thank you!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-11-20T13:32:56.000+0000", "updated": "2017-11-20T13:32:56.000+0000" }, { "id": "431038", "author": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm not able to reproduce the crashes. Neither inside of the app nor in the Classic Titanium App I created for you a couple of minutes ago. So please close this call. Thanks!", "updateAuthor": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-20T16:25:10.000+0000", "updated": "2017-11-20T16:25:10.000+0000" }, { "id": "431039", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Ok, thank you! Please feel free to reopen the issue if you are able to get a reproducible test.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-11-20T16:27:47.000+0000", "updated": "2017-11-20T16:27:47.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }