{ "id": "61290", "key": "TIMOB-658", "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": "11222", "name": "Release 1.2.0", "archived": true, "released": true, "releaseDate": "2010-04-05" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T02:33:55.000+0000", "created": "2011-04-15T02:33:54.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ios", "iphone", "xhr" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-02T19:19:53.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": "{html}
(From Kosso)
\nI've been stuck for a few days on an app crash in my app, which\nseems to always occur after choosing/taking photo or video or\nrecording audio AFTER posting via XHR
\nMy posting form is a window with tabBarHidden which opens the\ncamera or media picker or opens my audio recorder.
\nIt always works the first time perfectly, then uploads the media\nfine.
\nThen when I try to (in this example) openPhotoGallery, the app\ncrashes with this stack trace output
\n[INFO] opening photo gallery....
\n2010-03-29 17:28:17.928 phreadz[26505:207] *** -[NSCFDictionary\n_tabBlur]: unrecognized selector sent to instance 0x5354f30
\n[ERROR] The application has crashed with an\nunhandled exception. Stack trace:
\n0 CoreFoundation 0x02bec45b raiseError + 299
\n1 libobjc.A.dylib 0x90417509 objc_exception_throw + 56
\n2 CoreFoundation 0x02c4983b -[NSObject doesNotRecognizeSelector:] +\n187
\n3 CoreFoundation 0x02be0676 forwarding +\n902
\n4 CoreFoundation 0x02bbc6c2 _CF_forwarding_prep_0 + 50
\n5 phreadz 0x0006f9cf -[TitaniumApp showModalController:animated:] +\n83
\n6 phreadz 0x00091145 -[MediaModule openPhotoGallery:] + 575
\n7 Foundation 0x0048fb46 NSThreadPerformPerform + 678
\n8 CoreFoundation 0x02bb78e1 CFRunLoopRunSpecific + 3217
\n9 CoreFoundation 0x02bb6c48 CFRunLoopRunInMode + 88
\n10 GraphicsServices 0x02e8878d GSEventRunModal + 217
\n11 GraphicsServices 0x02e88852 GSEventRun + 115
\n12 UIKit 0x0071a003 UIApplicationMain + 1157
\n13 phreadz 0x0000264e main + 360
\n14 phreadz 0x000024ba start + 54
2010-03-29 17:28:17.930 phreadz[26505:207]\nTerminating app due to uncaught exception\n'NSInvalidArgumentException', reason: '\n-[NSCFDictionary _tabBlur]: unrecognized selector sent to instance\n0x5354f30'
\n2010-03-29 17:28:17.931 phreadz[26505:207] Stack: (
\n46056539,
\n2420208905,
\n46438459,
\n46007926,
\n45860546,
\n457167,
\n594245,
\n4782918,
\n45840609,
\n45837384,
\n48793485,
\n48793682,
\n7446531,
\n9806,
\n9402
\n)
[INFO] Application has exited from\nSimulator
Hi,
\nJust to add that this happens whenever I try to do anything\nrelated to the MediaModule (gallery, video, photo or record\naudio)
\nAnd it always happens the SECOND time AFTER an XHR post.
\nUnfortunately, I have not been able to replicate this with the\nKitchenSink XHR upload photo demo.
\nI will see if I can create a simple replication of the bug and send\nit over.
It's strange that the crash only occurs AFTER the XHR post.
Here are some more console outputs after crashes:
\n\nI have also had this happen, again after an XHR POST when trying\nto open my audio recorder - so it seems that it's not totally\nrelated to the gallery or camera stuff.
\nThe common factor in every crash appears to be the '_tabBlur' -\nand it's always after an XHR POST to upload a TiBlob
\nThe crashes only when I actually click a button to open the\ngallery, record audio or use the camera. ie: nothing seems to crash\non my actual post/form window
\nI'm currently trying to strip down my posting window to see what\nit could be related to.
Hi,
\nSorry. But you can ignore this now. Or change to 'invalid'
\nIt seems that I had been using some windows where I could have\nbeen using views and this was somehow confusing the window\nhierarchy after going back/closing a complex window with the\nmedia/camera launching button on it. this was causing the _tabBlur\nto get muddled.
\nI have altered my designs to use just views and the issue seems\nto have gone away.
marked invalid as requested.