Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3081] Ti.Storekit module crashes occasionally

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2011-10-20T13:06:42.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAppcelerator Modules
Labelscrash, defect, in-app, ios, storekit
ReporterAlon Rousso Katz
AssigneePaul Dowsett
Created2011-10-16T12:58:36.000+0000
Updated2016-03-08T07:48:07.000+0000

Description

When calling Ti.Storekit.requestProducts the app crashes often (not always, sometimes it succeed making the whole purchase process). Couldn't figure out why sometimes it does crash and sometimes it doesn't. The testing I made are exactly the same in all cases. Here is a crash report from the device: Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x00000001, 0xe7ffdefe Crashed Thread: 0 Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 libobjc.A.dylib 0x333a6c98 objc_msgSend + 16 1 StoreKit 0x36062d96 -[SKProductsRequest handleFinishResponse:returningError:] + 38 2 StoreKit 0x36064086 -[SKRequest _requestFinishedNotification:] + 150 3 Foundation 0x3450717c _nsnote_callback + 136 4 CoreFoundation 0x3611e208 __CFXNotificationPost_old + 396 5 CoreFoundation 0x360b8ee4 _CFXNotificationPostNotification + 112 6 Foundation 0x345045cc -[NSNotificationCenter postNotificationName:object:userInfo:] + 64 7 AppSupport 0x3476144e -[CPDistributedNotificationCenter deliverNotification:userInfo:] + 38 8 AppSupport 0x3476277a _CPDNDeliverNotification + 198 9 AppSupport 0x347611d0 _XDeliverNotification + 116 10 AppSupport 0x34757dd0 migHelperRecievePortCallout + 132 11 CoreFoundation 0x36126a90 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 20 12 CoreFoundation 0x36128838 __CFRunLoopDoSource1 + 160 13 CoreFoundation 0x36129606 __CFRunLoopRun + 514 14 CoreFoundation 0x360b9ebc CFRunLoopRunSpecific + 224 15 CoreFoundation 0x360b9dc4 CFRunLoopRunInMode + 52 16 GraphicsServices 0x35873418 GSEventRunModal + 108 17 GraphicsServices 0x358734c4 GSEventRun + 56 18 UIKit 0x34f63d62 -[UIApplication _run] + 398 19 UIKit 0x34f61800 UIApplicationMain + 664 20 OurBabyMaker 0x000041ec main (main.m:36) 21 OurBabyMaker 0x00003a90 start + 32

Comments

  1. Anthony Decena 2011-10-20

    Thank you for raising this ticket. If this is still an issue, then we need all the information listed in the [Jira Ticket Checklist](http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-Summary%3AJiraTicketChecklist) in order to accept the ticket. Also, in this instance, a full use case with code sample is also necessary. Once the ticket is complete, we will look into moving it to the main project. Thank you.
  2. Alon Rousso Katz 2011-10-20

    Hi Anthony, Thanks for the response. It appears that this bug is fixed on version 1.2 of Storkit module.
  3. Anthony Decena 2011-10-20

    Perfect Alon, thanks.

JSON Source