<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Michael,<div><br></div><div>I downloaded the app and ran it several times with different problems each time. The third time I couldn't get it to fail at all!</div><div><br></div><div>From my own experience this variability of results screams of a memory management issue somewhere. If it only happens after you have used an SKProductsRequest object, then I'd certainly look there. I think it's highly likely that you either failed to retain something that you should have, prematurely released something, or released something multiple times (perhaps something like one explicit release and another autorelease or something funky like that). Start by removing all release and autorelease calls in the SKProductsRequest code (allowing memory leaks for now) and see if you can make the problem disappear that way. If that works, gradually add them back until you have identified the culprit.</div><div><br></div><div>If you want to send the code relating to the SKProductsRequest use to me just to have a second pair of eyes look at, feel free to do so.</div><div><br></div><div>Paul</div><div><br></div><div><div>On Jun 24, 2013, at 11:53 AM, Michael Minerva <<a href="mailto:minerva@agentsheets.com">minerva@agentsheets.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Great news! AgentCubes, our tool for the teaching and learning of<br>computer science built with CCL, has been approved for sale on the Mac<br>app store.<br><br>Sadly, an important point of integration between our App and the store<br>is troubled. We're attempting to integrate with the StoreKit framework<br>to set up an in-app purchase, and we're experiencing some very strange<br>crashes.<br><br>In the StoreKit framework, there is an objc object called<br>SKProductsRequest which is an asynchronous mechanism for getting Mac<br>app store product information. We have to use this object to set up<br>and perform in-app purchases. (get money)<br><br>We are able to alloc, init, and make use of this object seemingly<br>without problems. However, some time later (between 5 and 60 seconds)<br>the app becomes very unstable and will crash seemingly randomly. The<br>crashes are all related to either heavily threaded portions of the app<br>or mouse events.<br><br>We have spent a few days investigating these crashes, but they remain<br>scrutable to us, and we need your help.<br><br>We have built a test application which exhibits the crash. Could you<br>experience the crash for yourself, and potentially help us figure out<br>what's going on? <br><br>It's easy to reproduce:<br>1) Unzip and start the app (it will only run on Lion and Mountain Lion)</div><div>- Download from: <a href="http://agentsheets.com/temp/AgentCubes.zip">http://agentsheets.com/temp/AgentCubes.zip</a><br>2) Enter the credentials for the app store:<br>- <span style="color: rgb(69, 83, 94); font-family: 'Lucida Grande', Geneva, Verdana, Arial; font-size: 12px; background-color: rgb(255, 255, 255); "><a href="mailto:CCLSandboxTest@gmail.com">CCLSandboxTest@gmail.com</a></span><br>- <span style="color: rgb(69, 83, 94); font-family: 'Lucida Grande', Geneva, Verdana, Arial; ">CCLs4ndbox</span><br>3) When the app starts, you will see a simple scrolling view<br>4) hover over the scrolling view, and scroll your scroll wheel<br>- After a while (5 to 60 seconds of scrolling) the app will hang<br>5) Look in the OSX console<br>- Often times there are stack traces printed, when the app crashes in<br>a mouse event handler or other threaded error handler<br>- Sometimes nothing is printed in the console.<br><br>Thanks again for all your help. We're really looking forward to being<br>able to leverage the Mac app store to spread our tool. CCL has been an<br>absolutely great and expressive environment for us to build AgentCubes<br>in.</div><div><br></div><div><br></div><div><br></div></div>_______________________________________________<br>Openmcl-devel mailing list<br><a href="mailto:Openmcl-devel@clozure.com">Openmcl-devel@clozure.com</a><br>http://clozure.com/mailman/listinfo/openmcl-devel<br></blockquote></div><br></body></html>