{ "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)

\n

I'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

\n

My posting form is a window with tabBarHidden which opens the\ncamera or media picker or opens my audio recorder.

\n

It always works the first time perfectly, then uploads the media\nfine.

\n

Then when I try to (in this example) openPhotoGallery, the app\ncrashes with this stack trace output

\n

[INFO] opening photo gallery....

\n

2010-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:

\n

0 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

\n

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'

\n

2010-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)

\n

[INFO] Application has exited from\nSimulator

{html}", "attachment": [], "flagged": false, "summary": "Problem with XHR + openPhotoGallery", "creator": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "123752", "author": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "body": "{html}

Hi,

\n

Just to add that this happens whenever I try to do anything\nrelated to the MediaModule (gallery, video, photo or record\naudio)

\n

And it always happens the SECOND time AFTER an XHR post.

\n

Unfortunately, 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.

\n

It's strange that the crash only occurs AFTER the XHR post.

{html}", "updateAuthor": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "created": "2011-04-15T02:33:54.000+0000", "updated": "2011-04-15T02:33:54.000+0000" }, { "id": "123753", "author": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "body": "{html}

Here are some more console outputs after crashes:

\n

http://pastie.org/895357

\n

I 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.

\n

The common factor in every crash appears to be the '_tabBlur' -\nand it's always after an XHR POST to upload a TiBlob

\n

The 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

\n

I'm currently trying to strip down my posting window to see what\nit could be related to.

{html}", "updateAuthor": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "created": "2011-04-15T02:33:54.000+0000", "updated": "2011-04-15T02:33:54.000+0000" }, { "id": "123754", "author": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "body": "{html}

Hi,

\n

Sorry. But you can ignore this now. Or change to 'invalid'

\n

It 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.

\n

I have altered my designs to use just views and the issue seems\nto have gone away.

{html}", "updateAuthor": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "created": "2011-04-15T02:33:54.000+0000", "updated": "2011-04-15T02:33:54.000+0000" }, { "id": "123755", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

marked invalid as requested.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:33:55.000+0000", "updated": "2011-04-15T02:33:55.000+0000" }, { "id": "408430", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closed as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-02T19:19:53.000+0000", "updated": "2017-03-02T19:19:53.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }