Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17131] iOS: APSHTTPOperation crashes app randomly

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-06-29T15:15:58.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.3.0
ComponentsiOS
Labelsmodule_acs, qe-testadded
ReporterJon Alter
AssigneeJon Alter
Created2014-06-10T17:19:05.000+0000
Updated2014-07-08T00:05:30.000+0000

Description

APSHTTPOperation crashes app randomly *Note:* This issue is very intermittent and can be difficult to reproduce.

Repro Steps

1: Open APSCloudExample app 2. Add key to AppDelegate.m 3. Run the app 4. Create a Review 5. Query Reviews 6. Open a Review and update it 7. Back out on screen 8. Open the Review again (at this point the app should crash, if it does not, back out and open the review several times until the app does crash). See attached screen shot for typical crash stack trace

Attachments

FileDateSize
bug17131.crash2014-06-26T18:56:48.000+000035001
bug17131.png2014-06-26T18:56:48.000+0000238956
Screen Shot 2014-06-10 at 10.13.31 AM.png2014-06-10T17:19:05.000+0000568897

Comments

  1. Ingo Muschenetz 2014-06-11

    [~vduggal] to attempt to fix the issue in APSHttpClient. [~penrique] to write unit tests (ideally we can reuse the ti.cloud unit tests, or write new ones ones using https://github.com/appcelerator/tio2) to prove that this issue does not (or does) affect Titanium Mobile.
  2. Jon Alter 2014-06-13

    [~mlangston] what PR resolved this?
  3. Ingo Muschenetz 2014-06-13

    [~jalter] I believe it's NATIVESDK-169, but [~mlangston] needs to confirm. Matt, we always need to reference the ticket or PR that resolves this issue.
  4. Wilson Luu 2014-06-26

    Reopening ticket. I am able to reproduce a similar crash i.e. the app crashes, but not with the exact crash logs as shown in the above screen shot attachment; see my attachments bug17131.png and bug17131.crash. Also, I can consistently reproduce the crash on step 6; when I open a review. Tested on: APS SDK: 0.8.6 Xcode: 5.1.1 Device: iphone 5s (7.1.1)
  5. Wilson Luu 2014-06-30

  6. Samuel Dowse 2014-07-08

    Verified fixed on: Mac OSX 10.9.4 Appcelerator Studio, build: 3.3.0.201407031747 Titanium SDK, build: 3.3.0.v20140707105712 Titanium CLI, build: 3.3.0-rc4 Alloy: 1.4.0-rc4 iOS Device: iPhone 5 (7.0.6) Ti.Cloud: 3.2.3 App does not crash after following test steps from the description. Closing.

JSON Source